Connect to SAP server
Command Description
Start SAP client and connect to the specified SAP server
Command Prototype
SAP.Logon(sSapLogonPath,sConnectionName,iRetries,iDelayBetweenRetries)
Command parameter
parameter | required | type | Default value | describe |
---|---|---|---|---|
sSapLogonPath | True | path | ''' C:\Users''' | Specify the SAP client path that needs to be started |
sConnectionName | True | string | "" | Specify the server name that needs to be connected to |
iRetries | True | number | sixteen | retry count |
iDelayBetweenRetries | True | number | five hundred | Retry interval time (milliseconds) |
Return result
Run instance
/*********************************连接到SAP服务器***********************************
命令原型:
SAP.Logon(sSapLogonPath,sConnectionName,iRetries,iDelayBetweenRetries)
入参:
sSapLogonPath--SAP客户端路径.注:指定需要启动的SAP客户端路径
sConnectionName--服务器名称.注:指定需要连接的服务器名称
iRetries--重试次数.注:重试次数
iDelayBetweenRetries--重试间隔时间(毫秒).注:重试间隔时间(毫秒)
出参:
无
注意事项:
无
********************************************************************************/
SAP.Logon('''C:\Users''',"",16,500)