Skip to Content
0
Jun 06, 2018 at 02:48 PM

Splitting target message into multiple files based on source payload field sap pi 7.4

744 Views

Hi All,

I have a SOAP to FILE scenario. Based on a field in source xml, I have to send the data in different file.

E.g. Source Message will have Header and X and Ys

1.png

Target message - I want 2 files one with Header + all X values and other with Header + all Y values. 2.png 3.png

Also, its not necessary that the source file may or may not have a combination of Xs & Ys.

Please guide how can I do this with Channels and Mapping in SAP PI. I think, there will be a requirement to write a UDF.

Thanks in advance.

Attachments

1.png (9.7 kB)
2.png (2.0 kB)
3.png (1.0 kB)