Hi Amar,
let us consider a scenario. say you have value A and two udfs. if A equals to 5, execute first udf. else second udf.
do remember here udf execution type should be "All values of queue or All values of context".
for understanding, in second udf i will put some expression like int i = 5/0. so whenever this udf is called it will throw ArithmeticException (Java Platform SE 7 ).
1. using ifs
pass A= 5.
as per this condition first udf should be executed let us say "UDFA". we don't want UDFB to be executed. but look here what happens.
result:
you would be thinking that UDFA will be called and UDFB will not be called. but in this case it does not matter if it satisfies the condition or not it will execute both the udfs. hence error.
2. using if
for the same input use if function and see what happens.
now go back to sap note read the description. you will understand.
still if you have any doubts please let us know.
Regards,
Muni.