on 05-27-2008 2:33 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
95 | |
11 | |
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.