cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO change sequence of columns in WDA alv?

Former Member
0 Kudos

Hi specialists

Is it possible to change the sequence of columns which appear in a WD4A alv?

How do I get this done without having to change the sequence of attributes of the contextnode?

Thanks in advance

Wouter Heuvelmans

Pyramid Applied Solutions

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wouter.

In the ALV column class is a method to set the position. Just try it out.



DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE ,
      lr_column_settings TYPE REF TO if_salv_wd_column_settings,
      lr_col TYPE REF TO cl_salv_wd_column.

l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Alv( ).
lr_column_settings = l_ref_INTERFACECONTROLLER->Get_Model( ).
lr_col = lr_column_settings->get_column( 'NAME' ).
lr_col->set_position( 1 ).

Hope this helps.

Cheers,

Sascha

Answers (0)