on 12-07-2009 9:46 AM
Hi Experts,
I am using multimapping in my file to IDoc scenario. My file will be in two formats:: File_1.csv && File_2.csv. If I get "1" in file then I need to map with one message type and if file contains "2" then I need to map with other message type in mapping. I am using dynamic configuration to get the file name and using it in condition.
My problem is: whenever I get file name like File_1.csv, my mapping should works only for Message Type 1. And the second message type should not create.
So please give me some UDF code how do I suppress the second mapping. Only one message should be executed.
> My problem is: whenever I get file name like File_1.csv, my mapping should works only for Message Type 1. And the second message type should not create.
>
> So please give me some UDF code how do I suppress the second mapping. Only one message should be executed.
Hi,
There is no need of udf for this. Just use some standard function & constants e.g. 'if', 'EqualS' and 'constant' and put condition on parent node of Message Type 1 & 2, so that at a time only one condition will be true which will generate only either message type1 or 2.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SourceField -->DynamicConfigUDF -->
--> equalS --> If(Then Constant(keep_it_blank)) --> MessageType1
Constant(file1)-->
Apply the above logic to the target message type nodes...Constant(File_Name) should be kept as per the file for which you are validating.
Above will generate only MessageType1....MessageType2 wont come....similarly if O/p of Dynamic config UDF says it is File2 then Messagetype2 will come and not 1
Regards,
Abhishek.
Edited by: abhishek salvi on Dec 7, 2009 3:54 PM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.