on 07-01-2013 10:47 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.