Skip to Content
0

How to generate multiple files from an IDOC with multimapping in SAP PI 7.3.1

Sep 14, 2017 at 01:43 PM

34

avatar image
Former Member

We have an IDOC to file scenario where multimapping is implemented to create 3 different files from a single IDOC, with their destination folder on 3rd party system being the same.

We now see another requirement to generate these 3 files (say x,y,z) in pairs with similar filenames, one being x.txt with its pair as x.trg. Similarly, we would need to generate y.txt and y.trg, z.txt and z.trg. Please suggest on how to implement the same. We tried Variable Substitution of no luck - We're unsure if this works for multimapping.

Please suggest.

Thanks in Advance.,

Manasa

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

2 Answers

avatar image
Former Member Sep 14, 2017 at 02:19 PM
0

Assuming that you are using standard content conversion in your receiver file adapter, this blog post might help you achieve your goal.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 14, 2017 at 06:10 PM
0

Hello Anumanchi,

You have 2 options, use Variable Substitution or create a UDF where you can send el name and in the receiver activate ASMA.

Example to Variable Substitution:

DT destination


Name of file

Variable Substitution

Content Conversion to don't see the name file in the final file

Regards


Share
10 |10000 characters needed characters left characters exceeded