Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when executing a program on ABAP Platform Trial 1909 with Eclipse ADT

0 Kudos
872

Hi,

I have installed "ABAP Platform Trial 1909" using the Docker image, following these instructions: https://hub.docker.com/r/sapse/abap-platform-trial

Then I have installed Eclipse and the plugin "ABAP Development Tools" (ADT).

Then in Eclipse I have created a new ABAP project.

I get a first error message:

If I press OK I am able to manage the connection settings as described in above link.

NB: I tried several values for Application Server: "localhost", "127.0.0.1", and "vhcala4hci" after having completed the hosts file with these additional lines:

# SAP System A4H Developer Edition on Docker<br>127.0.0.1 vhcala4hci<br># End of section

Below the next screen for the connection settings:

OK now I am able to create my first ABAP program:

But when I try to execute the program, I get the following error: "Failed to create the part's controls".

And I get this message in the error log: "The SapGuiServer path could not be determined".

I don't know what to do. Any help would be much appreciated.

1 ACCEPTED SOLUTION

Saif4TechGlobe
Participant
756

Hi jeromeblancsap,

As you are trying to access SAP GUI app, hence it's mandatory that SAP GUI should be installed on your system.

Download it using SAP GUI. Once it's installed and restart your system and check below steps:

Open Eclipse and Navigate to Windows->Preferences->ABAP Development->System Connections and check if it detects file path automatically. Then you can start using SAPGUI apps via Eclipse.

If it does not detect above file paths, then click on Define manually and enter below entries:

C:\Users\<windows_user_name>\AppData\Roaming\SAP\Common\SAPUILandscape.xml

C:\Users\<windows_user_name>\AppData\Roaming\SAP\Common\SAPUILandscapeGlobal.xml

Click on Apply and close it. Restart Eclipse and it should start working.

Reward if it helps you.

Thank you.

BR,

Saif

Mohammad Saif
5 REPLIES 5

anne-petteroe
Community Manager
Community Manager
756

Hello,

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,
Anne

abo
Active Contributor
756

You're trying to run a GUI application and the GUI is not installed.

(that also explains the first warning that you see)

Saif4TechGlobe
Participant
757

Hi jeromeblancsap,

As you are trying to access SAP GUI app, hence it's mandatory that SAP GUI should be installed on your system.

Download it using SAP GUI. Once it's installed and restart your system and check below steps:

Open Eclipse and Navigate to Windows->Preferences->ABAP Development->System Connections and check if it detects file path automatically. Then you can start using SAPGUI apps via Eclipse.

If it does not detect above file paths, then click on Define manually and enter below entries:

C:\Users\<windows_user_name>\AppData\Roaming\SAP\Common\SAPUILandscape.xml

C:\Users\<windows_user_name>\AppData\Roaming\SAP\Common\SAPUILandscapeGlobal.xml

Click on Apply and close it. Restart Eclipse and it should start working.

Reward if it helps you.

Thank you.

BR,

Saif

Mohammad Saif

0 Kudos
756

Thank you very much Mohammad!

This works perfectly. Just one thing to add : the landscape XML files are available only after having completed the connection parameters in the SAP Logon (before this step, the directory AppData\Roaming\SAP\ doesn't even exist).

Saif4TechGlobe
Participant
0 Kudos
756

Hi jeromeblancsap,

Actually that's default directory while you install SAP GUI.

Although this directory might not appear if you follow path, but if you search SAPUILandscape in your C drive, it will display.

Hope this will clarify your doubt.

Regards,

Saif

Mohammad Saif