LogOn
This is used to logon the ERP connection and specify a user / password sequence for a non-pooled ERP connection (optional).
Note: the user does not always require this function as the server calls it automatically when a session starts.
Group: Enterprise Resource Planning Extensions
Syntax: [bValue =] ERP.LogOn (vSource, [vUserId], [vUserPwd], [vOptions])
bValue (Boolean) Optional – A True/False notification that the command processed successfully
vSource (Variant) data source name (DSN) or the data source number
vUserId (Variant) Optional – The login name to be used to connect to the ERP system
vUserPwd (Variant) Optional – The login password to be used to connect to the ERP system
vOptions (Variant) Optional – SAP only additional parameters that can be added to the logon string. Separate multiple parameters with the pipe ( | ) symbol.
CLIENT - SAP Client
LANG - Logon language
SYSNR - SAP System number
ASHOST - SAP application server
MSHOST - SAP message server
GWHOST - Gateway host
GWSERV - Gateway service
R3NAME - R/3 name
GROUP - Group of SAP application servers
TPHOST - Host of the external server program
TYPE - Type of remote host (2 = R/2, 3 = R/3, E = External)
TRACE - Enable RFC trace (1=on, 0 = off)
CODEPAGE - Initial code page in SAP notation
LCHECK - Enable logon check at open time (1=on, 0 = off)
QOSDISABLE - Disable Quality of Service check (1=disable, 0 = enable)
GRT_DATA - Additional data for GUI
USE_GUIHOST - Redirect remote GUI to this Host
USE_GUISERV - Redirect remote GUI to this Service
USE_GUIPROGID - Server program id that will start the remote GUI
SNC_MODE - Enable Secure Network Communications (1=on, 0 = off)
SNC_PARTNERNAME - SNC partner (p:CN=R3, O=XYZ-INC, C=EN)
SNC_QOP - SNC Level of security (1-9)
SNC_MYNAME - SNC Name - overrides default SNC partner
SNC_LIB - SNC service library path
DEST - R/2 destination
SYSTEM - Name of the system as used in the system landscape definition
LOGONMETHOD - Authentication method used to log on to the destination (UIDPW, SAPLOGONTICKET, X509CERT)
Example:
Dim bValue As Boolean
bValue = ERP.LogOn("SAP", "User345", "Pass345")
bValue = ERP.LogOn(1, "User345", "Pass345", "CLIENT=800|TYPE=3")
bValue = ERP.LogOn("JDE", "JDEUser", "JDEPass1")