Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Inserting data in internal table in multiple lines

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");

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question