Skip to Content
author's profile photo Former Member
Former Member

help with mapping

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. 😊

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 12:35 PM

    Hi

    Compare (equalsString)

    IDTNR(Set context to E1EDP01)

    with '002' .

    If the above are equal then map (IfWithoutElse)

    QUALF(Set context to E1EDP01)

    to the target field

    prt-name

    rgds

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.