Friday, 21 February 2020

How to create ABAP proxies using eclipse

ADT in Eclipse has been a boon for us developers. Everything is so easy to develop in perspectives of ease of accessing the development objects when you don’t have to type different tcodes for different types of objects. One such important object type is proxy. Service consumers or service provider proxies are fairly common in ABAP landscape where we use SAP PI/PO to connect with other third parties. In traditional development environment we would use tcode SPROXY to find the relevant service in Enterprise Service Browser.

Sometimes when you have lots of services created, it becomes tedious task to search for them and then start creating the proxy object. Here I am showing the steps required to perform the same task using ADT in Eclipse.

1. Make sure you have SAP integration perspective open. It is easy way to switch between normal ABAP developments (using ABAP perspective) and proxy developments for future.

 SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

2. Select this perspective and you will see service browser view on your right (most of the time). If not then you can also select this view from the context menu option Windows>Show View>Others and search for enterprise service browser.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

3. Connect to the system where you have to create the proxy. Here I am creating an consumer proxy which gets called via SAP PO.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

4. This will show you the same view as you will get in old tcode SPROXY.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

5. Here you can also search it via service name which the PO consultant will provide. Click on the checkbox ‘Service Interface’ and uncheck all others. Type the service name in the search box and press enter. You will have your object in the results.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

6. Right click on this service and click on generate proxy.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

7. New window will open and will take you to the wizard-based completion starting with the name, package and prefix to be used.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

8. All done!! Now you can activate, open SOAMANAGER (if required to add logical ports) and also test it.

SAP ABAP Tutorial and Material, SAP ABAP Guides, SAP ABAP Certifications, SAP ABAP Prep

No comments:

Post a Comment