Skip to Content
Author's profile photo Michal Krawczyk

Michal’s PI tips: How to record/test SAP backend application system proxy messages ?

There are a few ways to test a proxy in the application system and one of them is available in SPROXY transaction itself. This particular way has some drawbacks on the other hand:

– you can only execute it with your user (so in the future you can expect authorization issues)

– you never see the whole message (SOAP header) only the message payload

– you don’t see the response message which would be sent to the SAP PI/XI system (sometimes necessary for debugging purposes)

The functionality which I’m using for testing and debugging ABAP proxies on the SAP application backend systems (like ECC) is called IFC recorder. You can easily turn it on the TCODE: SICF -> Edit -> Recorder – as shown in the picture below.

/wp-content/uploads/2012/06/turn_on_112272.png

Now once you send a proxy message you can disable the recording and display it in the same menu section. What you will see once you select the appropriate service on the left (SAP -> XI -> Engine) will be the record header of your proxy call. Important info from the header include user which executed the message for example. 

/wp-content/uploads/2012/06/turn_on_header_112286.png

The second step is to choose request from the menu in order to display the inbound message.

/wp-content/uploads/2012/06/turn_on_request_112284.png

Once you select this display option you will be able to see not only the payload of the message but also (and sometimes more importantly) the SOAP header of the message.

/wp-content/uploads/2012/06/turn_on_soap_112283.png

By selecting response you will be able to see the response message (acknowledgment).

/wp-content/uploads/2012/06/turn_on_ack_112273.png

Additional options:

Changing the user of the call

If you want to check if it’s possible to call the proxy class with any other user you just need to change it in the call as shown in the picture below and execute the call once more from the recorder.

/wp-content/uploads/2012/06/turn_on_user_112285.png

Note

This is a very simple option but I’ve noticed that not a lot of people know about it/use it so I hope it will be a nice useful tool for some of you.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sascha Wenninger
      Sascha Wenninger

      Hi Michal,

      thank you very much - yet another great tip from the guru. I didn't know of this, and have actually wanted to do this in the past so this will be very useful 🙂

      Thank you for sharing!

      Sascha

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author

      Hi Sascha,

      thanks for the info - it's pretty easy and nice function and it seemed to me that not a lot of people were using that - so I'm happy that it will be useful 🙂

      recently we had some issues with acknowledgments (GSIG e-mail) and a transaction which shows acknowledgments and messages headers can be very nice in such cases

      Regards,

      Michal Krawczyk

      Author's profile photo Andy Silvey
      Andy Silvey

      Hi Michal,

      excellent blog as usual.

      Thanks,

      Andy.

      Author's profile photo Pooja Srivastava
      Pooja Srivastava

      Hi Michal,

      I have been following your posts from quite some time and yet again an excellent piece of Information.

      Also, It would be great if you could please suggest me some work around for the RFC connection issue which I am facing between ECC and PI. Below is my thread

      http://scn.sap.com/thread/3479903

      Please provide your input.

      Regards,

      Pooja