Hi Aziz,
You may ty this:
if $[OCRD.Groupcode] ='101' and $[OCRD.Cardtype] = 'C' SELECT 'XXXXX'
else if $[OCRD.Groupcode] ='102' and $[OCRD.Cardtype] = 'S' SELECT 'YYYY'
else if $[OCRD.GroupCode] ='103' and $[OCRD.CardType] = 'C' SELECT 'ZZZZ'
replace groupcode with the groupcode value from SBO and replace xxxx, yyyy and zzzz with udf values.
You may replace the condition of cardtype.
Thanks,
Joseph