cancel
Showing results for 
Search instead for 
Did you mean: 

View ALV Column

ronaldo_aparecido
Contributor
0 Kudos

HI people

i have

LOOP AT lt_columns ASSIGNING <fs_column>.

     CASE <fs_column>-id.

       WHEN 'DOCNUM'.

         CREATE OBJECT lo_link.

         lo_link->set_text_fieldname( <fs_column>-id ).

         <fs_column>-r_column->set_cell_editor( lo_link ).

       WHEN 'CLASSE'.

         <fs_column>-r_column->get_header( )->set_text( 'Classe' ) .

         <fs_column>-r_column->get_header( )->set_tooltip( 'Classe' ).

         <fs_column>-r_column->get_header( )->set_ddic_binding_field( ).

       WHEN 'STATUS'.

         <fs_column>-r_column->get_header( )->set_text( 'Status da NFe' ) .

         <fs_column>-r_column->get_header( )->set_tooltip( 'Status da NFe' ).

         <fs_column>-r_column->get_header( )->set_ddic_binding_field( ).

       WHEN 'STATUS_ECC'.

         <fs_column>-r_column->get_header( )->set_text( 'Status SAP ECC' ) .

         <fs_column>-r_column->get_header( )->set_tooltip( 'Status SAP ECC' ).

         <fs_column>-r_column->get_header( )->set_ddic_binding_field( ).

       WHEN 'SORT2'.

         <fs_column>-r_column->get_header( )->set_text( 'Passaporte' ) .

         <fs_column>-r_column->get_header( )->set_tooltip( 'Passaporte' ).

         <fs_column>-r_column->get_header( )->set_ddic_binding_field( ).

HOW the field 'CLASS' can become invisible in ALV?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ronaldo,

Either you can set the visibility of the column as false (user can bring it back using ALV Settings function )or you can delete the column (the column will not be available in Settings).

<fs_column>-r_column->set_visible( cl_wd_uielement=>e_visible-none ).

or

    CALL METHOD lo_salv_wd_config_table->if_salv_wd_column_settings~delete_column

      EXPORTING

        id = 'CLASS'.

NB : lo_salv_wd_config_table is the reference of  cl_salv_wd_config_table can be retrieved using the 'get_model' method of ALV interface controller.

Thanks,

Sonia.

ronaldo_aparecido
Contributor
0 Kudos

THANKS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

Answers (0)