Skip to main content
Version: v6.5.0

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

parameterrequiredtypeDefault valuedescribe
sSapLogonPathTruepath''' C:\Users'''Specify the SAP client path that needs to be started
sConnectionNameTruestring""Specify the server name that needs to be connected to
iRetriesTruenumbersixteenretry count
iDelayBetweenRetriesTruenumberfive hundredRetry 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)