My logic is
if txt=os then pass UA
if txt=gs then pass TA
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