Skip to Content
0
Former Member
Oct 16, 2009 at 08:46 AM

UDF

47 Views

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