You can use the SAPGuiutil object to open connections. All you need to do is to pass the server name taht you want to log into followed by userid and password. Please find the below code
Sapguiutil.OpenConnection “A:Test Server”
SAPGuiSession("Session").SAPGuiWindow("SAP").SAPGuiEdit("User").Set
strUserID
SAPGuiSession("Session").SAPGuiWindow("SAP").SAPGuiEdit("Password").SetSecure
strPassword
SAPGuiSession("Session").SAPGuiWindow("SAP").SAPGuiButton("Enter").Click
sap upgrade automation
ReplyDeleteThis post is a very useful one! I looked for the explanation about how to log in to SAP server using user ID and password for several days without finding anything that works. Thank you!
Glad that it you find it useful. Thanks!
ReplyDelete