change the columns positions of al alv grid
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
Suhas Saha replied
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