Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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

    Regards

    Add comment
    10|10000 characters needed characters exceeded