Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Empic on Feb 10 at 3:16 AM Hi, depends which method do you use: You can set up in SAPGUI info message that script is trying to connect. In this case you will see in which system. Or do it in VBA script during logon Try this: Set objSapCon = objBAPIControl.Connection objSapCon.applicatioserver = "ip address" objSapCon.system = "system name" objSapCon.systemnumber = "system number" objSapCon.client = "client" objSapCon.user = "user name" objSapCon.Language = "logon language" If objSapCon.logon(0, 0) <> True Then MsgBox "No connection to SAP" Exit Sub End If ************ your code goes here ** you can also store here password and suppress dialog box if you like
| | | ---------------Original Message--------------- From: ArtKarl Sent: Sunday, February 08, 2015 2:40 PM Subject: SAP Client Environment Hi guys, I have to know which environment my script is running if both ERP (production) and ERQ (testing) are opened. Is there any way that I can capture in the status bar located at the far right where the client is displayed either ERP or ERQ? ... thanks, | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |