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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Raghu,

is u r going to display text in multiple lines or the multiple rows.

if Multiple line then fix the column width to some pixels(eg 100px) and set the propety 'wrapping' to 'true' of the textview of a particular column.

Regards,

Siva Sankar N