Skip to Content
0
Former Member
Oct 21, 2011 at 12:26 PM

Help regarding UDF

20 Views

Hi

My logic is

if txt=os then pass UA

or

if txt=gs then pass TA

else

pass DEL

here txt comes in a segment which comes multiple times.let me say for example if an idoc is coming with 3 segments and txt=gs is in the last segment then output should be TA.

I wrote and udf(Value) using normal if else conditions but it's returning the value DEL as txt in first segment is someother value. But i need to consider all 3 segments and then return the output value. How to handle this contexts.please help me.

PS:Target field is 1:1 occurance

TIA