Skip to Content
0
Former Member
Apr 09, 2008 at 12:14 PM

help with mapping

20 Views

Source structure:

+IDOC

++E1EDP01

+++ZSEG (SEGMENT)

++++quantity

+++ZSEG (SEGMENT)

++++quantity

+++ZSEG (SEGMENT)

++++quantity

+++EDP19 (SEGMENT)

++++QUALF(001)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

++++QUALF(002)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

++++QUALF(003)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

++E1EDP01 (II occurance of of EDP01)

+++ZSEG (SEGMENT)

++++quantity

+++ZSEG (SEGMENT)

++++quantity

+++ZSEG (SEGMENT)

++++quantity

+++EDP19 (SEGMENT)

++++QUALF(001)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

++++QUALF(002)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

++++QUALF(003)

++++IDTNR(mat_name)

+++EDP19 (SEGMENT)

EDP19 can have QUALF values from 001 to 003.

I have to pick up IDTNR value from EDP19 for which QUALF == 002 and send to prt-name

Target structure:

Loc (SEGMENT)(mapping -> if quantity > 0 > createif)

+name

+prt (SEGMENT)(mapped to a constant )

++name (get mat_name from EDP19 for which QUALF == 002 )

++item (SEGMENT)(mapped to a constant )

+++quantity (get quantity for ZSEG )

my target structure will be produced when the quantity is > 0.

in the above case, there are 3 ZSEG and each has one Quantity.

if only one of them is > 0 then it will generate only one target structure.

My requirement is ...

I am facing some problem while populating prt-name (from IDTNR of EDP19 ) for the structure of Zseg whose quantity is > 0

if anyone got same kind of requirement earlier, help me

thanks and regards,

Nikhil. 😊