on 09-13-2010 12:58 PM
Hi,
I want to reduce ALV table row display to 5 or less from default 10 rows.
I tried finding ALV Interface TABLE Settings and other settings and could not find out. Please let me know where shopuld i find the configuration?
Thanks
Praveen
Hi Praveen,
you can set the visible row count as
set_visible_row_count( '5' ).
cheers,
bhavana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its the SET_VISIBLE_ROW_COUNT method of the IF_SALV_WD_TABLE_SETTINGS interface of the table config model class:
**** Access Component Usage
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
****Access Config Table Model
DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
l_salv_wd_table = wd_this->wd_cpifc_alv( ).
DATA l_table TYPE REF TO cl_salv_wd_config_table.
l_table = l_salv_wd_table->get_model( ).
l_table->if_salv_wd_table_settings~set_visible_row_count( 5 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
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.