Skip to Content
avatar image
Former Member

Discarding Idoc segment based on incoming XML field value

Hi All,

I have a simple requirement but somehow I am unable to find a solution for this. My scenario is SOAP to Idoc and we are using Idoc XML at sender SOAP adapter too. There's a field 'QUALF' under root element 'E1EDK02' and whenever this field 'QUALF' has a value '004', I need to ensure that in target Idoc 'E1EDP01' segment should not get created. The possibility is that QUALF can have only 001 and 004 as values. If both values come together then the target segment is still to be discarded. However if only 001 comes then EIEDP01 should get created.

Using graphical mapping its easy to put validation against 004 value, however it goes on to create target segment when it finds 001 in queue. I tried using node functions but still no result.

Can you guys please advice how to resolve this ? If this is handled using a UDF then I would greatly appreciate a code for this.

Thanks in advance

Elly

9mrba.png (5.2 kB)
t9su6.png (28.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Hi Elly!

    Should target segment be created if the only segment with QUALF=001 comes in source message? Or if all E1EDK02 source segments (one or more may exist) should contain QUALF=001 value?

    Regards, Evgeniy.

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 23, 2016 at 06:41 AM

    Hi Elly!

    Assuming "OrderID" in my structure as "QUALF" and "E1EDL37" as "E1EDP01" you could use something like this:

    Regards, Evgeniy.
    Add comment
    10|10000 characters needed characters exceeded