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,

Similar Messages

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • 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 blank page in scripts?

    Hi gurus.
    can any one let me know how to supress blank page in scripts? When one of my condition satisfies it should print two pages and its working fine. When condition fails, it should print one page but its printing blank page as second page.
    Waiting for your answer.
    Urgent
    Regards,
    surya.

    hi,
    1. By providing the control commands in scripts,u can supress the blank pages.
    2.write the data between protect and end protect.
    3.Enclose the text that you want to prevent page-break in PROTECT... ENDPROTECT
    SAPscript will ensure that each line of this text is printed together on the same page.
    /: PROTECT
    Text
    Within
    The same page
    /: ENDPROTECT
    Regards,
    SHIVA(reward if helpful).

  • How to print in the last page of the script..?

    Hi,
    I am working on a script. I have a header window and one main window. In the main window, I am printing the line items of the Invoice. Once the line items finish, I have to print the sub totals there. and also to print the company agreement details(around 10 lines of text) in the last page of the script.
    So, <b>how to print the agreement details in the last page of the script..?</b>
    Can anyone provide me a sample code to find the last page of the Script layout..?
    And regarding writing the agreement details, is it better to hard code the text or use the standard texts..? which one is better..?
    Regards,
    Paddu.

    HI,
      Just create a Standard text, if you are going to use this standard text in other layouts also... and use it otherwise you can hard code it as this its of only 10 lines.
    declare one more element in the  main window itselft and call it atlast it would print in the last page..
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'FOOTER'<b><- This element should contain the agreement details</b>
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    ELEMENT = 1.
    Thanks
    Mahesh

  • How to Avoid blank page in SAP Script

    I am working on a Script. My Script prints a check.
    This script is a copy of a std script.
    It has 3 pages - First Next Last
    My First page has all the required data.
    My second page is empty with out any values.
    I am getting the blank page as Page 2 when executing. How can we avoid it ?
    Senthil

    Hi Senthil,
    Please see the below points:
    1. Please check what have you defined as the NEXT PAGE for your first page. If so change it and make the first page itself as the next page.
    2. Check your main Window, may be there is blank line at the last of the main window, so check that abd remove that,so you won't get the blank page
    Please see the link which is similar to your problem:
    Re: How to remove blank page in sap script
    May it helps you.
    Regards.
    Deepak Sharma.

  • Cheque printing. How to avoid last page in case of check printing in F110?

    F-68 prints only one page whereas F110 prints 2 pages.
    How to avoid last page in case of check printing using F110? Is there any other option than changing the Script.

    Hi,
    Im also facing the same issue. Generates 1 page with F-58 but 2 pages with f110. Kindly let me know how to resolve.

  • Adding Text to the last page in SAP Script RVORDER01

    Hi Experts,
                     I have copied RVORDER01 and changed the log for it and added my ZRVORDER01 in NACE.
    Now they want Some text to be added to the last page of the script how to do this without changing Standard Print Program ? Please guide me.
    Regards,
    Dheepak

    Hi,
    If you copied the the Standard Script to a ZScript then why is the problem adding a Text to the Last page......You should be able to do this easily .....i believe...Sorry if i misunderstood......

  • Need to print some text only in last page in SAP script

    Moved to correct forum by Moderator.  General wasn't right either.
    Hi All.
    I need to print "Remarks" only in last page of sap script.
    Can anyone please help me on this.
    Thanks
    Senthil kumar V.
    Edited by: Matt on Nov 21, 2008 7:38 AM

    Hi,
    you have 4 possibilities.2 at non main window, 2 at main window.
    at non main window.
    1. /: IF &PAGE(C)& = &SAPSCRIPT-FORMPAGES(C)&
    remarks
    remarks
    remarks
       /: ENDIF
    2, /: if &NEXTPAGE& ='0'.
    remarks
    remarks
    remarks
       /: ENDIF
    at main window
    3. Add the remarks at the last item of the main which is printed
    4. add a new item to your main (/E)
        put your remarks in it.
       Change your program in such a way this item will print as last one.
       like
        /E REMARKS
    remarks
    remarks
    remarks
       and in sapscript program add logic at the end.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'REMARKS'
    EXCEPTIONS
    element = 1
    window = 2.
    I am sure this will do. Make a choice.
    Gr., Frank

  • Printing LAST page in SAP script on the back side.

    Hi ,
    I have a problem with the printing of the LAST page on the reverse side of the form, when done with a vendor.
    At a time we print many vendors together.
    So, when done with printing of a vendor it needs  to print his address on last page, reverse side(address)
    Next will be followed by another vendor details.
    I cannot give 'D' for the first page because it would fail if the form flows more than 2 pages.
    is there any way of triggering the LAST page in SAP Script when it done with printing of one vendor.
    any help would be highly appreciated.
    regards.

    Hi ,
    In Script PO i have to print 'Terms and Conditions' text only on the back side of last page of the PO.
    Presently script contains THREE pages ( FIRST, NEXT, TERMS).
    FIRST with attributes :
    next page as NEXT , Print mode T.
    NEXT with attributes :
    next page as NEXT and print mode T
    TERMS with attributes :
    next page as ' '.
    I Created 'TERMS AND CONDITION' window.For TERMS page i selected 'TERMS AND CONDITION' window only.
    So page window of 'TERMS'  is 'TERMS AND CONDITION'  and i included standard text in 'TERMS AND CONDITION' window.
    If PO contains 9 pages( that means MAIN WINDOW data flows up to 9th page with footer also ).
    So i have to print standard text(Terms and conditions) back side of 9th page only not on all pages.
    So total PO contians 9 pages with 10 prints.
    Please help to solve the issue
    Thanks and Regards
    Venkata swamy

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

  • Last page in SAP Script

    Hi All,
    I have a requirement of printing terms and conditions of PO on a new page of SAP Script.
    I created a new page as LAST and called it through NEW-PAGE command from MAIN window.
    On my LAST page I created 1 window, which calls Standard Text.
    Issue I am facing is in spite of having data of more than 1 pages , print preview is displaying only 1 page of Terms and Condtions.
    Can you please let me know what am I missing?

    Hi Shradda,
    you also can just add an additional processing.
    You know, something like
    /: PERFORM 'YOUR_ROUTINE' IN PROGRAM 'YOUR_PROG'
    /: ENDFORM
    See here: https://help.sap.com/saphelp_crm700_ehp02/helpdata/en/4e/34f87463de02c2e10000000a15822b/content.htm?frameset=/de/4e/3663…
    But in my opinion it is the best to make a copy of the original because I'm pretty sure, there will be more additional requierements in the end and just to enhance or to use this technique is very hard to understand after the second implemented spot
    Can you share your stuff how you tried it?
    I mean, calling two sites in a row should definitv work fine.
    /: NEW-PAGE 'LAST1'
    /: NEW-PAGE 'LAST2'
    I tried it on my own and it works perfectly fine...
    Did you gave your last-page a followpage while testing the first suggestion? That is of course a must-have.
    ~Florian

  • How to identify last page of a group

    Hi reports gurus!
    I'm trying to have report of employee(table emp) group by department(dept). I want to have 5 employees per page and per departement. A department can have 10 employees. So we'll have 2 pages for this department.For Each page a want to have sum of salary. Only at the last page of a department i want to have the sum of salary per page and also total of salary for the current department.
    So i want to know how to identify the last page of departement in order put only on this page the sum of salary for the departement?
    PLZ help is't very very important.

    Repeated masterpages use the same logic as any other repeated object - they have instance numbers.
    To address the second instance you can use an expression like.
    xfa.resolveNode("form1.masterpage[1].subform").presence = "hidden";
    If you're not sure about the correct SOM expression you can use a small script for testing.
    Put a textfield into the subform you want control.
    Add this script into its calculate event.
    this.rawValue = this.parent.somExpression;
    If you preview the form in Designer you'll see the SOM expression of the text fields parent, which is the subform.
    Copy it and put it into the script to hide the subform.

  • How to remove blank page in sap script

    hi ,
    I have a problem in sap script. I copied one std. script and made some changes i.e removing the unwanted pages from the script.
    no where NEW-PAGE kind of command is declared in window but still a new blank page is coming in printing.
    i checked with the posted comments in forum n what i found .. i did that part for my script..but no progress.
    so help needed.
    thnx,
    m

    Hi,
    If there is no any "NEW-PAGE" command in your any window, Pls check following probable causes.
    1. Check your main Window, may be there is blank line at the last of the main window, so check that and remove that,so you won't get the blank page
    2.Please check what have you defined as the NEXT PAGE for your first page. If so change it and make the first page itself as the next page.
    Hope it help you.
    Regrads,
    Lokesh.

  • 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

Maybe you are looking for

  • Syncing Folders with Aperture 3, How To?

    Hi, I was wondering how can I keep a file system folder in sync with Aperture library (Both when I add files to the system folder or when I create a new versions in the Aperture library). I know it is not supported in Aperture. Is there some scripts

  • A new error message when ck11n

    dear all: when i make standard cost calculate using ck11n, a new error message happened , that is 'costing item 00005 is not assigned to a cost component'. anyone can tell what should i do to reslove the problem. thank you a lot. bset regards!

  • Programatic way of updating jar files

    Is there a programmatic way of updating jar files (efficiently)? What I am looking for is an equivalent of jar -u option available in JDK 1.3. The only way I have right now is to create a new jar file, add the new files into this file and then add th

  • HCM- PD (mass upload of career paths)

    Hi Experts... I am working on carrer & Succession planning in PD. I have developed career paths based on jobs (TCode for creating career path is - OOQ4). Need to upload 500 such paths....but its not possible through LSMW....as the screen is using Net

  • It says I don't have enuf storage in iCloud acct ($100) 4all my devices?

    It says that I don not have enuf storage space 2back up all of my devices on iCloud even tho I purchased the max ($100) for a year? What do I need 2do?