cancel
Showing results for 
Search instead for 
Did you mean: 

Input enabled table with multiple rows

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member188831
Contributor
0 Kudos

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

Answers (0)