Skip to Content
0
Former Member
Oct 14, 2016 at 04:28 PM

CL_SALV_TABLE - column headers in saved variants

445 Views

Dear all,

the situation is the following:

The users have the option to save variants for alv outputs. If they save the variant and re-submit the report defining the output variant, the column texts are ALL used from the DDIC reference although I define the text using the text methods.

...
    lr_layout->set_initial_layout( ip_vari ).
...
    lr_column ?= lr_columns->get_column( 'KTEXT' ).

    CALL METHOD lr_column->set_short_text
      EXPORTING
        value = ''.

    CALL METHOD lr_column->set_medium_text
      EXPORTING
        value = 'KoStlBez'.

    CALL METHOD lr_column->set_long_text
      EXPORTING
        value = 'KoStlBez'.
...

Can anybody tell me how I can tell the ALV not using the DDIC reference? (The DDIC reference is also not used, if I call the ALV w/o a variant)

Thx in advance for your help.

Kind regards.

André