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

ALV Page up/down

Hi All,

Is it possible to activate the 4 buttons for Page Up/ Down (P+, P, P--, P-) in ALV?

I added it to PF status also activated the function keys on the PF Status but it does not work. My user wants the page up/down as well as scrolling functionality in ALV.

Please help.

Thanks and Have a nice day

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2009 at 05:40 AM

    Hello,

    Write this.

    START-OF-SELECTION.

    SET PF-STATUS 'Status'.

    Double click on Status, it will ask you to write GUI status.

    In the Function keys --Standard Toolbar,

    enter the Function Codes(page up, page down etc...) as follows.

    Assign standard function Codes to the Page up and Page down buttons in the "Function Keys"

    (4 icons will be there)

    PAGE UP = P-

    NEXT PAGE = P+

    FIRST PAGE = P--

    LAST PAGE = P++

    Save and activate it.

    Reactivate the program as well.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I tried but does not work. Let me know if this worked for you.

      I have PF Status in ALV Gird as well with some additional toolbar option, I created another PF Status like what you said , but did not work.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2009 at 05:48 AM

    hi,

    These are the default functionalities of the grid and the buttons should be there on the Grid's toolbar.

    Regards,

    RItesh J

    Add a comment
    10|10000 characters needed characters exceeded

    • The code above has important constraints or may not work as people could think :

      P- and P+ only scroll one line, instead of one page. Moreover, if the user also scrolls via the scrollbar or with the mouse wheel, then using the buttons P-/P+ will ignore the current top row, because the variable G_ROW is never refreshed from the current top row (we should use go_alv_grid->get_scroll_info_via_id).

      Moreover, instead of using the method set_current_cell_via_id, we should better use set_scroll_info_via_id to be coherent with using get_scroll_info_via_id for getting the top row.

      To make a true "page scrolling", we must get the number of visible rows, the most correct way is the one explained in this thread (using the OCX property "GetVisibleRowCount") but SAP might remove this possibility without notice.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2009 at 05:56 AM

    Hi,

    Yo dont have to give separate function codes for page up/down.

    If you click the ALV and press page up/down the scrolling takes place.

    Regards,

    Dhasarathy.

    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.