cancel
Showing results for 
Search instead for 
Did you mean: 

JCO.Table *appendRows

Former Member
0 Kudos

Could any one provide more information on appendRow() and appendRows() when setting an value to JCO.Table.

what i need to use when i want to insert 72 characters for each row in JCO.Table.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

if you want to add only one row in a JCO.Table. Use appendRow() like this:

table.appendRow();
table.setValue(value, "fields_name") ; // or table.setValue(value, field_index);

But if you want to add more than one row in your JCO.Table. Use appendRows() is better, like this:

table.appendRows(100); // number of rows to add.

for(int i=0 ; i<100 ; i++)
{
   table.setValue(value, "fields_name") ; // set the current row value
   table.nextRow(); // move to the next row in the table
}

I hope it will help you.

Best regards,

Mathieu.

PS : reward points if helpful

Former Member
0 Kudos

Dear Mathieu Ortelli,

I am new one to SAP technology.From the Java background.I don't no whether this question is correct or not.

I have some task to fetch some details from function module like "BAPI_COMPANYCODE_GETDETAIL".

it's return COMPANYCODE_ADDRESS,COMPANYCODE_DETAIL,RETURN    as output structure.

above u are mentioned how to add row of data into a table.but here there is any possibility to add row in COMPANYCODE_ADDRESS.