Question:
Hi! I am writing ALV report. I've loaded data into internal table with header line. I've created field catalog in the same order the fileds are ordered in the internal table. Then called REUSE_ALV_GRID.
The result is showing fields in the report in different order then in internal table. When I do not create field catalog - it works fine, but I need the headers to have specific values.
Please, advise what can be cause of this. This is my first ALV.
Thank you!
Answer:
The fields should appear in the same order as they are listed in the field catalogue but you can change this by setting field COL_POS. Check that you are not sorting the field catalogue and that you are not settting COL_POS.