on 2007 Jun 21 7:35 AM
Hi All,
I am trying a scenario from Sravya' blog(/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii) wherein the source structure is
Header 1..1
--MatDescr 1..1
Item 0..N
--ItemNo 1..1
--MatGroup 1..1
Target Strcutre
Header 1..N
--MatDescr 1..1
--MatGroup 1..1
--Item 1..1
-
ItemNo 1..1
The target strcutre will have N records for each ItemNo in source structure.
If I use the useOneAsMany fucntion then the context for MatDesc and ItemNo would be same. The context for MatDesc is HEADER but wihin the context of ItemNo, there is no such context as HEADER. How can I put the Context of ItemNo to that of MatDesc.
The structre for function mapping is:
MatDescr
ItemNo useOneAsMany MatDescr
ItemNo
Kindly let me know, how can I fill up the data in the HEADER(Target message) for each value of ItemNo.
Thanks,
Amit
Request clarification before answering.
Hi Amit,
<i>how can I fill up the data in the HEADER(Target message) for each value of ItemNo.</i>
Select the ItemNo field in the source. Change the context of ITemNo field in source to Header. Map the field ItemNo to Header in target.
Regards,
Sumit
ps : award points if that helped u.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
<i>The context for ItemNo does not contain Header. The context contains 2 values: Item and Datatype name.</i>
I just went through the blog. Context for Item No ..Header wont be present.
Everything is explained in the blog in a wonderful way. Read the same 2-3 times u will understand.
Incase you have doubt with <b>7.useOneAsMany</b>- in the blog..then heres what you need to do..
We have 3 fields in source..
1) MatDesc - Let the context be whatever is the default one.
2) ItemNo - Change the context to Item.
3) ItemNo - Let the context be whatever is the default one.
Regards,
Sumit
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
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.