Skip to Content
0
Former Member
Sep 22, 2011 at 07:46 AM

Mapping

19 Views

Hi,

Im stuck with a mapping issue. Below is the Idoc structure.

<IDOC>

E1EDPT1 -


0..99

SEGMENT

A

B

C

E1EDPT2-------0..99

SEGMENT

TDLINE-------0..1

|

</IDOC>

E1EDPT1 has some fields and another segment E1EDPT2. Mapping condition is if the source value in any E1EDPT2-TDLINE = LP, then that E1EDPT1 must be copied to the target,

As from the below sample, there are 2 E1EDPT1 segments in the idoc.But only the second E1EDPT1 must be copied to the target idoc since the value of TDLINE in the second E1EDPT2 is = LP

<E1EDPT1 SEGMENT="1">

<A>YS70</A>

<B>E</B>

<C>EN</C>

<E1EDPT2 SEGMENT="1">

<TDLINE>L1</TDLINE>

<TDFORMAT>123</TDFORMAT>

</E1EDPT2>

<E1EDPT2 SEGMENT="1">

<TDLINE>MP</TDLINE>

<TDFORMAT>456</TDFORMAT>

</E1EDPT2>

</E1EDPT1>

<E1EDPT1 SEGMENT="1">

<A>YS70</A>

<B>E</B>

<C>EN</C>

<E1EDPT2 SEGMENT="1">

<TDLINE>M1</TDLINE>

<TDFORMAT>ABC</TDFORMAT>

</E1EDPT2>

<E1EDPT2 SEGMENT="1">

<TDLINE>LP</TDLINE>

<TDFORMAT>123</TDFORMAT>

</E1EDPT2>

<E1EDPT2 SEGMENT="1">

<TDLINE>QP</TDLINE>

<TDFORMAT>PQR</TDFORMAT>

</E1EDPT2>

</E1EDPT1>

Pls give some resolutions

Thanks in advance