on 09-17-2008 11:24 AM
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");
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.