Abap

ABAP Port

In this blog, we will cover ABAP ports in one minute.

What are ABAP Ports?

ABAP Ports are receiving ports used in case of Outbound Idocs which can receive idoc (and its content). So instead of Idoc going to some external system, it will remain in the same system.

When to use ABAP ports?

If you need to manipulate the Idoc Data (which cannot be manipulated from the user exits or enhancements) before sending it to external system.

If you need to pass idoc data to a proxy or webservice.

If you need to post some document in the same system using the ALE model.

It is a powerful tool which can be used creatively in various scenarios.

How to create one?

ABAP ports are created using transaction WE21, just like the other kind of ports. Select the ABAP-PI port and click create.

Then enter the port name, description and the FM which will process the receiving data.

Attributes of the FM – Only one table is needed with variable name I_EDIDC and structure EDIDC.


*"----------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      I_EDIDC STRUCTURE  EDIDC
*"----------------------------------------------------------------------

You can write your business logic in this FM and after the idocs are successfully posted, it will pass through this FM.

Hope it will help you in tight spot.

If you like the content, be sure to subscribe the blog and like our social media handles.

Leave a Reply

Your email address will not be published. Required fields are marked *

error

Enjoy this blog? Please spread the word :)

Follow by Email
Twitter
LinkedIn
LinkedIn
Share