on 09-10-2009 7:59 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your replies. Since these 3 files are sent to same target directory, I thought of using only one communication channel.
Is it possible to do so with different MT in mapping and having to create a different file for each MT? Or there's no other option but to cerate 3 CC's..
Thanks,
Vishal
Hi Vishal,
>>Since these 3 files are sent to same target directory, I thought of using only one communication channel. Is it possible to do so with different MT in mapping and having to create a different file for each MT? Or there's no other option but to cerate 3 CC's..
if receiving structures are different then when you use variable substitution the root node name (MT_) will be different
so you wont be able to have the same CC.
Regards
Suraj
Edited by: S.R.Suraj on Sep 10, 2009 3:28 AM
Edited by: S.R.Suraj on Sep 10, 2009 3:29 AM
Hi Vishal,
everything is much easier with 3 channels. No problem if they use the same target folder.
If you after all thinking to 1 channel, you need to have the same root tag name of the 3 message types, you could create them in 3 different namespaces. Or use the same messagetype but make the fields optional so you can store the 3 different messages.
Regards,
Udo
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.