cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting data in internal table in multiple lines

Former Member
0 Kudos

Inserting data in internal table in multiple lines.

This is done in JCO code as below.

How to achive the similiar requirment in Webdynpro.

JCO COde

JCO.Table input = function.getTableParameterList().getTable("T_LINES");

input.appendRow();

// standard text format for sap - not to be displayed

input.setValue("*","TDFORMAT");

// text in each table row

input.setValue(data,"TDLINE");

View Entire Topic
Former Member
0 Kudos

Hi Raghu,

Try following:

<Z_Table_ModelClass_name> input = new <Z_Table_ModelClass_name>();
// standard text format for sap - not to be displayed
input.setValue("*","TDFORMAT");
// text in each table row
input.setValue(data,"TDLINE");

function.addT_LINES(input);

If you do not know what to replace for <Z_Table_ModelClass_name>, place cursor inside the bracket in parameter brackets of code line function.addT_LINES(<place cursor here>) and press ctrl + space.. You will come to know object of which model class to pass.

Warm Regards,

Gopal