Hi,
I have an UDF where I create Idoc depending on the source message. But if the right input isn't entered I don't want to create any Idoc. but since I have an "else" with return in the end of the code it automatically creates an Idoc even if the wanted value is not entered.
Do you know what should be in the return statement in order to not create any Idoc?
if(a.equals("X"))
{
return Idoc;
}
else if(a.equals("Y"))
{
return Idoc;
}
else {
return "";
}
thanks