Skip to Content

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

Sep 14, 2017 at 01:43 PM


avatar image

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


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

2 Answers

Patrick Weber Sep 14, 2017 at 02:19 PM

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

10 |10000 characters needed characters left characters exceeded
Luis Amable Armijos Valarezo Sep 14, 2017 at 06:10 PM

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


10 |10000 characters needed characters left characters exceeded