Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid Exporting to Excel - Columns out of order

Former Member
0 Kudos

Hi,

In my ALV grid everything is in order as it is in the structure. When however I export to excel from ALV grid, the columns are out of order. First it lists the string columns, then number columns and lastly date columns. Is there a way to make excel keep the same order as it is in ALV grid?

Thanks,

Sergiy

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

Don't see any issue with Program or SAP.Take a help of the Excel expert and ABAPER(Hope you are) sit together ,and try to figure out.

3 REPLIES 3

former_member181995
Active Contributor
0 Kudos

Don't see any issue with Program or SAP.Take a help of the Excel expert and ABAPER(Hope you are) sit together ,and try to figure out.

0 Kudos

I am not much of an ABAPer but I was able to set the column position during data declaration with

gs_fcat_line-col_pos = 1, for example.

That would put the column in the first position in ALV as well as the excel export.

Thanks for your inputs.

Sergiy

Former Member
0 Kudos

Make sure that you are not using any custom layout for the ALV