I have setup layouts for my ALV report. However, while a user is running this report I need to know if the he has added some fields into this layout without saving the variant. For example, he is using layout /TEST which displays fields A, B, C, D, and E. If he added field K in his display, I need to be able to catch it when he did so. Is that possible? How?
Thanks in advance!
Hi Beth
I am not so sure bu the method <b>"get_frontend_fieldcatalog"</b> may be utilized for this. This way you can compare the current one with a predefined one.
Regards
*--Serdar
If your user can define their own layouts and defaults, then this could take some experimenting.
When you send the ALV for display, the system takes over and applies the users default layout. At this point your program does not know the current layout. Th user could change the layout and your program could read back the contents but since you do not know where the starting point was, I am not sure what you would do? And even if you get the contents back, that does not tell you whether or not the user has saved the layout and I am not sure it returns the name of the layout.
Can you help us understand what you are trying to accomplish? Are you trying to prevent the user from exiting without saving?
Add a comment