SAP Logon problem regarding Landscape file

Hello,

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 ?

regards

1 Like

@zbigniew.wichlacz

Welcome to the community

Are you trying with this activity?

https://docs.uipath.com/activities/other/latest/ui-automation/sap-logon

Or use application/vrowser?

Cheers

Step 1: Copy the details of the Client from where it is working. by Going to Properties
image

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

Hello,
yes i’m using SAP Logon acitivity

@AJ_Ask Thank you very much, your method did the job.

Hi @zbigniew.wichlacz Awesome. :slight_smile: Please accept my reply as a solution so that it can help others also.