on 01-11-2008 1:19 PM
Hi All,
I have a scenario to create a table in webdynpro for abap. This is a user interface. Here user will be providing value for tabe in multiple rows. And once user will press the Save button then all the rows of table will be read and will be saved in database.
My problem is the table is displaying only one row as input enabled not all the rows. Can anyone please help on this? Points will be assured.
If I am providing rowCount = 2. Or more than 2 then it is creating short dump.
Thanks & Regards,
Ashvender
Hi Ashvender
In init method of your view :
Read the context node with which u have binded the table control fields.
Create a internal table same as structure of your context node
append blank records for as many editable rows u wanted
Bind the internal table.
Ex:
node_table TYPE REF TO if_wd_context_node,
elem_table TYPE REF TO if_wd_context_element,
stru_table TYPE if_v_table=>element_flight ,
lt_stru_table TYPE if_v_table=>elements_flight .
node_table = wd_context->get_child_node( 'TABLE' ).
clear: stru_table.
do 5 times.
append stru_table to it_table.
enddo.
node_table->bind_table( it_table).
Regards
Vishal Kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Even i am also facing same problem.
it is working in init method when i get some records from database table and bind to it, the table is shwoing all the records.
But if i input the records more than one, it is bringing only one record.
any idea ????
i am working on ECC6.0 with SP13.
Thanks,
Mahesh
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.