Skip to Content
author's profile photo Former Member
Former Member

ALV Display Layouts

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 22, 2005 at 08:28 PM

    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

    ssimsekler@yahoo.com

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 08:47 PM

    I'm using the function module version and not OO. Is there an equivalent function of this method in that version?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 10:54 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.