Skip to Content
avatar image
Former Member

UDF required

Hi All,

There is a requirement where in i need to pass a filed value only if its qualifier is equal to some constant .for eg..

Pass BELNR value to XYZ filed only when QUALI value is 100.here BELNR and QUALI both belong to one segment.

if in the input IDOC data is as follows:

QUALI BELNR

300 a

200

100 c

400 d

then it passes d not c to the target as there is no value for 200 .Plz can anyone help me with this

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 13, 2011 at 09:23 AM

    Hello,

    The node function mapWithDefault will solve your problem

    QUALI -> equalsA ------------------> ifWithoutElse -> Target
    Constant: 100 -> / BELNR -> mapWithDefault -> /
    

    Hope this helps,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2011 at 09:25 AM

    Hi,

    Use Ifwithout else so that if the value is equal then only it will create the target element.

    regards,

    Priyanka

    Add comment
    10|10000 characters needed characters exceeded