cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

peter_wallner2
Active Contributor
0 Kudos

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