on 06-08-2007 5:32 AM
Hello Guru,
I am doing a multiple message mapping. the purpose is:
the source message structure is
MT_input
|row <1...unbound>
-
|---plant
-
|---name
the two target message structure are:
MT_output1
-|row <1...unbound>
-
|---plant1
-
|---name1
MT_output2
-|row <1...unbound>
-
|---plant2
-
|---name2
there can be many row in source message, the value of plant could be 1 and 2.
I want all rows with plant = "1" goto MT_output1,
all rows with plant = "2" goto MT_output2.
but I can not accomplished this job with graphic mapping. could you give me help?
I don't want to use Java Mapping.
Thanks a lot.
You can use conditions based graphical mapping i.e. you can use IF function of graphical mapping.
IF plant = 1 map plant & name filed to MT1
same logic can be made for MT2 with plant value = 2 .
You need to use Constant (for plant value 1 or 2) & IF function to achieve this.
Regards
Sushil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
MT_input
|row <1...unbound>
-
|---plant
-
|---name
the two target message structure are:
MT_output1
-|row <1...unbound>
-
|---plant1
-
|---name1
MT_output2
-|row <1...unbound>
-
|---plant2
-
|---name2
solution :
MT_input MT_output1
-|row <1...unbound> |row <1...unbound>
if the plant[context set to MT_input] is equals to 1 then map row from source to row in target[MT_output1]
plant and name mapping are direct.
Repeat the same mapping for MT_output2.
This definitely works, i have tried it.
Regards,
Pragati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Mapping for Row of MT_Output1
Plant of Source MT_INPUT with Context at MT_INPUT , with a IFwihtout else to check the value of plant and if matches, map Plant to the Row of target.
1. Mapping for Row of MT_Output2
Plant of Source MT_INPUT with Context at MT_INPUT , with a IFwihtout else to check the value of plant (2) and if matches, map Plant to the Row of target.
Rest will be straight mappin!
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.