Skip to Content

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

How to get ALV Field Catalog/Layout AFTER user has changed the layout???

Hi Guys,

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...

For example:

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...

Please advise,

MAX POINTS WILL BE REWARDED FOR USEFUL AWNSERS!!!

Tags:
Former Member
replied

In the fieldcatalog, look for

- fieldcat-TECH " Field not displayable

- fieldcat-NO_OUT " Field not displayed

- fieldcat-COL_POS " position of field

Regards

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question