Skip to Content
author's profile photo Former Member
Former Member

MultiMapping: Varialbe file name

Hi,

I am using multimapping with 3 target message types. For each message type a file needs to be created. Is it possible to use variable substitution for generating different file names for each message type?

For example, I am using MT1,MT2 and MT3 as target MT.

For MT1, file name should be Add.

For MT2, the file name needs to be Update

For MT3, file name needs to be Disable.

Thanks,

Vishal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 10, 2009 at 07:06 AM

    Hi,

    If the MT structures are different then you can give the filename in Receiver Channel itself

    else if they are same then you can put the filename in one of the fields of MT and use it in the Receiver communication channel

    Regards

    Suraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2009 at 07:09 AM

    Hi,

    Yes you can use Variable substitution for this multi-mapping.

    In this case either you need to pass the File Name value to MT1, MT2 or MT3 using dynamic configuration udf...option.

    Or pass the filename value in any of the sub-fields from these structures and use it as variable substituion from payload.

    Refer :/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot

    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

    Thanks

    Swarup

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2009 at 07:12 AM

    Hi Vishal,

    yes, you can read a field of the message for the file name, plz see: [Configuring the Receiver File/FTP Adapter|http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm]

    But if allways Message "MT1" should be called "Add" the rule is fix and there is no reason for dynamic file name. Just create 3 adapters for the 3 Message Types each with own file name.

    Regards,

    Udo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.