Skip to Content

Screenshot the entire output screen,

i have a requirement where there is a selection screen in which there are number of input fields , which when i enter the input values , on the same screen i get the output as alv in a container .

i need to capture the entire screen , from selection screen to the output alv ., now whats happening is i tried using

CALLMETHOD CL_GUI_FRONTEND_SERVICES=>GET_SCREENSHOT

but that gives me screenshot of the active screen only that cuts the alv output in half which is not acceptable to the user.

HELP please. if the entire output screen as well as the selection screen is not possible ., can i know how to achieve this requirement alternatively .

Add a comment
10|10000 characters needed characters exceeded

  • Okay, I see. So, it's not really a screenshot.

    The only solution is to do a custom development specific to the concerned screen which outputs the data to a file (like export ALV data + export selection screen data). Doing only screenshots makes it hard to work with the data.

  • Hello Sandra ,

    Suppose for eg. in Report output we are getting 100 records , and on the screen i am able to see only 50 records , but for the rest i have to scroll down .

    And if we consider the above scenario GET_SCREENSHOT method will give the screenshot of only 50 records which are shown in the active screen, but according to our requirement we want the screenshot of all the 100 records i.e the whole output screen not just the active screen which is visible.

  • 1) Could you show the difference please? (GET_SCREENSHOT versus what you expect)

    2) Did you search the SAP notes?

Related questions

1 Answer

  • Posted on Jul 29, 2020 at 04:51 PM

    Hi Rohan,

    You can do the following:

    1. Accept input parameters.
    2. Process and display ALV on same screen.
    3. Take screenshot with the method you mentioned.
    4. Use method set_scroll_info_via_id from cl_gui_alv_grid and scroll to specific row.
    5. Take screenshot again.
    6. Repeat steps 4th & 5th until you reach the end of ALV.

    Let us know if it works for you.

    https://abapblog.com/articles/tricks/22-refresh-alv-grid-and-keep-position-and-current-cell

    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.