SAPScript - number of copies

Hi all,
I'm trying to print out a text depending om the number of copies.
If users selects to print 2 or more copies, I want to write text "<i>ORIGINAL</i>" in the first copy, and for the following copies I want to print "<i>COPY</i>".
How can I manage this request?
thanks in advance

What about reprints? 
If someone selects 3 copies, and then two days later print another 3 copies.... what should happen?
Is only the first printout ORIGINAL and the other five COPY?  Or is the first printout of each group ORIGINAL?
All I can think of is doing a PERFORM in SAPscript. 
You would pass the document number and output type as a key. 
The CHANGING parameter could be the text string (COPY or ORIGINAL).
When the PERFORM is called in the MAIN window (above any text elements), search the NAST table for the key. 
If you find a successfully printed document with this key, set the string for COPY.  You have to check the status flag in NAST to make sure it is already printed.
If you do not find an entry in the NAST table, go to a second step.
IMPORT a value from FROM DATABASE using the key (document number and output type).  If not found, it is the first copy of the first printout.  EXPORT TO DATABASE to capture the status of the second printout in the next IMPORT step.
Does that make sense?

Similar Messages

  • SAPSCRIPT - number of copies prining only one

    Dear all,
    Developed a script.
    OPEN_FORM
    WRITE_FORM
    CLOSE_FORM
    I am not passing ITCPO structure in OPEN_FORM.
    On execution In print parameter screen i am giving number of copies as 5. but its printing only one.
    what might be the issue.
    Regards,
    Kannan N

    Hi Kannan,
    During the call of function module OPEN_FORM you may transfer the
    structure ITCPO to the parameter OPTIONS and set ITCPO-TDGETOTF = 'X'.
    The result is that no spool request is created, but you get the
    OTF data during the call of the function module CLOSE_FORM
    via the parameter OTFDATA (see the documentation of CLOSE_FORM
    for more information). In addition CLOSE_FORM gives you the
    structure ITCPP in the parameter RESULT. ITCPP-TDCOPIES is the
    number of copies. After this you can print the OTF data via
    the function module PRINT_OTF. You can call PRINT_OTF
    e.g. seven times to get a spool request with seven copies.
    Regards,
    David

  • Is there a limit to the number of copies you can make at one time.

    I was in the process of making 20 copies of my video, I manage to get 8 copies when my computer said it had to turn off due to an error.  Now I am unable to make copies because that same message keeps appearing.

    dialbarclay
    What version of Premiere Elements are you using and on what computer operating system is it running?
    What are you making copies of..... burn to DVD, Blu-ray, or AVCHD and presumed in the Premiere Elements 11 Publish+Share/Disc/ with number of copies indicated in the burn dialog?
    In the past, making disc copies by that process was a hit or miss proposition. If I were you I would consider making exact copies using the software that came with your Blu-ray DVD burner. or DVD/CD burner.
    Is your computer optimized?
    ATR

  • ABAP Forms - Number of Copies

    Hello,
    I am having problems with a form that I created in SAP.  The form is for a barcode label.  The only contents of the form is a text include and a call to an external report that pulls in data.  When I call the form from a program that I wrote it always prints two copies.  However when the form is called via MIGO, it only prints one copy.  Does anyone know what could cause this?  I have looked at the number of copies field in the itcpo that I pass the OPEN_FORM function routine.  Any help would be appreciated

    Hi Ryan,
            Since you are getting two copies of same output, right. I suggest you to run the program in debug mode to see what actually happens during run time. Check simultaneously the way the program runs and the status of the list where the contents gets printed. You may come up with a solution. For debugging check this thread...
    Re: DOCUMENT_NOT_FOUND
    Hope this helps.
    Kindly, Reward points if it helps by clicking the star
    in the left hand side of the screen.
    Regards,
    Maheswaran.B

  • Acrobat 9 Pro - Print Number of Copies

    At times I want to print to paper 2, 3, or 4 copies of the same document.  With the printer window opened, it allows me to select the quantity, but when I click OK to proceed to print I received another popup window reading:
    The printer cannot support this many copies.
    Number of copies will be set to printer maximum of 1.
    What/Where/How do I find the setting to resolve this issue?
    VAIO NOTEBOOK
    MS WIN VISTA HOME PREMIUM SP2
    MS OFFICE 2007 SP2
    ADOBE ACROBAT 9 PRO (9.1.1)
    BROTHER MFC 9800
    Adobe Tech Support REFUSES to provide any support for my 1-month old AUTHENTIC, activated and registered product !!!

    Bill...  do not misunderstand my words as your views are not my intentions.  Take into account, there is a difference between asking the OP, "Have you checked the Print Drivers", and or, "If so, what did you learn?"; rather than telling the OP what the issue is before all facts are gathered, then becoming defensive or insulted.
    Example:
    I am cooking.  I taste the food and say, "Something doesn't taste right.  You say, "You didn't add salt".  I respond, "I did, it's not salt, it must be something else".  Instead of asking first if I added salt, or offering another suggestion, you are insulted and or become defensive.  Case in point.
    I hope this cleared up your unjustified comment.
    Back on subject:
    I posted the screen-shot on the fly and first time using this forum and its UI.  When it is clicked on, it expands (as you saw).  After it expands.  Change the "Zoom Level" on your screen to find the correct resolution.  Hint - It tells no more than the words in my original post.
    Thanks for your help.  I'm going to sleep before the sun comes up.  Have a happy Sunday.

  • I need to print with a number of copies set

    Hi im trying to print with number of copies set but it dosent work.. I tried it on 3 different printers.
    It only print 1 copie when i say 2 or 3 or 4...
    (aset.add(new Copies(2)); )
    Is there something missing in that code...
    thanks
    Here is my code.
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.Copies;
        public class Print {
            public static void main(String[] args) {
                try {
                    // Open the image file
                    InputStream inputStream = new BufferedInputStream(new FileInputStream("c:\\coupon.txt"));
                    // Find the default service
                    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                    PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
                    aset.add(new Copies(2)); // Dosent work only 1 copie is printed
                    // Create the print job
                    DocPrintJob job = service.createPrintJob();
                    Doc doc = new SimpleDoc(inputStream, flavor, null);
                    PrintJobWatcher pjDone = new PrintJobWatcher(job);
                    // Print it
                    job.print(doc, aset);
                    // Wait for the print job to be done
                    pjDone.waitForDone();
                    // It is now safe to close the input stream
                    inputStream.close();
                } catch (PrintException e) {
                    System.out.println(e);
                } catch (IOException e) {
                    System.out.println(e);
        }

    Same problem here. I have found hundreds of questions in several places, but no answer.
    Problem is that when I set the copies, PrintServiceLookup.lookupPrintServices returns no results.
    Please help.

  • How to ask for a number of copies in Finder Print?

    How to ask for a number of copies in Print Finder Items? Thanks.
    iBook G3 700   Mac OS X (10.4.8)   Still running a paperless office on my iBook! 120gig, 640RAM, 1440 x 900 2nd monitor! 500gig FW-HD!

    Here is a script that will create a "Run AppleScript" action in Automater that should do what you want. Just click on the link and hit the Run button in Script Editor.
    I wanted to get this too you fast so there is no error checking on the text entered into the dialog. Let me know if you want it added.
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">
    tell application "Automator"
    make new workflow
    -- Action 1
    add Automator action "Run AppleScript" to workflow 1
    set value of setting 1 of Automator action 1 of workflow 1 to "on run {input, parameters}
    tell application \"Finder\"
    activate
    set theFiles to input
    display dialog \"How many copies do you want\" default answer \"1\"
    set NumberOfCopies to text returned of the result as integer
    end tell
    repeat with aFile in theFiles
    repeat with j from 1 to NumberOfCopies
    tell application \"Finder\" to display dialog \"Printing copy \" & j & return & aFile giving up after 2
    tell application \"Finder\" to print aFile
    end repeat
    end repeat
    return input
    end run"
    end tell</pre>
    PowerBook 12"   Mac OS X (10.4.8)  

  • Number of copies with setCollated does not work if PageRange is not set

    I have a report which results are printed on 2 pages. If i set PrintReportOptions like below:
    PrintReportOptions printOptions = new PrintReportOptions();
    printOptions.setPrinterName( targetPrinter );
    printOptions.setNumberOfCopies( 2 );
    printOptions.setCollated( true );
    printCntrl.printReport( printOptions );
    I get ONLY one copy, other pages are not printed.  So instead of getting 2 x 2 pages with order 1,2 1,2 i am getting only 1,2 so it seems that number of copies is not interpreted.
    When i  add a setup of a page range - everything works as excepted.
    PrintReportOptions printOptions = new PrintReportOptions();
    printOptions.setPrinterName( targetPrinter );
    printOptions.setNumberOfCopies( 2 );
    printOptions.setCollated( true );
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange( 1,  2 );
    printOptions.addPrinterPageRange( printPageRange );
    printCntrl.printReport( printOptions );
    But how can i find on how many pages report will be printed? - it's impossible. I thought that maybe i can set 100 as the upper limit of range but this doesn't work. The page range must be less or equal to the number of pages on which report will be printed.
    When I am not using method setCollated or use it with false  report is printed on desired number of pages and with expected amount of copies.  ( in order 1,1 2,2 ) . Here is the code:
    PrintReportOptions printOptions = new PrintReportOptions();
    printOptions.setPrinterName( targetPrinter );
    printOptions.setNumberOfCopies( 2 );
    printOptions.setCollated( false );
    printCntrl.printReport( printOptions );
    I suspect that this is a bug of CR Java runtime. If so, when we may expect that it will be fixed?

    Hello.
    I tested with the latest version of the Crystal Report runtime libraries (version 12.2.211) and it works for me as expected.
    What I would suggest is that you test your application using the latest version 12.2.211 and see if this resolves the problem.  Since it works for me on this latest version, I would expect that it would work for you as well.  The latest version can be found at the following link under the section "Runtime Libraries":
    http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp
    A direct link to the zip file that contains the runtime components can be obtained from the following link:
    http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/crjava-runtime_12.2.211.zip
    If you are still experiencing problems after using the 12.2.211 runtime components, then maybe it is the case that your printer driver is causing an issue.  The printer that I printed on is "HP Universal Printing PCL 5 (v5.1)".
    I hope that updating the Crystal Reports runtime version to the latest resolves your problem.
    Best of luck.
    Regards.
    - Robert

  • GR slip - Number of copies to vary based on Country key

    Hi,
    We are a multinational company and we have a requirement related to GR slips. The number of copies of GR slip printed should vary based on the country key, where the user is printing the GR slip....for e.g. if it is US then it should be 3 copies, Germany should be 5 and so on.
    So the same form has to be printed, only the number of copies varies....based on the country where it is printed.
    How to accomplish this. We are using Inventory Management Output determination, with Output type WE03. Please help.
    Thanks !

    Hi,
    See if country key can be added to the condition table and insert it in the access sequence.  Define exclusion check box by maintaining this access as the first in your access sequence.  When you maintain condition record for country as one of the parameters, make your number of copied in its communication data as you wish.  It should print based on country key, the number of copies...
    Regards

  • Setting the number of copies to be printed through crystal reports?

    I posted this in another section and got redirected to this one. 
    So I'm working with some software that utilizes Crystal Reports 10, and am looking for a method where through Crystal Reports I can take a user entered parameter value and set that as the number of copies for the printer to print. This isn't an option in Crystal Reports itself, so I understand I may need to dig a little deeper and write some customization to accomplish this.
    I've been building Crystal Reports for about two years now, all self taught, but have never had to go this far, where/how would I start on this? And I tried searching for a similar question in these forums to see if it's come up before but couldn't find anything. I'm kind of stuck at the moment because I can't alter the software that's using Crystal Reports to set number of copies, so I want to see if I can do anything in Crystal.

    Really, this is actually more of a report design question, though I understand why they's ask you to post here also.
    Anyhow, I think what you are asking is; can I design a report such that it will internally hold how many copies it should print(?).
    Answer to that is no.
    Only way to do multiple copies would be to modify the app you are working with. E.g.; go to the authors of the app and ask them for an enhancement to their product so that you can print multiple copies.
    - Ludek

  • Again about t.code MN05: number of copies of MM documents printed

    Hi all,
    by t.code MN05 I can set the number of copies of the MM documents printed the FIRST TIME. I can do it for doc.type or vendor.
    In particular, setting for document type, it doesn't work for all range of vendors.
    Setting for document type, in the field "PartF" I've put in "OA". Could it depend on it?
    Thanks
    Gandalf

    Hi,
    Please select VN and check
    Select Key combination as document type and co code
    regards
    suresh

  • Default number of copies

    I have an app on my Galaxy Tab 2 7in that prints using ePrint. Can I set ePrint to print 2 copies automatically? Either through some info the app sends or in the ePrint app?

    Hi Beachcombers,
    I understand that you want to print multiple copies of an ePrint job. 
    If you've downloaded the Hp ePrint mobile app once you select print in the top right corner you can select number of copies to print under settings.
    Hope this helps.

  • Change number of copies in preamble?

    Hi,
    I am a relative novice with Jetform, I use it occasionaly to make minor modifications to our forms but for the most part the standard prepackaged forms our vendor provides us do the trick.  We have run into a new issue that I was looking for some guidance on.  We print a shipping label for some of the goods we sell to our customers, this shipping label needs to go on each package the goods are shipped in.  Example,  a customer purchases 100 widgets, we ship them 10 each in 10 different boxes requiring 10 labels with a quantity of 10 printed on each.  Unfortunatly the customer needs to buy the item by the each so our erp application will tell jetform to print 100 labels and there is no way to modify this without expensive custom programming.  What I can do is add the pkg qty to the datastream to print on the label, this is easy enough but that still leaves me with 100 labels each with a qty of 10 printed.  Would it be possible to divide the package qty by the number of copies sent from the application in the preamble of the form and make that the new number of copies or is it already to late by the time the dat file is accepted by the output server?  Thanks in advance for any advice, this is killing us ! thousand of labels end up in the trash every day.
    Thanks ! Aseidas

    Does anyone have any advice input?  Things are getting desperate, Thanks !!

  • SMARTFORMS number of copies

    Hello.
    I'm producing a simple smartform from MIGO (good receipt).
    In the initialization of the smartform I'm setting the fields output_options-tdcopies to 2 in some cases.
    I can see in debug mode that this value is being perfomed correctly.
    Although - when the print windows appears, it shows the default value for number of copies "1".
    How come ?
    Thanks.

    Hi,
    Do you use Frontend printing?
    If so, ensure that the option "use_copies" is set to '0' in the resgistry of the Frontend PC as described in SAP Note #1149136.
    Regards,
    Aidan

  • Set number of copies to print

    Hello,
    We're using Adobe Lifecycle Designer 8.0 and we've the requirement to print copies of our generated pdf delivery form.
    Does anyone know how to set the number of copies dynamically at runtime ? Maybe by using java script  ?
    Thanks in advance !

    Yes, I know OPK8 is used to set number of copies for CO04. We set it to 1 as I mentioned. That is what is needed when the user executes CO04 directly. My question was is there a way to dynamically change the number of copies when running CO04 via creating a BDC (or call transaction) from a custom process, because then we will need more than one copy.
    I am resigned to calling CO04 in a loop for the number of copies I need.

Maybe you are looking for

  • How to Add a New CGI-Handler to Web Server?

    I need to setup a website that will have pages coded in "LiveCode" (http://livecode.com/), an English-like scripting language, that can be used as an 'easier-to-program' replacement for PHP. It has its own interpreter ("livecode-server"), which is su

  • Backup set /piece info

    Hi, Application guy deleted few rows. So I am asked to do tablespace point time recovery in 11.2.0.3 on aix using old backup(two week before taken). I would like to check how many backup set and piece name in a L0 backup.Is there any query? Most of t

  • TS2634 My sound not working on FaceTime

    People can't hear me during FaceTime . I can hear them

  • Flash CS3 Crashes on New File

    Adobe's Flash CS3 installs fine with no problems, and the program runs (ie: It opens up without any visible problems.) But when I go to try and create a new file to begin a project the program crashes. The error window reads: Flash.exe Application Er

  • Is there a way to cleanup your imac like doing a disk cleanup on a pc

    My iMac has been a little slow lately and I've even had software that won't respond. With my PC I would do a Disk Cleanup. Is there something similar that I should be doing with my Mac?