cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ALV hide field

Former Member
0 Kudos

Hi,

Does anyone knwo how i can hide a field in a web dynpro by the abap code?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do you want to hide a column

DATA:
lo_model type ref to cl_salv_wd_config_table\
lv_id TYPE string,
lr_column type ref to cl_salv_wd_column,
lt_columns type SALV_WD_T_COLUMN_REF,
ls_columns type SALV_WD_S_COLUMN_REF.

    CALL METHOD lo_model->if_salv_wd_column_settings~get_columns
      RECEIVING
       value  = lt_columns.

loop at lt_columns into ls_columns.
     lv_id = ls_columns-id.
    lr_column = ls_columns-r_column.
case lv_id.
when 'COL1'.
          CALL METHOD lr_column->set_visible
            EXPORTING
              value = cl_wd_uielement=>e_visible-none.
when 'COL2'.
endcase.
endloop.

Regards,

Lekha.

Answers (0)