How to get ALV Field Catalog/Layout AFTER user has changed the layout???
Here is the situation:
After displaying my data in a ALV List/Grid for the first time, it is necisarry for the user to change the layout (in other words: they choose the "Change Layout" button at the top and arrange the fields as they desire).
I then need to export the data in this newly arranged layout...
1. I have 3 fields: F1 F2 and F3.
2. There 3 fields get displayed in the order above.
3. The user then decides that they want the field order to be F3 F1 F2 and does so using the "Change Layout" SAP button.
4. I now have to export the data in the field layout as per point 3 above...
Therefore, WHICH FUNCTION MODULES/CLASSES CAN I USE TO GET THIS "NEW" INFORMATION!!!
I have tried Function Module 'REUSE_ALV_LIST_LAYOUT_INFO_GET' but it does not return the correct data... For example, when I remove some fields to be displayed after choosing "Change Layout", this Function Module returns ALL the fields I used...
MAX POINTS WILL BE REWARDED FOR USEFUL AWNSERS!!!