on 09-19-2011 11:22 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.