on 06-09-2014 7:33 AM
Hi Experts,
I have tried the example from the below blog: SAPTechnical.COM - Implementation of Node functions
I have changed the context level as mentioned in the blog. I have changed the Plant Context Level to Mt_Sender for both MatNo and MatDesc while Mapping on target Side. Remaining i have Mapped normal field to field from Source to Target. When i am checking the Message Mapping it is throwing the Error as mentioned below:
Source Structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Sender xmlns:ns0="http://UseOneAsManyExample">
<Header>
<MatNo>MatNo</MatNo>
<MatDesc>MatDesc</MatDesc>
</Header>
<Item>
<MatNo>MatNo1</MatNo>
<ItemNo>ItemNo1</ItemNo>
<MatGroup>MatGroup1</MatGroup>
<Mattype>Mattype1</Mattype>
<Plant>Plant1</Plant>
</Item>
<Item>
<MatNo>MatNo2</MatNo>
<ItemNo>ItemNo2</ItemNo>
<MatGroup>MatGroup2</MatGroup>
<Mattype>Mattype2</Mattype>
<Plant>Plant2</Plant>
</Item>
</ns0:MT_Sender>
Required Target Structure should be as mentioned in the blog. This is a very basic example, but i am not getting the Output. Please check and let me know where i am going wrong in mapping.
Regards,
GIRIDHAR
Hi Giridhar,
Please confirm the error you are facing and also if possible please provide a screen shot of your mapping.
Regards,
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
I have changed the Occurrence of Header on target to o to unbounded and now the occurrence of item and Header are same in the target. But i am getting the Target Result as mentioned below: Header1 with two items item1, item2 followed and then Header2. But Output should be Header1 followed by item1 and then Header2 with item2. Please check the error which i am getting now and please suggest me how can i proceed further.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Receiver xmlns:ns0="http://UseOneAsManyExample"><Header><MatNo>MatNo</MatNo><MatDesc>MatDesc</MatDesc><MatGroup>MatGroup1</MatGroup><Item><MatNo>MatNo1</MatNo><ItemNo>ItemNo1</ItemNo><MatType>Mattype1</MatType><Plant>Plant1</Plant></Item><Item><MatNo>MatNo2</MatNo><ItemNo>ItemNo2</ItemNo><MatType>Mattype2</MatType><Plant>Plant2</Plant></Item></Header><Header><MatNo>MatNo</MatNo><MatDesc>MatDesc</MatDesc><MatGroup>MatGroup2</MatGroup></Header></ns0:MT_Receiver>
Regards,
GiRIDHAR
Best way is to provide source structure and target structure and field level requirement. Field at the header level should be the first parameter and the second and third knows defines when it repeats (context) and how many times. The target node should be created as many times.
At field level, split by Value should be used.
Hope it helps!
Ambrish
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.