Regarding Last Page Blank

hi all,
       I designed one smartform for Multiple Range.
I need Output for each number in new page.   For this i given command window at the end of loop.
I am getting output but last page is coming blank. I need to remove that blank page.
How can i do that one.
Please suggest.
Regards
Rami

Hi Ramireddy,
This is a logical error more than a SmartForm error. The idea is that when you get to the last line in the loop, there is a new page created at the end. But there is nothing to be printed there.
What I suggest is the following:
- remember the total lines of the table with DESCRIBE TABLE <table> LINES <total_lines> .
- move the sy-tabix value at the beginning of the loop in a new variable(maybe it gets changed along the way with READ TABLE statements or something) .
- make an IF <total_lines> NE <current_line> before executing the command
Regards,
George

Similar Messages

  • Page Break-An extra blank page as the last page.

    I have a template with a page break (<?split-by-page-break:?>) at the end of the template prior to the end of loop <?end for-each?>. This is causing an extra blank page at the end everytime the report is run. I checked this forum and got some pointers and used couple of them but didn't get the blank page to go!
    I tried this in my page break filed! <?if:position()!=last()?><?split-by-page-break:?><?end if?>
    Please help.
    Thanks,
    Fran

    Hi, ive faced a similar problem in the past, I worked around it using subtemplates, but it still gives out an extra blank page if the content on the last page comes within 3 lines of the bottom of the page.. otherwise its ok..if you could send me your template and a sample xml file at domnic26ATgmail, i will see what i can do to help.
    regards,
    Domnic

  • Problem regarding printing in first and last page of a form

    I need to print a some text only in the first page and last page. I have defined a window to print this text. The number of pages that will be created is decided on run time. Can some body please help regarding this issue. I have tried to use SFSY-FORMPAGES to calculate total number of pages in the begining but it does not work
    Edited by: subhajit bhadra on Feb 20, 2009 7:44 AM

    Hi Badhra,
    You can use conditions for that window or text element.
    in conditions, tick 'only befor main window' forr header
    and 'ONly after main window ' for footer.
    Sunil

  • JTable printing code produces blank last page on Windows LAF, OK on Metal

    I've been banging my head on this one for hours. I'm printing JTables, handling the pagination myself (built in Printable is far too limited). I've one table which can have a variable number of columns, with some column counts it's fine, with others the last page simply comes up blank. Because the scale adjusts it may have something to do with the number of rows on the last page. 5 or 6 it screws up, 20 or so it's fine.
    This is the code that prints the section:
        public void print(Graphics2D graphics, Rectangle2D area, int pageIndex, String pageLabel) throws PrinterException {
            Shape oldClip = graphics.getClip();
            AffineTransform oldXForm = graphics.getTransform();
    //        graphics.clip(area);
            double y = area.getY();
            graphics.translate(area.getX(), area.getY());
            if(resize) {
                double stretch = area.getWidth() / (double)table.getColumnModel().getTotalColumnWidth();
                graphics.scale(stretch, stretch);
            if(table.getTableHeader() != null) {
                table.getTableHeader().print(graphics);
                graphics.translate(0, table.getTableHeader().getHeight());
            Rectangle tableBlock = new Rectangle(table.getX(), table.getY(), table.getColumnModel().getTotalColumnWidth(), 0);
            int rowNo;
            int frp = firstRowOnPage.get(pageIndex);
            int frnp = pageIndex + 1 >= firstRowOnPage.size() ? table.getRowCount() :
                firstRowOnPage.get(pageIndex + 1);
            for(rowNo = 0; rowNo < frp; rowNo++)
                tableBlock.y += table.getRowHeight(rowNo);
            for(;rowNo < frnp; rowNo++)
                tableBlock.height += table.getRowHeight(rowNo);
            graphics.translate(0, -tableBlock.y);
            graphics.setPaint(Color.BLACK);
            graphics.draw(tableBlock);
            graphics.clip(tableBlock);
            table.print(graphics);
            graphics.setTransform(oldXForm);
            graphics.setClip(oldClip);
        }Bascially it selects the block of rows to print by setting a clip box on the whole table size, and translates to bring the block to the top of the page.
    The rectangle drawn to the clip box is fine. table.print simply doesn't paint anything.
    I'm starting to think this might be a bug in the Windows LAF TableUI, because I've just tried switching to Metal and it works fine. Anyone had similar problems?

    Similar problems, just not with printing a JTable. Your problem might be totaly different but I have found that components change size (dimensions) and sub component sizes (like table columns) when you view them on different look and feels.

  • Newest update won't allow startup page to be blank, it loads to the last page Firefox was on, so how do I fix this?

    Since the most recent update, every time I open Firefox, it loads to the last page I was on. I prefer a blank page to be loaded. I have this correctly marked in the options, and I've even uninstalled and reinstalled the program. Is there a fix for this?

    browser.cache.disk.capacity 358400
    browser.cache.disk.smart_size_cached_value 358400
    browser.cache.disk.smart_size.first_run false
    browser.cache.disk.smart_size.use_old_max false
    browser.cache.frecency_experiment 3
    browser.display.background_color #C0C0C0
    browser.display.use_system_colors true
    browser.history_expire_days.mirror 7
    browser.places.smartBookmarksVersion 7
    browser.sessionstore.upgradeBackup.latestBuildID 20150222232811
    browser.startup.homepage_override.buildID 20150222232811
    browser.startup.homepage_override.mstone 36.0
    browser.tabs.warnOnClose false
    browser.tabs.warnOnOpen false
    dom.mozApps.used true
    dom.w3c_touch_events.expose false
    extensions.lastAppVersion 36.0
    gfx.direct3d.checkDX10 false
    gfx.direct3d.last_used_feature_level_idx 1
    media.gmp-gmpopenh264.lastUpdate 1423173493
    media.gmp-gmpopenh264.version 1.3
    media.gmp-manager.lastCheck 1425137005
    network.cookie.prefsMigrated true
    places.database.lastMaintenance 1425054727
    places.history.expiration.transient_current_max_pages 104858
    places.history.expiration.transient_optimal_database_size 167772160
    places.last_vacuum 1302790928
    plugin.disable_full_page_plugin_for_types application/pdf
    plugin.importedState true

  • I just downloaded Lion.  Now when I open Safari, it automatically opens to the last page visited.  How do I reset it to open to a blank page as it did previously?

    I just downloaded Lion.  Now when I open Safari, it automatically opens to the last page visited.  How do I reset it to open to a blank page as it did previously?

    Dealing With The Resume Feature of Lion
    Managing Mac OS X Lion's application resume feature.
    If you shutdown your computer you should get a dialog asking if you want applications to resume on the next startup. Simply uncheck the box to prevent that from occurring. Open General preferences and uncheck the option to Restore windows when quitting and re-opening apps. You can also install a third-party utility to control resume features on individual applications: RestoreMeNot or Application State Cleaner.
    It is possible to completely stop the Resume feature although I'm unconvinced that it is that annoying. Nevertheless see the following:
    If you have not yet done so you must first make your /Home/Library/ folder visible. Open the Terminal application in the Utilities folder. At the prompt paste the following command line:
    chflags nohidden ~/Library
    Press RETURN. Quit the Terminal application.
    In the Finder navigate to the /Home/Library/Saved Application State/ folder. Delete the contents of the folder. Back up to the /Home/Library/ folder. Select the Saved Application State folder. Press COMMAND-I to open the Get Info window. In the Sharing and Permissions panel at the bottom click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window.
    Quit all open programs except the Finder (this is very important.) Next, navigate to the /Home/Library/Preferences/ByHost/ folder. Look for a .plist file with "com.apple.loginwindow." in the file name followed by some numbers in hexadecimal. Select the file. Press COMMAND-I to open the Get Info window and in the Sharing and Permissions panel click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window. If you also find a file with the same filename but with a last extension of ".lockfile," then you should delete it.
    The above should eliminate the Resume feature system-wide. Note that any future system updates or upgrades will likely undo these changes. You will then need to repeat this procedure assuming there are no major changes in OS X related to it.

  • How to Print T&C on backside of the last page in smartform.

    Hi All,
             I have requirement from one of the my client to print the terms & condition page on the back side of last page in invoice form.
    I have created three pages as below.
    First page: To Print header data,Print mode:blank,Next page : NEXT.
    Second page : Contains the continuation of the data,if there are enough lines,Print Mode: D,Next page : NEXT.
    Last page:To Print T&C,Print mode : blank,Next page :blank.
                This is working properly when form has 2 pages.Here my question is,
    How to print the T&C on backside of first page,if form has only one page.
    Thanks in Advance.

    Hi Vineesh,
    I have 3 pages in my form.
    First page: To Print header data, Print mode:blank, Next page : NEXT.
                         First page has the comment node, go to next page as Third page.
    Second page : Contains the continuation of the data, if there are enough lines, Print Mode: D,
                          Next page : NEXT.
    Third Page: T&C page, Print mode : blank,Next page :blank
    The 3rd page should print back side of the page.
    If form has only one page,then first page should be in D mode.Hence the T&C page will print back side of first page.
    If form has multiple pages. then the last page ( where the main window gets end ) should be D.Hence
    the T&C page will print back side of last page.
    How to achieve this both the scenarios?
    Thanks & Regards,
    Priya Chandran

  • How to print last page in smartforms

    Hi,
    In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
    Rgds

    Hello,
    According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
    The best soln would be,
    1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
    2) In the driver program ,
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        control-no_open  = 'X'.
        control-no_close = 'X'.
        output-tdnewid  = 'X'.
       PERFORM ssf_open.
    CALL FUNCTION 'SSF_OPEN'
      EXPORTING
      ARCHIVE_PARAMETERS       =
      user_settings            = ' '
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
    output_options           = output
    control_parameters       = control
    IMPORTING
      JOB_OUTPUT_OPTIONS       =
    EXCEPTIONS
       formatting_error         = 1
       internal_error           = 2
       send_error               = 3
       user_canceled            = 4
       OTHERS                   = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT it-1.
        CALL FUNCTION l_fm_name
    endloop.
    CALL FUNCTION 'SSF_CLOSE'.
    2) In the smartform 
         FIRST  ->   next page -> NEXT
                   Beneath the main window -> Table,  put Command - Goto new page  as LAST.
         NEXT  ->   next page -> NEXT
         LAST  ->   Next page -> Blank
    I hope this will work as I have done a similiar dev.
    Regards,
    Radhakrishnan

  • How To trigger last page in sap script of customer account statement

    Hello all,
    I am working on customer account statement.
    It has it's own standard script(F140_CUS_STAT_02). But my client's requirement was completly diffrent,so i copied that to z script and made some changes like delete some window and some another window.
    Now on first page , i have following windows,
    1) Header
    2) address
    3) main
    4) Account
    5) Footer.
    Next Page having following windows,
    1) Header
    2) Main
    3) account
    4) footer
    Now i want to print account window on lsat page, so i put the condition nextpage = 0.
    and it is working fine , but as account window is physically present after Main window , so that much blak sapge is getting creted after main window on every page.
    To remove that blank space i am thinking of creting one more page and everytime i want display account window on that page.
    I have creted the last page also. but in my output it not detecting that last page.
    For First page - next page is next.
    For Next page - next page is next.
    for Last page- next page is last.
    Also i have added following code at last in  main window.
    /: NEXT-PAGE LAST.
    But i think i am placing this code at incorrect position in main window.
    I am not able to find out the correct podition to put the above code,but main window of that script conataing so namy text element, and that text element are getting handled from driver program based on some conditions.
    I have added my code in main window but not changed the original code.
    Plz let me know where to write /: NEXT-PAGE LAST. in main window.
    Or provide me some another solution to trigger thet last page in sap script.
    Regards,
    Anuja Dhondge

    Hi ,
    actually in account window i have used tha box command to print account statement.
    Previously i was printing this account statement in main window itself but without using bottom and end bottom command.
    So , as i made some changes or add some code in main window then lines of this account statement  were getting dismental.
    So my question is using bottom and end-bottom command this will happen or not????

  • How to supress Last Page in a Script

    Hi
    In a script I have three pages First Next and Last, my requirement doesn't’t need Last page which contains the summary. If I delete Last page with in the script, the output displays with two pages where in the first page contains all the data which I require and the next page shows the fields other than main window [don’t know why it is triggering].
    If i include the Last page with in the script with a blank new window in that, my output displays normally with a blank page at the end.
    Will any one help me how to suppress the ‘Last’ page in the scripts.
    Am working on Cheques ‘F110_PRENUM_CHCK’ and the print program is ‘RFFOUS_C’ where I want to suppress the ‘Summary’ window in the Last page. Here i don't want to modify the original program.
    Thanx
    Message was edited by:
            Shinoy N

    Hi Shinoy,
    we have the same requirement as you mentioned. We have to delete the last page ( with summary and void check ) . I deleted the last page ...eventhough the void check in the last page is reflecting.
    Please do let me know, how to delete the last page.
    Regards,

  • How to Indentify the last page of output

    Hi All,
    I'm customizing the AR Invoice Report using XML Publisher. This report output can have more than one invoice.
    If an invoice has more lines and output is more than one page, I have to print the following information only on the last page of an invoice.
    1. Printing Remittance information at the bottom of the last page
    2. Invoice totals only on the last page of an Invoice.
    3. Printer marks to indicate the last page. Last page will have 3 small lines and all other pages will have 2 lines.
    To be more clear, if an invoice has 25 lines and first page can print 20 lines and the second page 5 lines. The remittance information and totals have to be printed on the second page. The first page has to have blank space at the same position.
    I need not to print an additional last page.
    I have page break after each invoice so that the page number is reset.
    Is there a way to identify the last page of in the report? I have found out that we can access the page number using the tag <?fo:page-number?>. However I could not find anything to identify the number of pages or the last page.
    Please let me know if you have any suggestion regarding this. It will be very helpful.
    Regards,
    Vijay

    Vijay,
    you need not check for the last page of the output. Pl go through 'Last Page Only Content' secton on 2-48 of XML Pub guide 5.6.1.
    I had very similar requirements and i achieved it by following the above info. One thing we should be careful of is: When we make some change in the content of first page, we should do those changes in the last page if the same content exists in the last page!!
    Hope it helps.
    Venkatesh N

  • Word 2004 won't print individual or last pages

    When printing a document in Word, the programme has just started missing the last page of docs with 2 or more pages, and won't print any single page documents. Even double sided with an even number of pages it misses the last page on the back of the second last.
    It says it is going to the printer, and the printer detects some data coming in, but then prints nothing. My work around is putting a blank page at the end of each doc, but this is annoying and cumbersome.
    This has only just started happening. Having searched for answers here and other forums, I couldn't find a solution.
    Have tried taking off collation, printing only page ranges, current page, and have looked in all the settings to no avail. This happens with both Kyocera printers (one is new, the other did not have this problem before, and all other appications work fine, making me think it is the application)
    Has anyone encountered this problem before?
    Any help much appreciated.
    Thanks from Downunder,
    Chris

    Hi Chris -
    The first things to be sure of are a) that you have the most current updates for the version of Word you are using, and b) that you have the latest print driver available.
    If you have recently updated Word/Office and-or OS X, you may need to reinstall the printer driver even if it is current.
    You'll find some helpful suggestions here
    Help! Cannot print
    http://discussions.apple.com/thread.jspa?threadID=298892&tstart=0
    Regards |:>)

  • No Data on Last Page of Report

    Hi - I have a 3 page report in Crystal Reports for Visual Studio 2005. It is being rendered via a VB .NET web page that is using the CrystalReportViewer that has the page navigation buttons. Quite often (but not all the time) when you click the navigation buttons to go to the last page it has the text objects for the page but not any of the data fields. The data is completely blank.
    Sometimes when you navigate back to the second page and then go to the third page the data appears. Or some customers click the Print button and then they can see the data.
    The report was working well on an old clunky web server and I believe the problem started when we switched to a new web server. Is the new web server rendering too fast for Crystal or something?
    Any ideas to help view data on page 3 all of the time?

    Hi, Wendy;
    That is pretty strange. Have you ensured that the new server has updated Video drivers? Have you installed the latest service pack for Crystal Reports for .NET 2005?
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    Regards,
    Jonathan

  • How to write a subform @ bottom of last page without reserving space for it

    Hello gurus,
    I have a small challenge for you guys :-):
    Iu2019m developing an adobe print form for an invoice and have to write a subform at the bottom of the page but only if it is the last page. Said like this the requirement doesnu2019t seem so special at all which I agree with you but, if add to the problem that I must not reserve a place (on master page) to it so I can minimize the paper loss and use the maximum space of the page for the invoice items/taxes etc (for the container) and only write the subform at bottom if it is available space left it turns the problem a little bit more complex, isnu2019t? If case there isnu2019t available space in the u201Ccurrentu201D last page to write it I should provoke a page-break to write it at bottom of the u201Crealu201D last page.
    Iu2019ve tried to put the subform on the master pages (FIRST and NEXT) overlapping the end of the correspondent containers and hide it for all the pages that werenu2019t the last one but in some cases the subform content is overlapping the invoice items.
    Do you have any suggestions how to achieve this?
    Thanks in advance.
    Regards,
    Alexandre

    I don´t have a working demo of that two master pages approach. Was just an idea and I wanted to know if it works.
    But I have one more, less experimental idea, which I have implemented some time back and am sure, it works.
    Follow me:
    - fill the data into the table (done automatically, of course, but a must for the event to work = pick event after you got the data into the table...) (not a real work)
    - count the number of lines (easy, piece of cake)
    - get the height of one row (easy, piece of cake)
    - compute how many pages are occupied by the table lines
    - compute how many lines are present on the last page
    - compute how many lines are needed to make the last page "full"
    - use the last number to compute a height of a blank subform (no content but has size), set the height, which will make the "footer" (the one we are talking about here) go to the bottom of the page
    Every needed reference is here:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Especially the last chapter of the JS reference.
    Regards Otto

  • A window to be displayed in last page In smart form

    Hi,
    I have to  display a window in last page  . Its actually like a footer in which some information is diplayed.
    so this footer shud be displayed in last page. Kindly any one guide me regarding this issue.
    Thanks in Advance
    Regards,
    Neelima.

    Hi,
    u can do this by using some concept......
    1. draw the main window upto the bottom where the footer is supposed to be....
    2. draw the footer window as secondary window overlapping the main window at the bottom.
    3. set the footer window event as 'Only after end of main window'.
    4. in the main window create ur table...
    5. In the footer of the table set Footer with height = 'same height as the footer secondary window'.
        tick the 'at end of table' and untic the 'at page break'.
    6. add a blank line type with blank text element(only few enters) on footer of table...
    7. In the table line types. press details and tick the 'no page break' for the footer line type.
    this will do the trick....
    what happens here is, the footer window will only print at the end of the main window...if the main window ends at the bottom, then it will check whether there is space for the footer...if no space is available then it will go to the next page.. otherwise it will print the footer of the table (which is blank) and then print the footer window over it(which is of the same height as the table footer)...

Maybe you are looking for

  • TYPICAL REPORT REQUIREMENT

    hi experts, Below there is a function spec so please can anybody send me the code for this requirement?can anybody send me the steps for thsi atleast? please its urgent 1.1 Functions in Detail The function of this report is to produce a summary buy o

  • My dvd/rw is suddenly stop reading all types of dvds plzz help

    i am owning hp DVD RW 7711H' it reads all formats of CDs but detect the DVDs as RAW.  my OS is WIN7. please help me.

  • User exit  or Badi for VL31N (create inbound delivery)

    Dear friends.           I wish to add a check before saving in the transaction VL31N for that  i need to know user exit or BADI..can you help me to know what possible user exit or badi available for this task.. your suggestion and article will be gre

  • Photoshop CS3 freezes on 24" iMacs

    I've installed Photoshop CS3 on 2 new 24" iMacs.  Specs are 2.66 GHz Intel Core 2 Duo, 4 GB Ram iMacs, with Leopard and all updates to Leopard and Photoshop.  We are simply copying 3 photos, from storyboard psd files.  I then paste them 1 at a time i

  • PR, PO & GR DATE

    DEAR ALL, PLEASE LET ME KNOW WHETHER STANDARD REPORT IS AVAILABLE IN SAP TO COMPAIR PR DATE, PO DATE & GR DATES? AMIT