cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for excluding a segment depending on a field value

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

jyothi_anagani
Active Contributor
0 Kudos

Hi,


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

Thanks.

Former Member
0 Kudos

use this mapping


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