cancel
Showing results for 
Search instead for 
Did you mean: 

How to process a JCO.Table object line by line

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

abhijeet_mukkawar
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Take a look at this:

Good luck,

Roelof