Skip to Content
0
Sep 13, 2010 at 12:41 PM

In OO ALV Hiding columns on Radio button selection

424 Views

Hi,

In my Report according to Radio button selection, I need to hide few columns.

I tried it with Method - IS_HEADER_VISIBLE.

But it's giving syntax error - " You can only omit the parameter name if the method only has a non-optional parameter or an optional IMPORTING parameter that is identified by "PREFERRED PARAMETER".

I am unable to work on this.

DATA: lr_columns   TYPE REF TO cl_salv_columns_table.

TRY.
        CALL METHOD lr_table->get_columns                               
           RECEIVING
             value = lr_columns.
      CATCH cx_salv_not_found .
    ENDTRY.

    lr_columns->set_optimize('X' ).
    lr_columns->is_headers_visible( 'X' ).