Skip to Content
avatar image
Former Member

UDF for excluding a segment depending on a field value

Hi all,

I'm doing idoc to file...I need to exclude a segment depending on a filed value..for ex:

E1EDP01 (0...unbounded)

F1

F2

F3

If F2 has a value "0" don't create E1EDP01 segment else create...

any sample UDF..

Thanks,

Srini

Edited by: Srinivas Davuluri on Apr 29, 2009 10:37 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 30, 2009 at 04:01 AM

    Hi

    E1EDP01 (0...unbounded)
    F1
    F2
    F3
    
    If F2 has a value "0" don't create E1EDP01 segment else create...
    any sample UDF..

    No need to write UDF

    Just put an condition to node as follows

    F2 equals 0 --> not --> removecontext --> IfwithoutElse --> if (Map this removecontext from Not)

    else (Map Constant (Value : Tab) -- RemoveContext)

    it will work

    Srini

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 30, 2009 at 05:36 AM

    Hi,

    F1------------->equals---->not---->createIf---->E1EDP01
    constant(0)/
    

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 05:13 AM

    use this mapping

    F2 -------equalS  --> not --> removecontext --> IfwithoutElse --> E1EPD01
       constant(0)/
    

    Add comment
    10|10000 characters needed characters exceeded