Skip to Content
0

Discarding Idoc segment based on incoming XML field value

Nov 23, 2016 at 04:58 AM

43

avatar image
Former Member

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)
10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov Nov 23, 2016 at 06:41 AM
1

Hi Elly!

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

Regards, Evgeniy.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks a lot Evgeniy. This is working absolutely fine for me. Really appreciate your effort and time to help community members. New learning everyday :)

Elly

1

Hi Elly!

Thank you very much for your positive feedback.

Regards, Evgeniy.

0