on 11-19-2008 7:03 PM
Friends,
I need to hide the footer in an ALV table.
The footer has the functionality to scroll between the different rows and columns. I need to hide the entire footer or atleast the different scroll buttons.
I looked at the IF_SALV_WD_TABLE_SETTINGS that has the SET_FOOTER_VISIBLE method.
I have included the following lines of code:
-
DATA cmp_usage TYPE REF TO if_wd_component_usage.
DATA alv_interfacecontroller TYPE REF TO iwci_salv_wd_table .
DATA value TYPE REF TO cl_salv_wd_config_table.
DATA valid_from_flag TYPE string.
DATA column TYPE REF TO cl_salv_wd_column.
DATA column_header TYPE REF TO cl_salv_wd_column_header.
DATA text_view TYPE REF TO cl_salv_wd_uie_text_view.
cmp_usage = wd_this->wd_cpuse_alv_process_select( ).
IF cmp_usage->has_active_component( ) IS INITIAL.
cmp_usage->create_component( ).
ENDIF.
alv_interfacecontroller = wd_this->wd_cpifc_alv_process_select( ).
value = alv_interfacecontroller->get_model( ).
value->if_salv_wd_table_settings~set_footer_visible( ).
-
I need to hide the footer. I tried passing abap_false as parameter to the set_footer_visible() method but this throws up an error.
Please let me know if I am using the right method for hiding the footer and if so, how to do so.
Thanks and Regards.
I
Resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Write this code in wddoinit method of the view where you are displaying the alv.
lr_config_model->if_salv_wd_table_settings~set_footer_visible(
EXPORTING VALUE = IF_SALV_WD_C_TABLE_SETTINGS=>FOOTER_VISIBLE_FALSE ).
Hope you have already difined lr_config_model ..
if not define in this way...
DATA: lr_cmp_usage TYPE REF TO if_wd_component_usage.
lr_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
DATA: lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_config_model TYPE REF TO cl_salv_wd_config_table.
lr_if_controller = wd_this->wd_cpifc_alv( ).
lr_config_model = lr_if_controller->get_model( ).
Hope it works.
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.