Log in to SAP account
Command Description
Log in to SAP account
Command Prototype
SAP.Login(objWindow,sUsername,sPWD,sClient,sLanguage,iTimeout,sMultiLogonOptionToChoose)
Command parameter
parameter | required | type | Default value | describe |
---|---|---|---|---|
objWindow | True | decorator | @ ui"" | SAP windows that require operation |
sUsername | True | string | "" | SAP account |
sPWD | True | string | "" | Supports filling in plaintext and ciphertext strings. The ciphertext string can be obtained from the return value of the Windows credentials - Get credentials command (ordinary credentials) and the credentials - Get credentials command. If the return value has been assigned to the variable objCredential, it can be filled in as objCredential ["password"] |
sClient | True | string | "" | Client ID |
sLanguage | True | string | "" | language |
iTimeout | True | number | ten thousand | Timeout (milliseconds) |
sMultiLogonOptionToChoose | True | enum | "" | Login Options |
Return result
Run instance
/*********************************登录SAP账号*************************************
命令原型:
SAP.Login(objWindow,sUsername,sPWD,sClient,sLanguage,iTimeout,sMultiLogonOptionToChoose)
入参:
objWindow--目标窗口.注:需要操作的SAP窗口
sUsername--SAP账号.注:SAP账号
sPWD--SAP密码.注:支持填写明文字符串和密文字符串.密文字符串可从"Windows凭据-获取凭据"命令(普通凭据),"凭据-获取凭据"命令的返回值中获取,假设返回值已赋值给变量objCredential,则可填写为:objCredential["password"]
sClient--客户端号.注:客户端号
sLanguage--语言.注:语言
iTimeout--超时时间(毫秒).注:超时时间(毫秒)
sMultiLogonOptionToChoose--登录选项.注:登录选项
出参:
无
注意事项:
无
********************************************************************************/
SAP.Login(@ui"","","","","",10000,"")