Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

change the columns positions of al alv grid

Hi experts,

I m displaying al alv grid using :

CALL METHOD cl_salv_table=>factory


r_salv_table = lo_table


t_table = gt_outtab[].

gt_outtab is of table type with structure :




So i get the pernr column as first, 2nd is the ename and as last column the email.

How i can change the position of my columns without modifying the structure of gt_outtab?

the result what i want to have :

Pernr email ename


Former Member

Check the demo program SALV_DEMO_TABLE_COLUMNS.

You can use the method SET_COLUMN_POSITION of the class cl_salv_columns.

Unfortunately SAP didn't implement this in the demo program You can check the use in the report RLLI0500.

Edited by: Suhas Saha on May 7, 2010 9:59 PM

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question