on 09-01-2010 1:10 PM
Hi.
Have the following structur in the source.
<LineItem>
<Dnote>11</Dnote> 0...1
<PoNum>12</PoNum> 1...1
</LineItem>
<LineItem>
<PoNum>22</PoNum>
</LineItem>
I want this source to generat the following target structure.
Each LineItem should create an E1EDP01 segment. The PoNum should create an E1EDP02 segment inside the E1EDP01 segment and if there is an Dnote in the LineItem then that segment should create an other E1EDP02 segment in the E1EDP01 segment.
For the source structure mentioned above the target structure should lokk as follow.
<E1EDP01 SEGMENT="1">
<E1EDP02 SEGMENT="1">
<QUALF>001</QUALF>
<BELNR>12</BELNR>
</E1EDP02>
<E1EDP02 SEGMENT="2">
<QUALF>016</QUALF>
<BELNR>11</BELNR>
</E1EDP02>
</E1EDP01>
<E1EDP01 SEGMENT="2">
<E1EDP02 SEGMENT="1">
<QUALF>001</QUALF>
<BELNR>22</BELNR>
</E1EDP02>
</E1EDP01>
Is there anybody who could help me with this?
BR
Kalle.
Hi Kalle.
Pls try this.
LineItem---->RemoveContext--->E1EDP01.
PoNum---->E1EDP02.
Dnote----->Exist-->Createif--->E1EDP02[1]. (to create as another
node right click on node E1EDP02 and select duplicate substree)
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalle,
Try the following.
Map:
LineItem --> E1EDP01
DNote --> E1EDP02
016 --> Qualf
DNote --> BELNR
PoNum exists --> E1EDP02
001 --> Qualf
PoNum --> BELNR
I hope that helps!
Best regards,
Peter
PS: Also watch the contexts - you might have to do context changes on the source elements!
Edited by: Peter Wallner on Sep 1, 2010 2:53 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.