Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

UDF Mapping Error... Simple code

I am attempting to try a simple UDF

if (String a == String b || String a == String c)

return "yes";

however I get the following error...

Source code has syntax error:

/usr/sap/CXD/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map03a9a9e0852011dbaae9000d60de069c/source/com/sap/xi/tf/_MM_Source_Target_.java:39: ')' expected

if (String a == String b || String a == String c)

^

1 error

Now clearly I am missing ')' somewhere but I dont understand where...

I am trying to do a simple if String 1 is equal to String B or String a is equalt to String c then result is yes.

Can some one let me know where Im going wrong

Former Member
Former Member replied

Alex,

I think you could also need java api (list of standard objects and methods for java developments) : http://java.sun.com/j2se/1.4.2/docs/api/

Have a look at object String and it's methods for example.

Regards,

Sergio

PS: do not forget to mark the problem as solved

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question