Skip to Content
0

SAP PI: Automatic Payload extraction

Oct 05, 2017 at 10:31 AM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Raghuraman S Oct 05, 2017 at 10:58 AM
2

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.

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Oct 25, 2017 at 09:24 AM
0

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).

Share
10 |10000 characters needed characters left characters exceeded
Iñaki Vila Oct 25, 2017 at 09:30 AM
0

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Inaki but we need to persist messages for this right?I mean all pipeline step messages.

0

Hi Raghu,

You are right it would be necessary to persist the messages, but it is possible to configure the archive/deletion job in a period that let you don't overload the DB.

Regards.

0

Ya Inaki, Seems to be one good option.

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

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

Share
10 |10000 characters needed characters left characters exceeded