Skip to Content
avatar image
Former Member

SAP Xi: How can i realize that mapping ?

Hi,

i need the following mapping.

IDoc = ORDERS / ORDERS05

The field E1EDP01-ABGRU should be filled with "10" if the field E1EDK14-ORGID = "XX" (QUALF = 012).

How can I realize that ?

I used an If then else but everything will be filled with "else value" cause i think it´s a context-problem.

Any Ideas ?

Thank You,

Gordon

btw... sorry for the wrong posting in Web AS Forum !

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 12, 2005 at 01:37 PM

    now i have created a java function.

    looping at e1edk14 ... if value is found -> result value into e1edp01-abgru.

    It seems to work but only for the first position ? The next Positions will be empty.

    Any Ideas ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 12, 2005 at 01:44 PM

    Hi Gordon

    I guess, ORDERS05 is the target structure here and you are mapping the same for a source message, probably with a different structure.

    Anyhow, you could use ifwithoutelse function for the same. The mapping would be

    1) Use equalS (text function), with two inputs (Constant XX and ORGID from the input structure).

    2) Use ifthenwithoutelse (boolean function) with input for 'if' as 1) and constant '10' as input for 'then'

    3) Map the result to E1EDP01/ABGRU.

    Let me know if this works.

    KK

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      KK,

      thanks for you answer, this way was my first one and it works ... but if the ORGID is not XX it comes to an error.

      the ABGRU must be filled with any value ? ... and only the first position was filled with 10 ?

      the error comes only if the copyvalue function is used.

      Without the copyvalue function it works ... but only for the first position. !

      Regards,

      Gordon

      Message was edited by: G. Breuer

  • avatar image
    Former Member
    Jul 13, 2005 at 04:58 AM

    I have checked the java function and it seems to be OK.

    IF i use the copyvalue function everything works fine but opnly if the ORGID = XX.

    If i don´t use the copyvalue function ... i will only get the first position.

    Any further ideas ?

    Thank You.

    Add comment
    10|10000 characters needed characters exceeded