on 12-14-2006 1:01 PM
Hello all.
I am new to development using JCo. How to process a JCO.Table line by line?! I want to print each line of the table using System.out.println ...
Thx a lot
Mike
Hi Mike,
here is a sample code for you,
JCO.Table codes = function.getTableParameterList().getTable("INFO");
for (int i = 0; i < codes.getNumRows(); i++) {
codes.setRow(i);
int tmp = new Integer(codes.getString("POSNN")).intValue();
String tmpStr = new String(Integer.toString(tmp));
ret = result.put(tmpStr, codes.getString("VBELN"));
}
then using System.out.println(), you can print these values.
regards,
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.