Skip to Content

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

illegal start of expression in UDF


What am i doing wrong n this UDF? It gives an illegal start of expression at the first 2 if statements saying an ")"is expected:

public String Determine_AMT_DOCCUR(String KTOS,String BRUTTO,Container container){

int KTOSNR = 0;

String tmpDOCCUR = "";

KTOSNR = new Integer(KTOS).intValue();

if (KTOSNR <> 0 && BRUTTO.contains("+")) tmpDOCCUR = BRUTTO;

if (KTOSNR <> 0 && BRUTTO.contains("-")) tmpDOCCUR = BRUTTO.replace("-","+");

if (KTOSNR = 0 && BRUTTO.contains("")) tmpDOCCUR = BRUTTO.replace("","-");

if (KTOSNR = 0 && BRUTTO.contains("-")) tmpDOCCUR = BRUTTO;



return tmpDOCCUR;

Former Member

Helpful Answer

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