Skip to Content
avatar image
Former Member

IDoc to File scenario (External Definition)


I have a scenario which is a Idoc to file scenario. Here I want to continue with mapping only if the field MATNR exists on the source side (Idoc) otherwise I should get a message on the target side that the "Mapping failed because MATNR field does not exist " and the mapping should fail.

There are two independant MATNR fields and mapping should fail if I either of them does not exist.Please keep in mind that there indepandant of each other.

Please help

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 07, 2010 at 08:18 AM

    Use exists (Node function) for both the MATNR fields and then Boolean function AND so that the result will be true only if both the MATNR fields exists. But here you need to take care of contexts. But as the mapping step failed there won't be any message to target node.

    Else use conditional receiver determination and check the existance of MATNR fields in source payload and route the message accordingly.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Write an UDF for customized error message in SXMB_MONI.

      Refer these blogs for help-