When building a robot and trying to log on to the SAP environment i encounter problem regarding Landscape file. The SAP Logon activity finds the path:
“C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe” but after executing it no data base is found (see attached printscreen)
However SAP Logon shortcut refers to Landscape file:
“C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe” /LSXML_FILE=“%ProgramFiles(x86)%\SAP\FrontEnd\SapGui\saplogon\SAPUILandscape.xml”
and it opens Logon window with accesible SAP databases. I tried to put Landscape file path into
application arguments window, but it doesn’t help. Did anyone ecountered such problem or have a sollution ?
Step 1: Copy the details of the Client from where it is working. by Going to Properties
Step2: Add the details by clicking new button on SAP logon where it is not working (“C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe”) This path SAP Logon. Set the profile it will work for you.
This additional path instructs SAP GUI to utilize a specific XML file for landscape information. /LSXML_FILE=%ProgramFiles(x86)%\SAP\FrontEnd\SapGui\saplogon\SAPUILandscape.xml )
By doing above steps we will add SAP Profile to main SAP executable