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: 

mac: eclipse connection to s/4hana

former_member624584
Participant
0 Kudos

Hi guys,

I'm trying to switch to mac. I have sap gui for java up and running. I installed eclipse as well as the abap developer tools.
Unfortunately if I try to connect to a sap system in eclipse I receive the following error: Logon to system S9D failed (hostname 'Thorstens-MacBook-Pro.local.local' unknown.

Did somebody run in this error too? Where does eclipse get the hostname from the system (it is literally my computername and not the name/address of the sap system)?

Cheers,
Thorsten

1 ACCEPTED SOLUTION

former_member624584
Participant
0 Kudos

I had to adjust the file /etc/hosts. Within the sap community I found several possible solutions.

In my case it worked to change the name of the first entry to Thorstens-MacBook-Pro.local.local. Hence my first entry look like this: 127.0.0.1 Thorstens-MacBook-Pro.local.local

Also I added the IP-Address and the name of the server of our sap system.

Be sure to run the command 'dscacheutil -flushcache' and restart eclipse after modifying the hosts file

4 REPLIES 4

Florian
Active Contributor

The connection comes from the logon.ini.


I would recommend you to just create a new connection to your System within eclipse. When you click on new ABAP-Project you can define a new connection native with eclipse. so there are all fields available to get the connection.

Have a look here... julie.plummer explained that in a great way:

https://developers.sap.com/tutorials/abap-create-project.html

Cheers

Florian
Active Contributor

and because I saw it right after your question, that could also e an option next to it:

https://answers.sap.com/questions/9785454/working-with-abap-in-eclipse-using-mac-os-x.html

Hi Florian,

Thanks for the hint.

In my case I had to adjust the entries in the file /etc/hosts.

former_member624584
Participant
0 Kudos

I had to adjust the file /etc/hosts. Within the sap community I found several possible solutions.

In my case it worked to change the name of the first entry to Thorstens-MacBook-Pro.local.local. Hence my first entry look like this: 127.0.0.1 Thorstens-MacBook-Pro.local.local

Also I added the IP-Address and the name of the server of our sap system.

Be sure to run the command 'dscacheutil -flushcache' and restart eclipse after modifying the hosts file