Friday, 9 December 2022

Eclipse ADT & SAP NetWeaver AS ABAP Developer Edition Connection

In this post, I would like to show how to connect Eclipse ADT to SAP NetWeaver AS ABAP Developer Edition 7.52 SP04 on Ubuntu, which is running on Oracle Virtual box.

For Eclipse ADT installation you check that link.

With steps below you can connect to SAP from Eclipse;

Step 1 – Check your SAP GUI connection

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

Step 2 – Virtual Box 3300 port forwarding for local ip address 127.0.0.1

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

Note: First line Eclipse entry is to connect from any other machine in my network to Ubuntu/Sap. 192.168.1.26 is Windows host ip given by Adsl rooter. Therefore any machine which is connected to same rooter can access SAP with that simple port forwarding.

Last entry EclipseLcl is for connection from same host, local connection, to Ubuntu/Sap.

Step 3 – Connecting to NPL from Eclipse.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

After clicking Finish, İf you see that error, that means Step 2, port forwarding is not working. That might be because of wrong ip address or UFW is not disabled on Ubuntu.

Otherwise you should see following screen.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

That is all. Now you can start working on SAP dev edition with eclipse.

If you will be doing RAP development, you will need to access SAP web server and that will require you to add SAP Ubuntu’s ip and computer name to windows C:\Windows\System32\drivers\etc\hosts file file or you need to change dns name to ip of 127.0.0.1. And don’t forget to do required port forwardings.

Let’s see that with an example.

if you try to open Plain Abap examples from SAP GUI,

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

Tries to open,

http://vhcalnplci.dummy.nodomain:50000/sap/public/bc/abap/docu?format=standard&object=ABENABAP_EXAMPLES&tree=X

But vhcalnplci.dummy.nodomain means nothing to Windows, it does not know how to solve that name to ip address. Therefore we get an DNS error.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

After adding that exact name and ip to C:\Windows\System32\drivers\etc\hosts

127.0.0.1 vhcalnplci.dummy.nodomain vhcalnplci

Try again, and that time we get port forwarding error. This time we don’t get DNS error.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

To solve that we need to do port forwarding on Virtualbox. Please check step2 as reference to add 50000 port.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

Try to open url again and it will work just fine.

SAP ABAP Development, SAP ABAP RESTful Application Programming Model, SAP ABAP Development in Eclipse, SAP NetWeaver AS ABAP Developer Edition, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Tutorial and Materials

No comments:

Post a Comment