Skip to Content

Triggering Outbound PI Proxy though BADI in SAP:

The IDoc/RFC/Proxy methods of communication can be used during SAP and PI integration. Generally The IDoc is the standard mechanism for sending data from SAP system to PI System if they are available. The change pointer need to be activated on the respective message type. So that the data can be flown from SAP to PI.There are some situation where the standard IDoc might not be satisfying the requirement that it should be triggered during any changes on masterdata or transactional data in SAP.

There is an alternate method to send the data from SAP system to PI system. Here the touch point is proxy mechanism and the triggering mechanism for this proxy would be BADI in SAP.

The BADI will be triggered during the changes in the contract period changes in SAP.

The process is explained by taking the example of sending the data during the contract validity periods for the vendors in SAP.

Step 1: The data type is created in PI (ESR).

Step1.png

Step 2: The proxy is generated in SAP (SPROXY).

Step2.png

Step3: Implemented the standard BADI “ME_PURCHDOC_POSTED ” in SAP (SE19).

Step3.png

Step4: The code is written in the POST method of the BADI, which retrieves the data from the method of the BADI and assign these values in the structure of the proxy.

Step4.png

Step5:   This is tested in SAP (ME32K).

The validity start and end dates are changed of this contract.

Step5.png

The BADI will be triggered first after saving the transaction and the proxy is called from the BADI and the data is flown from SAP to PI.

Step6.png

Conclusion – The BADI is one of the methods to trigger the outbound proxy.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply