Hi
I am getting errors in this java code
kindly help
public String CheckCode(String inputCode,Container container)
{
if(inputCode.equals("AED")||inputCode.equals("AFA")|| inputCode.equals("AFN")||................inputCode.equals("FGH"))
return true;
else
return false;
}
I am using this in graphical mapping , as a condition to create the target structure if the value of the input node is AED , AFA or AFN
inputfield --> CheckCode -
>if
Constant(true)--
->then
---> Target
Can anyone please tell me what is wrong ??
the error that i am getting while activating mapping is
1) incompatible types found : boolean required: java.lang.String return true;
2) incompatible types found : boolean required: java.lang.String return false;
3)cannot resolve symbol
symbol : variable inputCode
location: class com.sap.xi.tf._MM_ABC_ inputCode.equals("AFA")||
I have two questions :
1) Are the parantheses or the brackets in the if condition fine ?
2) is there a problem with the || symbol
3) what is the boolean required for ???
thanks
Dev