cancel
Showing results for 
Search instead for 
Did you mean: 

UDf to check condition

Former Member
0 Kudos

Hi,


I have four values on Source structure

For ex: A B C D

if (A= I) then return B value

if (A=C) then return C value

if (A= D) then return D value

else return 'null'

can you please suggest some UDF on this.

Thank you

Sateesh

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Sateesh,

I recommend you to use the standard function ifWithoutElse (ifWithoutElse - Managing Services in the Enterprise Services Repository - SAP Library) or If (Standard Functions - Creating Design Objects using SAP NetWeaver Developer Studio - SAP Library), you should try to use the standard functions because they are easier to mantain and facilate the PI uppgrades.

Regards.

Answers (0)