Skip to Content
avatar image
Former Member

SAP PI: Automatic Payload extraction

Hi Team,

My requirement is i wanted to download the XMLs automatically for any specific interface.

Ex- Say X interface is processing daily with one message.

I need that XML(Inbound and Outbound) to be downloaded automatically in the storage area.

I had already checked this request in SCNs also but did not find any.

All these days i was doing it manually, but there is a request that we need to download the payload on daily basis for that interface.

Kindly let us know if this is possible in SAP PI 7.4 Dual Stack.

Regards,

Syed

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 05, 2017 at 10:58 AM

    Hello Syed,

    You can try adding two dummy receivers one to send xml without mapping and another with actual mapping then use file channel to write in storage area.

    In this way whenever actual processing happens these 2 XMLs also will be written in the file storage.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2017 at 09:24 AM

    Hello Syed,

    In the receivers tab of ICO add one more File receiver system.

    In the interface determination For file system in one just add a dummy service interface followed by file channel in the outbound processing(this will write the XML generated by proxy).

    In the interface determination For file system create one more OM with same mapping and different interfaces add it for the file system followed by file channel in the outbound processing(this will write the XML generated after mapping).

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2017 at 09:30 AM

    Hi Everyone,

    I think the better way is not to overload the scenario itself. You can use the web service AdapterMessageMonitoringVi and to do a local java program to consume that webservice and to store the payloads. Check this blog https://blogs.sap.com/2015/01/22/reading-messages-from-pi-system/

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2017 at 06:28 AM

    Thanks Juan and Raghuram for your replies!

    But can you explain little further in step by step.

    For ex: if the scenario is Proxy to RFC and i wanted to save the payloads then how to implement file logic here to write the files in the storage.

    And how to save both inbound and outbound payloads in that case.

    Regards,

    Syed

    Add comment
    10|10000 characters needed characters exceeded