Skip to Content

Mapping logic required

Hello Friends,

The scenario is IDOC to JDBC.

In IDOC I have a segment,

ZE1KNA1 cardinality 0:9999

I have field - ZTYPE under this. If ZTYPE has atleast 1 occurance of value 'Z1' then I have to supress all IDOC. Target message should not be generated.

Kindly suggest what kind of mapping logic need to be applied.

Thanks in advance.

Hari

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 11, 2017 at 11:34 AM

    Hi Hari!

    Try this:

    ZTYPE->RemoveContexts->FixValues("Z1" - 1; Default 0)->Sum->equalsS(0)->createIf->Target_Message_Root_Node.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 11, 2017 at 11:32 AM

    Hi Hari,

    If I get the requirement not to generate a target message under certain circumstances, my first thought usually is to sort out the unwanted messages during receiver determination already and not even let them go to the mapping. You can send those filtered out IDocs to a dummy receiver, so you can later on easily see that they were filtered.

    Regards,
    Patrick

    Add comment
    10|10000 characters needed characters exceeded