I am trying to pass several records to an ABAP Table through JCO but when I can't move the ponter to next row via nextRow() method and therefore the program is overwriting the same row over and over this is the code:
int total = descripcion.length();
int resto = 132;
int x;
float m = ((descripcion.length())/132f);
x = (int)Math.ceil(m);
int j;
int cont = 0;
for(j = 0; j < x; j++) {
function.getTableParameterList().getTable("RFC_TLINE").appendRow();
function.getTableParameterList().getTable("RFC_TLINE").nextRow();
function.getTableParameterList().getTable("RFC_TLINE").setValue(descripcion.substring(cont,resto),"TDLINE");
cont = resto;
if ((total-resto) > 132) {
resto = resto + 132;
}else {
resto = total;
Can someone help me?
Thanks in advance,
Ruben.