ALV printing error - Footer on 3 different pages

Hi all,
I created an report which outputs an ALV grid (full screen) with a header and a footer. The ALV grid is created with class CL_SALV_TABLE (incl. methods set_top_of_list for the header, resp. set_end_of_list for the footer). This all works correctly and the print preview looks fine too.
Problem is a very strange print output:
In most cases, printing works fine. But sometimes the output is wrongly formatted: is the footer to be printed on two different pages (i.e. the footer is partly printed on the current page, the rest on the next page), the footer will be printed on three pages! The first part on the current page (correct), only one line at the bottom of the second page (wrong) and the rest of the footer on the third page (wrong)! Could it be that this is a print setting problem? Should I add special footer settings?
I already checked SDN forums and looked at SAP Notes for solutions but could not found any tip on how to solve this.
Does anyone of you had the same issue before? Or does anyone has an idea how this problem could be solved?
Thanks a lot!!

Need suggestions please.

Similar Messages

  • SMARTFORM - Printing 3 tables in 2 different pages.

    Hi all,
    I have a form with 3 pages. In the PAGE 1 I need to print data of 2 different tables. These data may not fit in this first page and a second page can be printed. In PAGE 2 I also have a table that may get big enough to "push" all other windows to a second page. And we have a "normal" PAGE 3.
    I create a form with these 3 pages. In PAGE 1 I've put one of the tables in a main window. The second table I put in another window.
    PAGE 1 next page -> PAGE 2
    PAGE 2 next page -> PAGE 3
    PAGE 3 next page -> PAGE 3
    I can't activate the form. I have problem because of the main windows in each table.
    Help me.
    thanks.

    For sure, sy-subrc = 1 in Smartforms is a very tricky return code. The problem was in a template in PAGE 2 which height was greater than the window's size.
    Now I can print my 3 pages. Great!
    But I still have a little problem.
    My PAGE 1 is like this:
    HEADER                 (many windows)
    TEMPLATE 1           ( main window)
    TABLE 1                        "
    TEMPLATE 2                 "
    TABLE 2                        "
    COMMAND PAGE 2 (main window)
    When I have too many entries in TABLE 1 or TABLE 2 a new PAGE 1 is printed. Ok. But this is <b>almost</b> what I wanted. Because in this second sheet of PAGE 1 is printed with the HEADER again. I don't want any header in this sheet 2.
    I tried to use the condition "only on first page" in my HEADER but didn't worked. What can I do?

  • How to print the same data in different pages of different trys

    Hi,
    Part II: Check stub u2013
              We need to print Vendor account # (REGUH-LIFNR), Vendor Name ((REGUH-NAME1), Payment doc # (REGUH-VBLNR), Check date (PAYR-ZALDT) and Check number (PAYR-CHECT) in the header portion and in the detail portion Invoice # (REGUP-XBLNR), Date (REGUP-BUDAT), Amount (REGUP-DMBTR), Amount, Discount and Net amount paid (REGUP-DMBTR).      
    Part III: Check stub u2013
              We need to print Vendor account # (REGUH-LIFNR), Vendor Name ((REGUH-NAME1), Payment doc # (REGUH-VBLNR), Check date (PAYR-ZALDT) and Check number (PAYR-CHECT) in the header portion and in the detail portion Invoice # (REGUP-XBLNR), Date (REGUP-BUDAT), Amount (REGUP-DMBTR), Amount, Discount and Net amount paid (REGUP-DMBTR).
    i am printing like the above and my question is as below.
    Q) If the detail section of Part II and Part III spills beyond the available space then the remainder should be printed on a separate white paper picked from the next tray after printing all the checks. Ensure that this will not be printed on the following check.
    Can anyone please answer this.

    Hi Swathi,
    Where does that check box available, could please give your answer in details so that i can follow like that.
    Thanks
    Srinivas

  • Check Printing on two Different pages

    Hi all,
    Is it possible to print one page PLD on two Different pages. Actually my client  wants  to print one PLD on two different pages, he wants that one page print the acknowledgement letter and then vendor name, amount, date, amounts in words should be printed on the checks.
    With Regards,
    Pankaj Sharma.

    Hi Pankaj Sharma,
    Check Printing PLD is hard coded in the system.  I don't think you have any easy solutions for this.  If you tried already, you must know it already.
    Thanks,
    Gordon

  • Different page sizes in one pdf file will not scale to print correctly

    Hello all,
         I have a pdf document that contains three different page sizes; 8.5"x11", 11"x17" and 34"x22".  These pdf files are custom manuals and we print many of these over the course of a month.
         In the older versions of Adobe Acrobat when printing this type of file, I could click print, select the page setup size to 11"x17", then select shrink oversize pages (or fit, depending), and choose paper by pdf page size and I would get the following pages from the printer - 8.5"x11" page would print on a 8.5"x11" paper, 11"x17" on 11"x17" and (most importantly) 34"x22" on 11"x17".  We do this because our printer does not have paper larger than 11"x17" yet the customer also receives a soft copy of the file and many times prints the large pages full size as needed on their large format plotters.
         With the newer versions of Acrobat, this will not work.  The only way these files will print automatically is to scale the 22"x34" down to 8.5"x11".   Why would I want to scale it smaller than my largest available paper size?  Also, all of the 11"x17" pages in a multi page size document will come out of the printer rotated 180° yet Adobe shows them correctly when the file is opened.
         Also, when I use the settings above, the print preview box shows the document correctly!  The HP technicians have the latest drivers installed and they have shown me where it seems that Adobe is not even sending the larger sheets but instead stops the printing process with an error.  So I try to send a 20 page document but Adobe stops at the first 22x34 page.
         We have now lost our old computers with every last old version of Acrobat that I could use to make this work due to mandatory hardware and OS upgrades.  I must find a way to print these documents without individually selecting different pages to print and then trying to assemble the document afterward.
         How do I preserve the pages sizes in my document and print the large pages scaled down to the largest paper size I have available in my printer?
    Thanks ahead of time.

    Ajlan,
         Thank you for your time.  I am still having the issue.  I am using Adobe reader 11.0.09 and Adobe Acrobat 10.1.12.  Neither one have the option in the print menu that you show for a physical printer.  They only offer that option for an Adobe PDF creation driver.
         It seems as though the printer you have selected in your menu is only for creating a pdf.  I need to physically print the pdf.  Do you have this same option when you select a physical printer?
    (edited to update screen shot)

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • Error message "Page header or footer longer than a page"

    Hi
    Our application call crystal report to generate/display crystal report in PDF format. We have a dev system to test this, all looking good, however when we moved to production server, the attached error message is displayed when running crystal report. 
    Invoking method GENERATEREPORT returned error Page Header plus Page Footer is too large for the page.
    Error in File C:\DOCUME~1\SERV
    IC1.LIM\LOCALS1\Temp\temp coq new xxxx.rpt:
    Page header or footer longer than a page.
    Same report doesnu2019t get this error message if running it from crystal report developer. 
    Not all crystal reports got this error, but some of reports display strange view in PDF, the content of report are reduced in a paper size like label size, not A4 size.  I have checked the default printer on the server, it points to a normal window printer, not a label printer. I have checked all possible settings on production server and compared with dev server, all looks same to me
    I suspect the label printing size is used somehow when the report is previewed in pdf format, not normal A4 size although I have selected a normal window printer as a default printer on the window,what else should i check?
    Could you please shed some light on this?
    Thanks!
    Li

    I found the issue is from label printer that is setup on the production server. After I removed the label printer from the server, then error message is gone, all report running fine.
    This label printer is not the default window printer, it is a network printer but is configured as a printer using local port on the server.
    I think for some reasons, crystal report alway picks up the label printer page size, not the normla page size, I am not sure why and how crystal report do this, it should pick up the default printer, which is a normal printer.
    There is no error when I run report within CR. The error happens only when I try to generate crystal report from our application.
    I do have logo in page header/footer, subreports in report footer, but I don't think they cause the problem, because I can run same report without any problem in dev system.
    Any idea what I should check next?
    Thanks

  • PLD - Items split in 2 different pages in while printing

    The User has entered only 5 Items in PO.When he sees the print preview , it is displayed in 2 different pages.
    ie 4 items in first page and last item in second page, even after there is a lot of space on the first page.
    Why is it happening.
    I have used the field Items-Item-Remarks which is a text field.

    Hi Sanjay Khimesra,
    In our system, everytime when a document is printed, the Page Footer part will be printed on each page. If there is no enough space for the whole Page Footer, some lines will be moved to the next page. Please kindly ajust the Page Footer size to check whether it is the case in your situation.
    Hope this helps
    Regards, Summer
    SAP Business One Forums Team

  • Printing error with odd/even pages

    Apologies if this is the wrong group, I looked for a more
    appropriate one
    but there doesn't seem to be one on this server. If there's a
    better place
    to ask this question, please let me know.
    Anyhow, I'm using Acrobat Reader, latest version (I updated
    off the Adobe
    site after first noticing the error just to be sure), and I'm
    having a
    couple of serious bugs when it comes to printing odd-only or
    even-only pages
    of a multi-page document. (I don't have one of those snazzy
    re-feeder
    printers that can do both sides, so if I want to print
    double-sided I have
    to do first one then the other.) At any rate, the problems
    are thus: on a
    document which has an odd number of pages, if I tell it to
    print all
    odd-numbered pages, it will invariably skip the first page.
    This one's not
    that serious, as I can just manually print page 1 after the
    fact. The
    really annoying problem occurs when I try to print the
    even-numbered pages.
    What happens in this case is it prints the first page (i.e.
    Page 2) *twice*.
    Once on the back of page 1 and again on the back of page 3.
    Needless to
    say, I now have to throw one of them out and redo it. (I've
    taken to
    printing the even-pages first now, so I can use the backside
    of that extra
    page 2 for scrap paper, whereas previously the extra sheet
    was basically
    useless as it was printed on both sides.) The bug does not
    seem to occur
    with documents that have an even number of pages. Only those
    with an odd
    number. Doesn't matter if I choose back-to-front or
    front-to-back. Doesn't
    matter what printer I use, I've tried 3 different ones (and
    made sure I had
    the latest drivers for each) and it happens in every case.
    I'm guessing
    that there's some confusion in the software as to the number
    of pages it's
    supposed to print. If a document has an odd number of pages,
    there's one
    more odd-numbered page than there are even-numbered pages,
    and it's getting
    it backwards, printing one more even-numbered page and one
    less odd-numbered
    page. Anyhow, it's really annoying, and a waste of paper and
    ink as well.
    Any ideas how to avoid this? (Seriously considering editing
    the documents
    and adding one blank page to the end of every document with
    an odd number,
    though it seems like that shouldn't be necessary...)

    Thank you for your response. These forums are specific to the
    Acrobat.com website and its set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • Message 'printing error' and termination of printing after first page

    Each time i try to print anything, that is more than one page long, it successfully completes the first page of printing and then terminates printing part way through the second page. I have uninstalled and reinstalled the software and done all of the troubleshooting that i can access but i am still having the same problem. 
    I am printing wirelessly from my laptop.
    Can anyone help me to understand why this is happening and what I can do to rectify it? 

    Thanks Ken,
    Not sure how to check if we do have OPI comments on some of the images, but looks like I have found a solution to the printing problem at least.
    Thanks to a respons by Peter Spier to another topic with similar problems:
    Peter Spier - 4:00am Mar 11, 08 PST (#5 of 6)
    The symptoms could describe document corruption rather than network issues which might fall into the category of things that can be cleared up through export to .inx.
    Try exporting one or two of the problem files to interchange format, open those and save as new .indd and make a new book file. See if that behaves differently across the network.
    I also found another article about INX files, that confirms this technique:
    http://avondale.typepad.com/indesignupdate/2005/08/what_the_heck_i.html
    "...INX can also help “clean up” problem files in InDesign CS2—if you’re running into problems, especially with files that started their lives as QuarkXPress or PageMaker files, try exporting the document as INX and then opening that file."
    So, I
    1. exported all files, one by one to INX or InDesign InterChanged
    2. Then reopened those files, saved back as regular .indd files
    3. Reopend the new file (hoping for a refreshed file and test to see if it would open without problems.)
    4. Then packed the files indevidually and reopend the new packed files when done.
    Alle the files now print without any problems but export to PDF still fails with the same error message.
    Would the OPI comment be a problem here maybe?
    Thanks!
    bard

  • Avoid printing Header and Footer in the last page

    Hi,
    Could anyone please let me know how to avoid print the header and footer in the last page?
    Note: I'm printing RTF template for publishing the output.
    Looking forward for your valuable inputs/suggestions.
    Thanks in advance,
    Regards,
    Muru

    Hai,
    My report got FROM PO & TO PO parameters and i need to print footer only in first page of each PO. Tried with section but now i am getting first page of all PO contionious and then all lines together.
    Please call me or sent replies to [email protected]

  • Is it possible to have different tabs print with different page setups.

    I would like to use specific page setup parameters (under the File menu) for printing from a particular web site, but those parameters do not work well for printing from other web sites. I would like to be able to specify different page setup parameters for each open tab. Is this possible?

    That might be possible via a GreaseMonkey user script, by setting the '''@include''' address to a specific domain.
    http://wiki.greasespot.net/User_script
    This is an example of a script I found a few years ago to bypass a fault in Firefox when printing the Courier font.
    <pre><nowiki>// ==UserScript==
    // @name Fix Courier Bug
    // @namespace http://userscripts.org
    // @description Replaces "Courier" with "Courier New" font
    // @author Dan
    // @include *
    // ==/UserScript==
    var elementList = document.getElementsByTagName('*');
    for (var i = elementList.length - 1; i >= 0; i--) {
    var elementItem = elementList[i];
    var ff = getComputedStyle(elementItem, '').fontFamily;
    var oldff=ff;
    ff = ff.replace('Courier New', '1234567890qwertyFONT');
    ff = ff.replace('Courier', 'Courier New');
    ff = ff.replace('1234567890qwertyFONT','Courier New');
    elementItem.style.fontFamily = ff; </nowiki></pre>
    Sorry, I can't help you with writing a script.

  • Print in different page for different material type in Sapscript

    Hi all
    How do I do the above matter?
    Currently I have a script that print all material according to some condition.
    My client request to have a different page of material list for different material type.
    Please advise
    az

    Hi,
    1) Sort the internal table by material type.
    call func 'OPEN_FORM'.
    loop at itab.
    at new mattype.
    if mattype = 'A'.
      call fun 'START_FORM'.
       exporting
        page   =    'PAGEA'.
    elseif mattype = 'B'.
      call fun 'START_FORM'.
       exporting
        page   =    'PAGEB'.
    endat.
    call func 'WRITE_FORM'.
    AT end of mattype.
    call function 'END_FORM'.
    endat.
    endloop.
    call function 'CLOSE_FORM'.
    Thanks,
    Nethaji.

  • I need to print the footer in all pages except last page.

    Hi,
    I'm working on PO RTF template. I got one probelm, I need to print the footer in all pages except last page.
    Can someone help me in this.
    Thanks in advance.
    Venki.

    This question has been answered already multiple times - please search the forum before posting a question - in case you did and you didn't find it - we added a feature
    in 5.6.2 to solve this problem - It is described in the user guide in the RTF template section search for start@last-page:
    Last Page Support
    XML Publisher now has the ability to show content only on the last page. This is useful for documents such as checks, invoices or purchase orders where you want want content such as the check or a summary in a specific place only on the last page.
    The basic command is:
    <?start@last-page:body?>
    <?end body?>
    http://forums.oracle.com/forums/search.jspa?threadID=&q=%40last-page&objID=f245&dateRange=last90days&userID=&numResults=15&rankBy=9
    Any content above or below these two tags will only appear on the last page of the document.
    Hope that helps,
    Klaus

  • Has anybody found a fix to The document could not be printed and There were no pages selected to print error

    Has anybody found a fix to "The document could not be printed" and "There were no pages selected to print" error?
    I am using a Mac and I'm running the latest versions of OS X 10.6.8 and Adobe 11.0.10 but I'm unable to print.  I need REAL HELP not a suggestion or a get around!  and NO print as an image doesn't work, nor do I see that as a fix!
    Please help!

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

Maybe you are looking for

  • How do I set up a chat between 2 of my own computers?

    Hi, I am wondering if someone can help me. I am a travelling speaker. I have a new iMac at home and I use a new MacBook Pro. I would like to be able to chat with my wife and kids when I am on the road but I am confused as how I can do this as I only

  • Port 6667is blocked by my firewall,before there was no problem using this how do i fix it

    hi.i have been using a site for a while now and my firewall has been on ,today i went to that site and the chat feature and it say's port 6667 is blocked by the fire wall,how do i repair this

  • Forcing a program to wait for a few hundred milliseconds

    Is there any way to stop a program for say 300 milliseconds? If I use ENQUEUE_SLEEP, the code only seems to work at quantums of 1 second, which is a bit too much for our purposes. BR, Tony.

  • Smartforms : split lines

    Hi Gurus, Trying to find help on the forums, I didn't find solution to my problem. The issue is the following : when editing PO in smartforms, last word of the header text is cut in the middle. How can I avoid the last word of a line to be cut into 2

  • "Do Not Disconnet" Error...courtesy of the 1-10-06 update

    I have the same problem as everyone. I downloaded the update, and it turned my ipod into junk. I've tried every fix on here I could find to no avail. I've switched back to the previous updater, I've uninstalled and reinstalled everything countless ti