cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a row dynamically in table in webdynpro abap

Former Member
0 Kudos

Hi

How to add rows dynamically to a table, such that only the rows containing data should be visible. If the table is empty then no rows should be shown. E.g. if I enter data for one row the table should be seen as containing one row only.

Please reply

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Hi Mitra,

to display only rows which contain data use below method.

set_display_empty_rows ( with value abap_false ). and method belongs to if_salv_wd_table_settings class.( check in se24 )

and you can add single row dynamically using bind_element method.

Regards

Srinivas

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For the table UI element there is a property 'set_display_empty_rows' which is marked as Yes by default. If you uncheck it, empty rows won't be displayed in the table on runtime.

For inserting rows dynamically, you have various methods:

1. create_element, bind_element - for inserting one row.

2. bind_table - for inserting all the rows together.

Former Member
0 Kudos

Hi Srinivas

That was really very helpful and my application is running well. Thanks a lot

Former Member
0 Kudos

Hi Khushi

Thanks a lot for the info. Its working perfectly well now.