Current copy number in scripts

Hi  ALL,
I have a problem in scripts. i want to print the no of copies for scripts,for copies suppose i want 3 copies then it should come like 1/3,2/3,3/3.in this i got the total no of copies from nast-anzal .i gave as &nast-anzal&.i got like copy  /3,but the current copy number i dint get,
soo plzz kindly give me the answer.
thanks in advance,
Anil.

Hi Anil,
You can write a logic like,
take a counter,
while counter <= &page&
Print the script.
counter = counter + 1.
endwhile.
Hope the above pseudo code will help you.
Rgds,
Sripal

Similar Messages

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • Error with master page "insert current page number" when exporting book

    Using InDesign CS 5.5 for Windows
    Recently upgraded from InDesign CS (the really old one from 2003). I did save a copy of all my old version files and kept the old ID installed just in case (after reading all the horror stories on here).
    In my old version of ID, I created a book made up of about 70 documents. Some of these documents are one page, others have multiple pages. In the multiple page documents, I used the "insert ... current page number" character (or whatever the command was in the old version) on a master page, and formatted it to read, for example: Page 1 of 17, Page 2 of 17, Page 3 of 17, etc. When I exported my book to a pdf, it worked fine. (I do not want/have consecutive page numbers throughout the book, only in individual documents. By this I mean my entire book is about 280 pages, but not all of these 280 pages are numbered, just the groups of pages from these multi-page documents. It doesn't read page 1 through 280.)
    Got my upgrade to 5.5 a few months ago, added some documents to the book, and (if i remember right) when I saved the book it asked to convert every old version document to the new version, which I said okay. When I exported the book to a pdf, some documents that are longer than 2 pages are now numbered wrong; the numbers are now going like this: Page 1 of 17, Page 2 of 17, Page 2 of 17 (supposed to be page 3), Page 2 of 17 (supposed to be page 4), etc. Every page but page 1 is now page 2 of whatever.
    If I open the individual document and export it to pdf, the page numbers work fine. It's only when the document is exported with the book that the page numbers mess up. And it's not all the documents in my book; this error starts at a particular document and continues from that point throughout the rest of the book, affecting any document longer than 2 pages. Multi-page documents before this point in the book export with the correct page numbers.
    I create new documents by doing a "save as" with a previously created document and cut and paste as needed, so I'm not having to reformat or set up page numbers on each new document. I don't use layers or styles (I'm sure there's a better way to do what I need, but I've only had time learn the basics, just enough to be functional.)
    My attempts to fix this so far (using version 5.5), testing with the first document where the error appears: (1) I've removed the document from the book, deleted the insert current page number character, re-entered the insert current page number character, saved, exported the individual document to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (2) I took the document out of the book again, exported the document to .idml, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (3) I started up my old ID version, opened the old version of this document, exported to .inx, closed, opened .inx in ID 5.5, saved as new .indd with new name, exported to pdf and it worked fine. Put it back in the book, save, export, and it's wrong. (4) I moved the document up in the book order, putting it above a document that has correctly numbered pages, saved, exported to pdf, and this document was still wrong, but the one that has been numbered correctly all along is still correct. (5) I've compared settings for this document to others that number correctly and cannot find any difference.
    It's like the page numbers get hung on "2" when I export the book, but only in the last two-thirds of the book. Sorry it's so lengthy, but I hope this description of my problem is understandable. Any advice, other than going back to my old version documents and starting over?
    Thanks for your time and for all the awesome information this forum provides!
    alice

    Mr. Spier
    Right after I posted my question, I saw a post from last year where somebody had similar problems. (I cringed because I spent almost 3 days researching this problem and never ran across that post; thanks for not scolding me for posting a semi re-run.) I decided to try one of the easier solutions: I opened the problem document from the book panel, went to the master page and deleted the text box containing the page number, copied the page number box from a document that worked correctly, and pasted it into the problem document. Saved that doc, closed, saved book, exported to pdf, and it worked!! The page number problem was fixed. I went back and did the same thing for the other problem documents and they all number correctly now. 
    Probably not the best way, but for now this will fix it; I may have to do it again next time I add to the book. Although I didn't follow your instructions, I'll mark this as answered since it's working now. If it keeps giving me problems, I'll try the .inx export/new book route.
    thanks for your time
    alice

  • Problem in Sapscript , After creating a copy of Standard Script

    Hello friends,
                       I have copied a standard script WASCHEIN into ZWASCHEIN, now all the data is coming from driver program SAPM07DR. Now there is one field which is not coming from the standard program,
                      Is there any way i can capture the field in my script without making changes in the standard driver program like a select statement in the script.
    Thanks.
    Edited by: Vijay Babu Dudla on Dec 16, 2008 3:24 AM

    Hello Poonam,
    Sorry i think you are not aware of using PERFORM stmts in SAPScripts !!!
    @ Amit you can try this bit of coding:
    /:           PERFORM F_GET_KTEXT IN PROGRAM ZPROGRAM
    /:           USING &MSEG-NPLNR&
    /:           CHANGING &V_KTEXT&
    /:           ENDPERFORM
    Create a Subroutine-Pool Program: ZPROGRAM where you write the FORM for the above PERFORM.
    FORM f_get_cust_details
    TABLES fp_it_input  STRUCTURE itcsy
                  fp_it_output STRUCTURE itcsy.
    DATA:
      l_v_nplnr TYPE nplnr,
      l_v_ktext TYPE auftext. 
      READ TABLE fp_it_input WITH KEY name = 'MSEG-NPLNR'.
      IF sy-subrc = 0.
        l_v_nplnr = fp_it_input-value.
      ENDIF.
      SELECT SINGLE KTEXT
      INTO l_v_ktext
      FROM aufk
      WHERE aufnr = l_v_nplnr.
      LOOP AT fp_it_output.                                     "#EC *
        IF fp_it_output-name EQ 'V_KTEXT'.
    *     Modifying the output table with the customer number
          fp_it_output-value = l_v_nplnr.
          MODIFY fp_it_output.
      ENDLOOP.
    ENDFORM.
    Please note that passing the USING / CHANGING parameters through tables of ITCSY structures is a standard way of doing this & you cannot change this )
    Hope this helps.
    BR,
    Suhas
    Edited by: Suhas Saha on Dec 16, 2008 9:39 AM

  • Current Page Number

    Hi,
    I'm a newbie at any kind of Acrobat development, but can't seem to find a way to get the current page number on the client side of a pdf loaded into Reader. Is there a fairly painless way to do this? Additionally, it'd be cool to be able to change pages using client-side script as well (I'm currently re-loading it with the #page= attribute)...can I do that easily?
    Here's a short description of the app so that my questions make a little more sense:
    - Dropdowns on the left to drill down to a specific set of options. Iframe on the right that loads a corresponding pdf and loads the proper page for the dropdown options the user has selected as they drill down.
    - Need to be able to reverse the process somehwat so that if the user goes to a page in the pdf on the right I can update some of the info on the left.
    Any tips on how to accomplish this are greatly appreciated! :)
    Thanks!

    Thanks, Malky! I have been looking more into that aspect of the sdk now and it looks promising. However, I've downloaded the samples and can't seem to get any of them to work. I even tried the html sample figuring it'd be the easiest to get running, but the control specified by the object tag won't load (and doesn't error or anything like that). Can you point me in the right direction for getting started with the IAC stuff? Do I need to have Acrobat in order to do this or something? Thanks for your help!

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • Pdf reader that will let me print the current page number to stdout ?

    I'm looking into annotating my readings, and it'd really speed things up if I were able to get the current page number printed to stdout.
    I've been through evince and xpdf's manuals, the latter will let you output the file to ps, so there might be some hacking possible there, but maybe there is a more convenient alternative...?
    Would appreciate some suggestions.
    Cheers !

    Sure that works, it's just that I'm already wrapping my pdf reader in a ruby script to allows me to make annotations linking back to the original document and page, and I also use the clipboard to quote.
    So instead of being a keybinding away, I end up have to juggle with windows...

  • I own a copy of lightroom 5 (a download copy) and have had to install a new hard disk.  I can't remember how I obtained the current copy, but I suspect that i downloaded a trial copy expecting to install the license numbers and I may have downloaded a mon

    I own a copy of lightroom 5 (a download copy) and have had to install a new hard disk. I can't remember how I got the current copy but I think I may have downloaded a monthly rental copy because the program is asking me to pay a subscription fee.  I was expecting to get a message to install my serial numbers.

    You downloaded the trial version for the creative cloud. It doesn't work with a serial number. It is licensed differently. You will have to uninstall it and then download and install from here:
    Product updates

  • ICM 8.5 and higher : Max number of scripts and CT

    Hey all,
    I was wondering if any of you had encountered limitations in :
         -the number of scripts (both active versions and number of versions you can keep)    
         -the number of call types
    in an ICM 8.5 or higher version system?              

    Thanks for this feedback David.
    Our project is currently still being deployed and we will have about 12000 agents (simultaneous connections). We have not yet done all the scripting as not all the sites are in production yet, but the number of call-types in the end will probably be close to 10000.
    Emmanuelle

  • How to report current page number to the browser...

    I need to dynamicaly attach a script in a bunch of PDF files. The script will be attached when the user requests the document and the document will be embeded in the page like this:
    <embed id="PDFObj" src="test.pdf" width="100%" height="100%">
    I have a JavaScript in my webpage with a message handler:
    var PDFObject = document.getElementById("PDFObj");
    PDFObject.messageHandler =
      onMessage: function(aMessage)
        switch (aMessage[0])
          case "_pdf_PageOpened":
            alert("!_pdf_PageOpened!\n" + aMessage[1]);
            break;
    I'm using hostContainer.postMessage on Page/Open event and it works just fine when the event(action) is manualy attached.
    My question is:
    How to attach the Page/Open event on every page in the PDF file using script that runs on Acrobat Reader?
    In Acrobat Pro I can use Doc.setPageAction() but it doesn't work in Acrobat Reader that is embeded in the browser window.
    OR
    Is there any other way to report the current page number to the webbrowser for an embeded PDF?

    Hi,
    to get the current page, you can use the index of your master page ("Restricted").
    $ = $.parent.index +1
    and for the total pages use
    $ = $layout.pageCount()

  • Copying number to XBLNR field

    Dear friends,
    Is it possible to write the number which is  in PO field-VA01 screen to XBLNR field in FB02 screen..
    Thans in advance...

    Hi,
    Check in TA:VTFA
    There is field named Refernce number : Pass A there.
    FI reference number
    The reference number is a piece of additional information forwarded from SD and FI.
    If a field is not filled in the order, you can determine field contents here:
    1. A:Customer purchase order
    2. B:Sales order number
    3. C:Delivery number
    4. D:External delivery number
    5. E:Current invoice number
    If you do not make an entry and the field is not filled in the order, the billing number is adopted automatically.
    Example
    If want to link the delivery to invoices in accounting (which is necessary in the self-billing procedure), enter 'C' for the relevant invoices.
    Note
    When you are working with invoice lists, the system automatically assigns the invoice reference number to the invoice list so that all single invoices in accounting can be cleared together. You may also use the allocation number field in the above cases.
    Exception: Cancellation
    For cancellation, the table settings have priority. This means that when the setting is blank, the field is filled from the billing document
    entries.
    Please note that as of 3.0D, cancellation can no longer be controlled in copy control. This is carried out in the billing type table with the billing type of the document to be cancelled.
    Best Regards,
    Nisha

  • Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive. Help

    Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive in the Backups.backupdb folder.
    Time Machine does show the history of my Macintosh HD, but when I try to navigate to the folder I wish to restore the backup history disappears. I've been searching for answers and I have not found one that works for me.

    Time Machine only shows the current copy of the file I am trying to restore. There is none of the time machine backup histories shown. I am running OSX 10.7.5. I see the backup files on my external Time Machine hard drive in the Backups.backupdb folder.
    Time Machine does show the history of my Macintosh HD, but when I try to navigate to the folder I wish to restore the backup history disappears. I've been searching for answers and I have not found one that works for me.

  • How to find dynamically the current line number in the source file

    Is there a mechanism like __LINE__ and __FILE__ macro in C to get dynamically
    the current line number and file name of a source file?

    Don't know - but others have asked too. Have you searched the forum? For example:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=210496

  • How to get the current month number

    Hi everyone,
    Does anybody know how to get the current month number in Oracle Discoverer Worksheet calculation?
    I try to use EUL_DATE_TRUNC(CURRENT_DATE, 'MM'), but instead I got 01-AUG-00.
    If I change the data display format to MM, it will give me "08" but if I use TO_NUMBER function to convert it to number I get error "invalid number"
    Is there anyway to get the current month value in number? Thanks

    Scott,
    Thank you so much! It works perfectly! :)
    Hope you have a great day ahead!
    Cheers,
    Angeline

  • 4.0EA1 - Copy/Paste in Script Output window on Mac is not working

    I'm running 4.0.0.12 on MacOS X 10.8.4, and I can't Copy from the "Script Output" window.  What I regularly do is generate some SQL using an SQL query, so I want to copy the output and paste it back into the Worksheet so I can run it.  For example:
    select 'alter tablespace ' || TABLESPACE_NAME || ' begin backup;' from DBA_TABLESPACES;

    This is a known issue and will be addressed for the next EA release.

Maybe you are looking for