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

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

  • 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

  • Print text on back side of last page in sap script

    Hi All,
    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 two pages ( FIRST, NEXT).
    FIRST  with attributes :
       next page as  NEXT , Print mode T.
    NEXT  with attributes :
       next page as NEXT and print mode T
    Please help us in solving issue.
    Thanks and Regards
    Venkata Swamy

    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 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????

  • Urgent - Not able to Print back page for Last Page in SAP Script.

    Hello All,
    I need to Print back page in SAP Script, I am able to do it by setting print mode as D, but now the problem is, it does not print back page for last page.
    For eg. if there are 3 pages it prints back page for first two. If there is only one page then it does not print back page.
    Please Help.
    Thanks.

    hi,
    Yes, we can print logo as water mark in scripts
    Just do as like this....
    Upload your logo via SE78.
    - Select 'Import' button from application toolbar of SE78, and perform upload.
    and write this code in scripts
    BITMAP 'COMPANY_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL 
    regards
    Sankar

  • 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 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.

  • 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......

  • Finding last page in SAP Script when there are  multiple layouts involved?

    Hi,
    I want to find out the last page in the SAP script. I have used &NEXTPAGE& = '0', this is finding the last page of a one layout however I do have three layouts in my script. I have also used the &SAPSCRIPT-JOBPAGES(3ZC)& and I have taken one counter and comapred as follows-
    If &SAPSCRIPT-COUNTER_1(+)&  = &SAPSCRIPT-JOBPAGES(3ZC)&
    LAST PAGE.
    endif.
    This is also not working. Please advise if there is anyway to find out the last page from print program.
    Thanks,
    Jyoti

    Hi,
    U can do like this, Set a flag in ur driver program when u reach to print the last layout then pass this flag value to Script. In script check when this FLAG = 'X' & &NEXTPAGE& = 0 then u print the required in ur last page.
    Eg:
    define a FLAG in ur driver program and make the value as 'X' when it reach the last layout.
    in script, write the condition like:
    /:  IF &FLAG& = 'X' AND &NEXTPAGE& = 0
         write text.
    /:  ENDIF.
    Hope it helps!!
    Rgds,
    Pavan

  • Displaying last page in SAP Script.

    HI All
    I have created 3 pages.
    Data will be displayed in the first page and 3 page ie the last page will display a small Note.
    I have a requirement in which Both First and last page should be displayed.
    IF data is too long then after first the next page should get displayed  and then the last page.
    I tried using start_from and End_form . but the issues was not solved.
    Please help.

    Hi,
    Please try to control the printing of First and last page based on the Internal Table contents.
    Check if the internal table is empty after printing the first page and then put a if-condition in the script editor to control triggering of second page.
    Then you can print the last page with instructions.
    Regards,
    Lakshmi

  • Print Second page in SAP script

    Hi ,
    I want to print second page in my sapscript.first page has Header,MAIN,footer windows. Second page has only one window where i need to print some terms and conditions those are hard coded in script.
    Could you please let me know how i can print second page after first page?
    Thanks
    Mohit

    Create a new page as second page....
    Assign the second page as the next page to the first page... select print only when main window finishes...
    It will automatically print the second page...

  • Print continuous pages in sap script

    Hi all,
    I am taking the start from and end form twice. The first page has next page and the page numbers are fine, as i am going with the new page I created the page numbers are restarted.
    I've tried the option (jobpages and formpages which are giving the spool pages and current pages of the pages I created). I need to find the difference between the pages discussed above or need to use &SAPSCRIPT-COUNTER_x(+)& (need syntax of the same if it works).
    can any one Please suggest the solution to get continuous pages even though new start form is called up.
    Thanks and Regards 
    san

    Hi,
        When you use Scripts or Smartforms the page counter will be defined by the system with a new page.
    we cannot manipulate the pagenumbers it is purely system dependant by which you start a page
    If you want to get the page number as needed then :
    Write your own logic
    1. create a counter and get the count of teh pages irrespective of new or start page
    2. declare the value in the form
    Hope this helps.
    Regards,
    Amitteja

  • Creation of New Page in SAP Script

    Hi Experts,
    Please advice when will a new page trigger in SAP Script :
    As per my requirement I need to create a new page for an existing layout and make changes to the second page alone...
    but this page should be triggered only for a specific condition. Is it possible to trigger second page when it satisfies certain conditon?
    I have searched SDN regarding the same but most of them have recommended to use NEW-PAGE...but as per my understanding NEW-PAGE is used when certain data needs to be printed on the next page ( not on the new page ).
    Thanks
    Karthik.R

    Ok friend,
    Try using the conditions in your driver program using 'CONTROL_FORM' function module. or using some other condition in it.
    You can also give conditions in text editors and you can trigger the pages.
    i think these links will help you in solving your solution just check these Link: [new page based on condition in sap script|new page based on condition in sap script; this is just an hint from this you can develop the idea.
    Link: [Breaks in Smartforms|LAST PAGE FOR SAP SCRIPT;.
    Also there are other few related links in SDN which will help you.
    I think this must solve your issue if you still face any queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Printing text in back side of the page in sap script

    hi everybody,
      I had a problem on printing the terms and conditions of purchase order delivery in the back side of page in sapscript.
      plz help me by solving this,
      Thanks in advance
    sudheer

    HI,
    Welcome to SDN..
    Use DUPLEX mode in script form.
    <b>Goto Pages in Script and in Print Attributes try Print mode 'D'</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/90/78f07e030211d399b90000e83dd9fc/frameset.htm
    http://solutions.brother.com/Library/pdf/SAP_install_latest.pdf
    Regards
    SAB

Maybe you are looking for

  • Itunes 7 and updater

    I just downloaded the latest itunes 7 but it doesn't recognise my ipod. I accessed the updater (dated June 28 2006)in Windows Explorer and it would not initialize as it was not the latest. Why didn't itunes download the latest updater? Where can I no

  • Sqlldr when cluase issue in unix

    hi.. this is my ctl file INTO TABLE "APB_DBA"."BN_STG" APPEND WHEN(03:07) <> 'TRAIL' FIELDS TERMINATED BY '~' OPTIONALLY ENCLOSED BY '"' AND '"' TRAILING NULLCOLS (Column1skip filler, COMPANY_CODE, CUST_BL_FRMT_NO) This is working fine and data loade

  • Recursive methods.

    Can we create recursive methods in ABAP objects? Thanks in Advance !!! Please post your questions in the correct forum. Edited by: Rob Burbank on Oct 1, 2010 4:55 PM

  • Old external HD with snow leopard

    I have an old external hard disk I use with a Mac OS9 computer. I am planning to buy a new Mac and will want to retrieve some files from the old HD. Will the old HD automatically mount to the Desktop and open with OS 10.6? Thanks.

  • Where I can to download patchset  6810189?

    I need to upgrade oracle 10.2.0.1 to 10.2..0.4. I am using linux 32 bit system. Where I can to download patchset? Please provide the links.