How to set the position of column in SAP ALV List using Field catalog

The column position in the SAP ALV List can be changed using the COL_POS field of the field catalog.

In the below example, the ‘contact_address’ column is set in the first position of the SAP ALV List.

Field-SYMBOLS: <ls_field_cat> TYPE lvc_s_fcat.

LOOP AT lt_field_cat ASSIGNING <ls_field_cat> WHERE fieldname = ‘CONTACT_ADDRESS’.

     <ls_field_cat> -col_pos = 1.

ENDLOOP.