Printing of continuous similar pages in a script

hi experts,
        i have customized a script, the script contains only one page data. but i want to print the same script with small header content change for 5 times in one execution..
thanks & regards
deepika

Well,if it is one page... loop your open_form 5 times and change the header line..
Ex:
     START_FORM.
     DO 5 times.
     OPEN_FORM.
     Case sy-index.
     When 1.
      elem ='100'.
     When 2.
     element = '200'.
      When 3.
      elem ='300'.
     When 4.
     elem = '400'.
     When 5.
     elem = '500'.
     WRITE_FORM
main window pass elem
     CLOSE_FORM.
   ENDDO.
***Make sure you place your corresponding header under each element.
Above is a sample example code...
Regards,
Sairam

Similar Messages

  • 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

  • Same set of data should print twice on same page in SAP SCRIPT

    Hi Experts,
    I come across a requirement where I need same set of data in sap script should print twice as it is on same page.
    and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data should print twice in two blocks on same page.
    E.g.
    If I have 10 line item which is to be printed on top window on  first page. Now I want that same 10 lines should be printed in a block below the first block. Data should flow similarly across multiple pages.
    Hope my question is pretty clear. I am expecting suitable answers from experts.
    Thanks in advance.
    Regards,
    Vijay

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • Header in every page of  SAP-Script

    Hi all,
    How to print header in every page of SAP-Script?
    Thanks in advance,
    SG

    Hi,
    While giving the WRITE FOR, u have to give the Value HEADER for TYPE.
    U have it to give it inside the Loop so that u ll get the header in all pages.
    For eg.,
    Loop at <itab>.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       element                        = 'ELEMENT1'
       type                             = 'HEADER'
       window                         = 'WINDOW1'.
    endloop.
    Regards,
    Padmam.

  • Several times every day I get the following message or something very similar, what can I do? A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Scrip

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsBlocklistService.js:648
    == This happened ==
    Every time Firefox opened
    == It just started about 2 weeks ago but is now happening every day

    The most likely cause is a problem with Java on your system - older and/or messed up Java installations seems to cause this issue sometimes.
    To fix:
    Step 1: Try installing latest Java version. Check your Firefox/system browser plugins from this page, and install latest version: [http://www.mozilla.com/en-US/plugincheck/ Mozilla Plugin Check Page] (also works for most other browsers)
    If latest Java (currently "Java(TM) Platform SE 6 U20 - Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers") does not fix the problem, you may have more versions installed on your system causing problems for each other. This leads us to -
    Step 2: Uninstall those you can from Control Panel -> Add/Remove programs. To make sure it is properly cleaned out, see [https://support.mozilla.com/en-US/forum/1/595817#threadId608043 these excellent tips from noah_sumo] to clean out Java completely, then install latest version again from the [http://www.java.com/en/download/manual.jsp Java.com download page].
    If you ''still'' get this error, you may have Norton or another security program which can also in some cases cause this issue. That takes us to:
    Step 3: Configure security program correctly.
    For Norton 360 see [[Configuring Norton 360]].
    For Norton Internet Security, see [[Configuring Norton Internet Security]].
    For other firewall programs, see [[Firewalls]].
    If none of these steps solves the problem, please provide any detail you can think of that may be related and let us know, and we will try to find other solutions to get this solved.

  • Bookmark restore problem: " A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. script: resource://gre/modules/PlacesUtils.jsm:1436"

    I'm trying to restore bookmarks from a .json file (as xmarks keeps duplicating and corrupting my list) and Firefox often works really slowly also. I know this as I ususally get a script message errors and option to continue or stop.. In this case with restoring bookmarks everytime I try to restore with my saved .json file I get an interruption, and the message " A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. script: resource://gre/modules/PlacesUtils.jsm:1436" i stop the script (if i continue the same warning comes up) and then get half of my bookmarks restored or similar only if that, and another message telling me FF is unable to process the bookmarks!? I think this unresponsive script is the one that randomly comes up when I'm working FF hard, and causes it to run slowly- or it is a very similar looking message. Any comments and ideas appreciated .
    Running on Macbook pro 2GHz Intel Core 2Duo, 2Gb 667 Mhz DDR2 OS 10.6.8

    One other thing....the same script error on Ubuntu Linux 11.10 on my old Dell. And it seems that the backup I thought I had made probably was saved incorrectly, again only half of the bookmarks I had sorted out were created in the file- i should have exported a copy as another safeguard!

  • 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

  • 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

  • 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

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

  • Why do I constantly get this message: Unresponsive Script, A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

    I get this pop up screen continuously on my screen. Ever since I switched to Firefox, I was using Safari. The only other Apps open are my Mac Mail and Finder.
    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: http://static.ak.fbcdn.net/rsrc.php/v1/yY/r/BaybJiEemV4.js:13
    Each time I am asked to either Stop Script or Continue.

    Looks like a script on the Facebook page.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How do I stop this A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionMana

    What is causing this warning when I open firefox and how do I correct it? > A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionManager.js:623 <
    == This happened ==
    A few times a week

    I do not have the Ask toolbar and I get the Unresponsive Script message everyday.

  • Where would I start searching for someone to contact regarding this CONSTANT message? "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. "

    This is a cut and paste of the repetitive message that shows during every web session I have, repeatedly .
    "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/extensions/%7B635abd67-4fe9-1b23-4f01-e679fa7484c1%7D/components/nsYahooFileIO.js:26".
    I am going to go nuts if I don't fix this soon, please help!

    The most likely cause is a problem with Java on your system - older and/or messed up Java installations seems to cause this issue sometimes.
    To fix:
    Step 1: Try installing latest Java version. Check your Firefox/system browser plugins from this page, and install latest version: [http://www.mozilla.com/en-US/plugincheck/ Mozilla Plugin Check Page] (also works for most other browsers)
    If latest Java (currently "Java(TM) Platform SE 6 U20 - Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers") does not fix the problem, you may have more versions installed on your system causing problems for each other. This leads us to -
    Step 2: Uninstall those you can from Control Panel -> Add/Remove programs. To make sure it is properly cleaned out, see [https://support.mozilla.com/en-US/forum/1/595817#threadId608043 these excellent tips from noah_sumo] to clean out Java completely, then install latest version again from the [http://www.java.com/en/download/manual.jsp Java.com download page].
    If you ''still'' get this error, you may have Norton or another security program which can also in some cases cause this issue. That takes us to:
    Step 3: Configure security program correctly.
    For Norton 360 see [[Configuring Norton 360]].
    For Norton Internet Security, see [[Configuring Norton Internet Security]].
    For other firewall programs, see [[Firewalls]].
    If none of these steps solves the problem, please provide any detail you can think of that may be related and let us know, and we will try to find other solutions to get this solved.

  • Everytime i start firefox, I get a window that says:A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

    Each time i open Firefox, i get a window opening saying:A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsBrowserContentHandler.js:619
    When i try again, i get the same result, if I continue, nothing happens for a few minutes then fire fox opens with awindow saying to start again.
    == This happened ==
    Every time Firefox opened
    == I installed Firefox ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729)

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

Maybe you are looking for

  • When I open Pages, Numbers the template chooser doesn't open, some other finder type window opens.

    Any way to turn it back on after ML install? In preferences the template chosser is selected and can't be unselected.

  • How do I move my iweb site to another account?

    I have built my wife a web site on my computer on my .mac account using iweb. But I want to move it over to my wife's .mac account on her computer. Essentially to have it live on her computer and not mine. How do I do this? HELP! Thanks a million.

  • How to give OR in read

    Hi all, I need to write a READ statement for the below req. I have one internal table as ITAB. Loop at Itab1. Read table ITAB2 with key ( CAN = Itab1-Value1 ) or                           ( CAN = Itab1-Value2 ). endloop. this is not working.How to gi

  • Standard reports for materials begning,purchase,sale,closing stock

    Dear Experts, Is there any standard report for Opening stock Purchase Sale Closing stock in terms of QTY and value for all materials. regards RR

  • Timeout in BSP

    Hi, we have currently a strange problem with a generic bsp application. In different cases it shows timeouts during application execution. This happens in SOME actions from the users (not all). I assume that this is not a real timing problem. The wai