Page Up and Page Down in ALV Grid

Hello Experts,
I have a simple ALV Grid report program. . If the report displays a lot of records then the scroll ups and downs can be used. However the new requirement is to make the page up, next, prevoius, down function. I have already included a SET PF-STATUS where I copied the standard and added the page up,down,next and previous. Those buttons/icons are now active in the toolbar but its not functioning as expected, nothing happens when it is being clicked. I've read some forums and below are the propose solutions:
- Reduce the SAP work area --> how to reduce it?
- Most forums are about ALV Grid report in OO and Dialog programming whereas a code will be put in PAI and PBO to make the page up, down buttons to function. --> How will this be applied since the report is just a simple report program (not OO or dialog)
What is best solution to apply in my case?
Thanks in advance!
Best Regards,
Alezandro

hi kurtt
Perhaps the below code, for scrolling the buttons can help u if the PF status and functionlity is already in place-
module scroll_tab input.
data: v_lines1 type sy-loopc.
clear: ok_code,
save_ok.
ok_code = sy-ucomm.
save_ok = ok_code.
case save_ok.
when 'PU'. "Page Up
tc1-top_line = tc1-top_line - lv_looplines.
if tc1-top_line < 1.
tc1-top_line = 1.
endif.
when 'PD'. "Page Down
tc1-top_line = tc1-top_line + lv_looplines.
if tc1-top_line > lv_lines.
tc1-top_line = ( lv_lines - lv_looplines ) + 1.
endif.
when 'PTU'. "Page total up
tc1-top_line = 1.
when 'PTD'. "Page total down
TC1-TOP_LINE = ( LV_LINES - LV_LOOPLINES ) + 1.
describe table it_vbak lines v_lines1.
tc1-top_line = v_lines1.
endcase.
endmodule. " SCROLL_TAB INPUT
regards
praveen

Similar Messages

  • Page up and page down in ALV

    Hi all ,
         Page up and page down are not working automatically in my ALV Grid report. I have all set in my pf-status. Do i need to explicitly write any code for that or do i need to any setting for that plz let me know .
    regards
    rao

    Hi,
    i hope the problem is with the Pf-status,so try to do the following and see...
    Go to SE41 give the Program name SAPLKKBL
    and status as STANDARD
    now click Copy status (CTRL+F6), now give your Program name , and PF-status and copy it. now save it and activate the pf-satus which you have copied. and use it in your PF-status form.pass that status using the parameter call back status option.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    * I_INTERFACE_CHECK = ' '
    * I_BYPASSING_BUFFER = ' '
    * I_BUFFER_ACTIVE = ' '
    i_callback_program = g_repid
    i_callback_pf_status_set = 'STATUS'
    i_callback_user_command = 'USER_COMMAND'
    2.
    FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
    *- Pf status
    SET PF-STATUS 'STATUS' excluding p_extab.
    "this is i copied it from standard program
    ENDFORM.                 " STATUS
    now check it.
    Regards
    vijay

  • Prevent Occurence of list header and page breaks in spool file of ALV Grid

    Prevent Occurence of list header and page breaks in spool file of ALV Grid  Display.
    When we run the ALV in background and create spool request then:
    Spool file output is coming like this.
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    But the required is like this
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    Please suggest a posible answer

    Hello all,
    if you have not yet solved this on your own, here is my solution: use a format type that has 60000 lines per page for your spool output device.
    It all depends on the format type that was used for creating the spool output.
    By default (in our system), we have 65 lines per page. And after each page the column headings of the ALV will appear.
    What i did:
    create a new format type via transaction SPAD->full administration->device types->format types (copy an existing one)
    change"Number of Rows" to 60000 or something applicable
    edit the device type of your output device (e.g. LOCL) to contain the newly created format type (via SPAD; Button "Formats" in device type maintenance).
    That's it! Be sure to use this format type for your output device in the "Background Print Parameters" window (-> Button "Properties").
    Regards
    Daniel Klein
    All other parameters you discussed before didn't do it. All ALV-Settings will be overwritten by the output device settings and its print properties.

  • How to write code for page up and page down buttons on alv screen?

    Hi,
    Page up and page down buttons are not working in general alv report. Thease buttons are in disable mode. But is stnd. transactions (tcode : fbl5n)  these are enabled and working properly, but we can't debug this with /h
    How to write code for page up and page down buttons on alv screen?

    Poonam,
    On doing the screen debugging it took me over to    Include LSTXWFCC ,kindly check the below code.
    module cc_display.
      fcode = sy-ucomm(4).
      case sy-ucomm(4).
        when 'P--'.
          perform cc_firstpage.
        when 'P-'.
          perform cc_prevpage.
        when 'P+'.
          perform cc_nextpage.
        when 'P++'.
          perform cc_lastpage.
        when 'EX--'.
          perform cc_firstcopy.
        when 'EX-'.
          perform cc_prevcopy.
        when 'EX+'.
          perform cc_nextcopy.
        when 'EX++'.
          perform cc_lastcopy.
    I guess it can give you some lead.
    K.Kiran.

  • Page up and page down keyboard commands

    I just installed CS4 on my laptop. The page up and page down keyboard shortcuts are not responding. That's a big handicap. I know these are default commands to go to edit points. Do I need to to go somewhere in preferences to check for defualt commands. I have been using earlier versions of CS for some time and I don't remember having to do anything like that previously. It seems logical to me that I must be overlooking something simple. Thanks in advance for any insight.

    Thank you Bill. I have tried that about as many ways
    as a person can. Its just a dead key response. Since I just started on CS4, I could use some tutorials on this. Do you have any links for free tutorials?
    thanks in advance for your help
    Judy

  • My up and down arrows as well as page up and page down no longer work properly only when using firefox. Page up and down function more like the "home" and "end" keys as do the arrow keys.

    Honestly I'm not sure if these began just after I updated FF to the current release, but it's been happening for at least 2 weeks. The arrow keys and page up and page down keys all work as if I'm pressing the 'home' and 'end' keys on my keyboard. This is only when using FF. Please contact me if you need more clarification. Thanks in advance!

    Sounds that you have switched on caret browsing.
    * http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Wireless Keyboard Page Up and Page Down Help

    The wireless keyboard for my iMac omits many common keys found on full size keyboards.
    One application I am running (Battlefield 2142) requires the use of "page up" and "page down" among others.
    By random effort, in happens that "Control" + "up arrow" worked for "page up".
    Does anyone know where I can find a resource showing these built-in key board sequences.
    In System Preferences there are the keyboard short cuts that can be configured, but many are missing. The control "up arrow" was not listed here for "Page Up:, nor are others like "Home", "End".
    My assumption is that these are not officially considered keyboard short cuts.
    Any help, appreciated.
    MikeK

    Hello
    a - this forum is not dedicated to hardware but to the Numbers application.
    b - I don't own such a keyboard but, I'm quite sure that the asked info is available on your machine.
    Apple menu > System Preferences
    open the prefPane named Keyboard and Mouse
    click on the tab named "Keyboard Shortcuts"
    You will get a list of many shortcuts descriptions.
    I assumes that the wanted ones are available in this list.
    Are you sure that the response is not available in the manual delivered with the keyboard?
    Yvan KOENIG (from FRANCE lundi 21 janvier 2008 19:30:51)

  • Suggestion: page up and page down

    Am I the only one who'd like it if the default behavior for the Page Up and Page Down keys while editing in Keynote was to change slides? Right now, I usually hit them after editing in a text box or clicking on a slide in the Slides pane. In either case, they don't advance or back up the slide. In the former case, they don't do anything. In the latter case, they page up in the Slides pane, but this isn't useful 99% of the time.
    Just my $0.02.
    MkIV

    Go to >Tools>Options>Advanced and uncheck the "Use Autoscrolling" and "Always use the cursor keys to navigate..."
    That worked for me.

  • I am unable to control page up and page down in JdbTextField

    I am unable to control page up and page down keys in JdbTextField if I press these keys in that field, above that I have one table(jdbTable) the focus going to the table through the rows and when I page up/down.

    If you close all the windows and quit word, next time you restart, DO NOT check "Reopen windows on login".
    Also, check your login items for your user account.

  • CS5.5 Trial Page Up and Page Down Not Working

    I'm working in CS5.5 and the shortcut keys Page Up and Page Down are not working. I have the standard seting EDIT > KEYBOARD SHORTCUTS > Go to Next Edit Point = Page Down Id. Page Up.
    The HOME and END keys are working.
    Any tips on how I can get this working?
    Thanks.

    Yes. I just discovered tha trick. 
    You're saying the tracks have to be "highlighted", clicked on to target a track.
    I'm not one to ever complain about flexibility.
    So how does targeting tracks also work when "respond[ing] to the Next/Previous Edit commands"?
    There is a trick when editing that by only selecting one or more tracks will help the process?
    How would you use this feature?
    Thanks.

  • Page up and page down does not work, it works in internet explora

    page up and page down does not work @www.hkej.com/template/landing/jsp/main.jsp
    it works when using internet explora

    Go to >Tools>Options>Advanced and uncheck the "Use Autoscrolling" and "Always use the cursor keys to navigate..."
    That worked for me.

  • Page Up and Page Down keys don't work Apple Aluminum Wired Keyboard MB110LL/A

    I have a keyboard with page up and page down keys (along with home, end and arrow keys). These keys don't do nothing.
    How can I enable the use of such keys?

    See also:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=640587 Bug 640587] - Page up/down behaviour changes to "page back/forward"
    ''(please do not comment in bug reports; you can register and vote instead)''

  • Need to add Header  and footer in an alv grid display output.

    How can I add header and footer in an alv grid dispay output.
    For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".

    HI,
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_html_end_of_list = 'END_OF_LIST_HTML'
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
      DATA: ls_text TYPE sdydo_text_element,
            l_grid     TYPE REF TO cl_gui_alv_grid,
            f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
      ls_text = 'Footer title'.
    adds and icon (red triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IL'.
    adds test (via variable)
      CALL METHOD end->add_text
        EXPORTING
          text         = ls_text
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Bold text'
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Nor'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Yellow '
          sap_emphasis = 'str'.
    adds and icon (yellow triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IC''.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Mor'.
    *set height of this section
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = l_grid.
      CALL METHOD l_grid->parent->parent->(f)
        EXPORTING
          id     = 3
          height = 14.
    ENDFORM. "end_of_list_html.
    This will solve  it. Post if you need more help in this.
    Regards,
    Madhu.

  • Control the page height and page width of pdf report using pasta_pdf.cfg

    Hi All,
    I've followed the note: 338990.1 (how to print publisher PDF reports via the concurrent manager) in metalink to print a PDF REPORT. Everything work fine except the page height and page width is used as default (8X11). Is there anyway that i can custom page height and page width size such as: legal (8.5X14).
    current set up in pasta_pdf.cfg
    [DEFAULT]
    %% ============== Preprocessing Command ==================== %%
    % Pasta can use a preprocessing command to invoke any executable
    % that supports an input file and an output file (a filter program).
    % You can use redirection. Pasta will invoke the filter program
    % to preprocess the Pasta output before passing it to the printing
    % command. By using the preprocess option, you can generate output
    % formats other than the formats Pasta currently supports. For
    % example, you can generate PCL output.
    % You can use {infile} and {outfile} in this option.
    % {infile} is the output file generated by Pasta. You can use
    % it as input for the preprocessing command. It is a temporary
    % file and will be deleted after being passed to the
    % preprocessing command. {outfile} is the output file generated
    % by the preprocessing command. Pasta names it temporarily and
    % it will be deleted after being passed to the printing command.
    % If you want to keep it, you can name it by using the '-o'
    % command line option. Pasta will copy {outfile} to the file you
    % specify.
    % Preprocess for PDF output
    % This is an example for PDF output to print.
    ; Xpdf
    preprocess=/usr/local/bin/pdftops {infile} {outfile}
    ; Ghost Script
    ; preprocess=pdf2ps {infile} {outfile}
    ; Acrobat
    ; preprocess=acroread -toPostScript -pairs {infile} {outfile}
    %% ============== Printing Command ========================= %%
    % You can specify the printing command and options you want
    % to use to print your report. Pasta will pass the final output
    % to this command. {printername} will be replaced by the
    % actual printer name passed through the command line option
    % (-pn), so in most cases you don't have to change these
    % options.
    % for UNIX platform
    printCommand=lp -c -d{printername}
    % for Windows platform
    ntPrintCommand=print /D:{printername}
    %% ============== Error Log File =========================== %%
    % This tells Pasta to create a log file. The default error
    % output is stderr.
    ;errorlogfile=pasta.log
    NOTE: pasta version 3.0.4
    form server 6.0.8.27.0
    third party tool is pdftops
    Thanks
    Kevin

    i think that can be down from the printing direver/styles/prt files when you added the printer at your apps system check the follwoign for more info.
    ( How to Implement Printing for Oracle Applications: Getting Started )
    Note:269129.1
    (Step By Step Guide to Set Up a Printer in Oracle Applications)
    ( Note:60936.1)
    fadi
    http://oracle-magic.blogspot.com

  • Slow Macbook pro, ~1 year old;  Really HUGE Page Ins and Page Outs size, think 400 GB In vs 100 GB Out

    Hi everyone, I have a macbook pro and it's so slow.  After scouring the internet a lot, and CCleaning my computer 359802 times and using Onyx, I finally realized why it's so s low.....my Page Ins and Page Outs are so big.  I have attached a screenshot that illustrates this.
    I am not sure how my computer ballooned to this size, but it makes sense why it's like a turtle and is slower than my 4 year old Sony. 
    Can someone help me?? I am not sure what processes to get rid of and I feel like Google Chrome is taking up huge amounts of my Ram.  I mean yeah I open Google Chrome and run like 8 tabs and have Word and iTunes open, but my 4 years old Sony could run faster than this and I used to open like 12+ tabs on Chrome while running Word, Excel, Powerpoint, iTunes, and VLC on my Sony.  Which was nowhere near as powerful as this computer.  Supposedly.
    My computer Specs are:
    2.3 GHz Intel Core i5
    4 GB 1333 MHz DDR3 RAM
    Intel HD  Graphics 384 MB
    Mac OS X Lion 10.7.4
    I would really appreciate any advice to get this down to normal.....since I hear most ppl have page ins and page outs in the MB or even KB.  Right now I'm running Google Chrome, Word, Ppowerpoint, iTunes, and Adobe PDF Reader.  I don't think this should be too unreasonable of work load.
    Thank you

    The problem is not that your page ins are big, as that value resets when you reboot the system. However, your page outs are are almost 25% of your page ins, which means you can use more memory for the applications you run.  A page out is done when memory is full, and the system needs to add something else to memory, so it writes some memory to the hard drive to make room.  The guideline to add more memory is 10% to 15% page outs greater than page in's, and yours are more than that.
    Your MacBook Pro can handle up to 16GB of memory. You might want to consider upgrading to 8GB, which would double what you have today. OWC and Crucial are two sources for quality memory. $42 for 8GB from Crucial, and you can usually find a % off coupon on retailmenot.com.

  • Adding javascript to page open and page close in acrobat 8.1.2

    Reading the Acrobat Javascript Object Specification on page 22 it says that you can add javascript to the "page open" and "page close" events of a document.
    It then says that under the menu "Document -> Set page action" you can add scripts for those events
    I am using Acrobat 8.1.2 and under the document menu there is no "Set page action". And there is nowhere where I can find any "set page action" menu...
    whats the deal?
    How can i set the page open and page close events in acrobat professional 8.1.2?????????????
    Marc

    - open the Navigation Panel 'Pages'
    - select the page and open the page properties
    - in the actions tab you can set the page actions

Maybe you are looking for

  • Error 1602 when i try to update to 1.1.4

    ok when i try to update to 1.1.4 when it says preparing ipod for update an error code comes up (1602). ive read other discussions and sent emails but they all suggest deleting itunes off my computer completely and i dont want to do this... i dont hav

  • Is nw 2004s j2ee engine built with JDK 1.4?

    i am currently running NetWeaver 2004 WAS 6.40 J2EE Engine SP14. from the version.txt file, i see this line: Build java version:1.3.1_12-b03 Sun Microsystems Inc. i understand that during installation of j2ee engine i can specify jdk versions such as

  • Question about Menu icons

    1) I trashed an application that has Icons on my upper Menu bar next to the clock. The app is gone but the Icons remain. I can't move them off the Menu bar and a right-click doesn't do anything. How do I get rid of those Icons?

  • Customizing CO class on site level is not taking effect

    Hello, I extended a CO class and changed the region "Controller Class" on Site level from "Inherit" to my newly created class But the personalization is not taking effect when i run the page; any idea why? thanks

  • Desiging Specs

    Hi, I have to prepare technical specs from the below mentioned functional specs. Description : Product A is supplied by the vendor and not manufactured inhouse. This product is considered as made to order product. Currently whenever salesorder is cre