Skip to Content
avatar image
Former Member

Hiding the ALV footer with SET_FOOTER_VISIBLE method

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 19, 2008 at 09:08 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I solved the issue using a similar strategy.

      I declared as:

      data footer_visible_false type salv_wd_constant.

      value->if_salv_wd_table_settings~sET_FOOTER_VISIBLE( footer_visible_false ).

      Thanks for your reply.

      Regards.

  • avatar image
    Former Member
    Nov 19, 2008 at 09:35 PM

    Resolved

    Add comment
    10|10000 characters needed characters exceeded