on 11-25-2009 5:35 AM
Hi,
I've created ALV and now I need dynamically to set number of visible rows to some number.
is it possible to do so ?
Rgds
hi,
to change the visible row count to u20185u2019
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
).
lo_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).
check out this thread :
rgds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
hav u referred these demonstrations by Thomas :
/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv
check out these useful links :
Configuring ALV
ths r gud links 4 beginners
rgds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this code :
* Set Visible Row Count
l_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).
Here l_value is :
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv( ).
DATA l_value TYPE ref to cl_salv_wd_config_table.
l_value = lo_interfacecontroller->get_model(
).
Above code can be generated from Code wizard.
Its just instantiating the ALV and then using Get Model method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.