on 06-03-2008 5:18 AM
Hi friends,
I am doing one program which retrieve values from SAP (RFC_READ_TABLE)
While retreiving from table vbak i am getting error of
java.util.NoSuchElementException
The code where exception is raising is
for(com.sap.mw.jco.JCO.FieldIterator fI = tableList.fields(); fI.hasMoreElements(); mb.append("\r\n"))
{
com.sap.mw.jco.JCO.Field tabField = fI.nextField();
data = tabField.getString();
error = data;
StringTokenizer st = new StringTokenizer(data, "|");
mb.append("|");
for(int i = 0; i < rec_count; i++)
try
{
String tempdata = st.nextToken();
mb.append(tempdata + "\t|");
tempdata = mysap.replace(tempdata, "\\", "\\\\");
sapdata<i> = mysap.replace(tempdata, "'", "\\'");
// System.out.println("Java memory in use = " + ((Runtime.getRuntime().totalMemory()) - (Runtime.getRuntime().freeMemory())));
}
catch(Exception ex1)
{
// sb.append("<BR>" + count + "[" + i + "]" + ex1.toString());
System.out.println("Error insertData module:" +"<br>");
System.out.println("<BR>" + count + "[" + i + "]" + ex1.toString());
}
}
My error trace is Error insertData module:<br>
<BR>488[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>563[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>700[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1080[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1081[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1110[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1112[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1113[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1115[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1116[10]java.util.NoSuchElementException
Error insertData module:<br>
<BR>1117[10]java.util.NoSuchElementException
Error insertData module:<br>
etc
please help me .
thanks
Wrong forum to post this i think, put this question in the programming forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.