cancel
Showing results for 
Search instead for 
Did you mean: 

java syntax issues

Former Member
0 Kudos

Hi,

I am getting syntax errors in below code,

D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:165: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out1 = contractNo + tmpqtystr1 + price + delperiod.substring(0,4)+"01" + condate + shipwts + mtype + cif + comtype + rejreason ^ D:/usr/sap/XIQ/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map98ec4020b05611dfa9e0005056a47072/source/com/sap/xi/tf/_MM_RSPD_INFILE_RSPD_OUTFILE_.java:177: cannot resolve symbol symbol : class string location: class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ string out2 = out1; ^ 2 errors

is there any declaration issue..........

string out1 = contractNo + tmpqtystr1 +  price +  delperiod.substring(0,4)+"01" +  condate +  shipwts +  mtype +  cif +  comtype +  rejreason 
+  type +   usrname +impdate +  imptime ;

int strlen = out1.length();

for (int s = strlen; s<178; s++)
{

out1 = out1.concat("");

}

string out2 = out1;

out1 = out1.concat(delperiod.substring(0,4)+"01");

result.addValue( out1 );

out2 = out2.concat(delperiod.substring(0,4)+"03");

result.addValue( out2 );

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

for string declaration s should be in caps String try to change the declarations in your code for the String

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html

Former Member
0 Kudos

Thanks a lot dude....

this did solved the issue........

lemme keep this post open.......

seems to be some logic issue.........

even the logic issue got solved...... thanks again....

Edited by: san485 on Aug 25, 2010 6:13 PM

Answers (0)