Has a document been printed

try
        job.setJobName(OSPFile.toString());
        job.setPageable(bk);
        job.print();
    } catch(Exception pe)
      pe.printStackTrace();
      return 34;
    }I'm using the above code to print a book in java. Now I want to know, if the job has been printed. After the job.print(); comand has been executed the document has been but to the printer spooler. Now I do not know I the job has been printed (Maby a user deletes the job or a error occurs).
Is there a way in JAVA to check out, if a document has been printed to 100%?
Thank you.
Martin

Hi Rudra,
Please see Perrform CHECK_REPEAT in invoice print program RLB_INVOICE.
  CLEAR REPEAT.
  SELECT * INTO *NAST FROM NAST WHERE KAPPL = NAST-KAPPL
                                AND   OBJKY = NAST-OBJKY
                                AND   KSCHL = NAST-KSCHL
                                AND   SPRAS = NAST-SPRAS
                                AND   PARNR = NAST-PARNR
                                AND   PARVW = NAST-PARVW
                                AND   NACHA BETWEEN '1' AND '4'.
    IF *NAST-VSTAT = '1'.
    REPEAT = 'X'.
    ENDIF.
  ENDSELECT.
Please pass this REPEAT to your Samrtfunction module .
In Smartform please set a condition as REPEAT = 'X'. then print text elemen "reprint".
Hope this will help you.
Lanka

Similar Messages

  • Determine the number of times the document has been printed

    Hi all,
    I have a form here ( SAPSCRIPT), there is certain field to show how many times the document
    has been printed, i use NAST-ANZAL, but it seems to display no correct value.
    Am I using the riht field anyway? Or missing something?
    Thanks ,,
    AUD

    Hi,
    Check for the field NAST-VSTAT.
    IF NAST-VSTAT = '1' meaning that document  is printed.
    Refer below example from NAST entries.  4000010000 document is printed 4 times.
    OBJKY                          KSCHL SPRAS PARNR      PARVW USNAM        VSTAT
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    4000010000                     ZSGI  E                      XXXXXXX                              1
    4000010000                     ZSGI  E                      XXXXXXX                             1
    Rgds,
    Arun

  • Is it or has it ever been possible to select multiple PDF's and print into a single print stream using Reader

    We have Multiple users who claim they have been able to select multiple PDF's and select print. It then would send to a single stream and end up as one document. These are reader users.
    We have tested under reader 10.1.4 and 11.0.06 and haven't been able to make it work. Has this ever been possible?

    Thanks everyone. That's what I needed to know.

  • I have a Canon imagePROGRAF ipf6450, I'm wondering if anyone has been printing on canvas?

    I have a Canon imagePROGRAF ipf6450, I'm wondering if anyone has been printing on canvas?  Also wondering how durable the ink is and whether a protective coating needs to be applied to these sorts of prints?

    Hi,
    Once I transfer the word document to the iMAC it's displayed right except that now the caps and the Tab keys don't work, which they were on the MBP.  All the word documents on the iMAC now have a problem with those keys.  I was thinking that it might just be the keyboard itself, but its odd that only two keys are not functioning and that's why I was thinking the drive was responsible.  What I didn't do was disconnect the keyboard and then reconnect it through bluetooth.  Anyway, the whole thing is strange and I have to do those two things manually and that bothers me because right now I publish books about cancer.  Thanks for the response.  It made me think a little more about the problem.

  • How to get that the invoice has been printed or not?

    Hi Experts,
    I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
    Regards,
    SURYA

    Hi Surya,
    Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
    select from z table.
    if sy-subrc eq 0.
      call "SMARTFORM_COPY"
    else.
    While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
    and after you call the smartform,
    call "SMARTFORM_ORIG"
    exporting...
    Importing...
    job_output_info = w_job_output_info
    exceptions...
    If sy-subrc eq 0.
      if w_job_output_info EQ 'X'.
        update the Z table.
      else.
        do not update the z table
      endif.
    endif. 
    endif.
    Regards,
    Chen

  • Anyone know if there's a place on macbooks that store all documents that have been printed?

    anyone know if there's a place on macbooks that store all documents that have been printed?

    http://osxdaily.com/2011/01/20/show-print-history-mac/
    Hope this helps.

  • The accounting document has not yet been created Message no. VF062

    hiii
    Iam getting error in VF02.
    Error is The accounting document has not yet been created
    Message no. VF062
    And where i can do it ?

    hi
    Go to VF02
    Open the billing document
    Enviornment -- Acc. determination analysis -- Revenue accounts and see why the accounting document is not generated
    Also, from VFX3 and select the document and release the same by clicking on FLAG and then to know the cause of
    Error
    TO know cause GOTO Tab --- NOTE and u will get the error cause
    let us know the cause then only we can be able to tell exact solution if possible.

  • Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I prin e-mails using iPad 3

    Hello, I have installed a new Laserjet Pro M1217nfl using Wi-Fi. My laptop prints everything e-mails, Word documents etc. My iPad 3 (latest issue) only prints documents using Wi-Fi so has clearly recognised the printer. How can I print e-mails? Thanks.

    In the email you want to print, on the top right there is an arrow. Click that and an option should appear that says print. That should work. Have you already tried that?

  • Number of times a service order has been printed

    Hi,
    Is there a standard report in SAP that allows you to see how many times service orders have been printed? I know you can look in the action log for each individual order and count the 'Printed' entries, but is there a more efficient way of doing this for a number of orders?
    The data is stored in table PMPL, where a new record is create every time an order is printed. Although it is possible to extract the data from here and manipulate it to achieve the desired results, is there an easier way? Preferably which end users will have access to.
    Thanks.

    Hi Richard,
    there is a report for services Tcode : MSRV1 ,
    but as per my knowledge there is no standard report to show how many orders have been printed.
    may be a program can be written which can check the field COPY_NR and give you the desired results.
    Hope this helps
    Cheers

  • Document in Printer Qeue shows deleting, but doesnt

    When in Printer Control Panel section, to remove all documents in printer qeue, document shows "deleting" but does not?  Thus printer will not print any new document

    Hi,
    From the Control Panel, open Administrative Tools and select Sevices.  Browse down to the print spooler service, right click it and select Properties then click on the Stop button.  Now browse to C:\Windows\System32\Spool\PRINTERS and delete the job inside this folder - You may need to click a prompt to gain the appropriate authority to open the PRINTERS folder.
    Restart the computer and you should find the document has been removed.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Any solution to why the first page of secure document will print, but is blank?

    Title page of a secured document is printing out blank.  The page has stamps on it and is clearly visible during the print preview before print.  Second and subsequent pages print fine.
    Unsure if some setting has been unchecked that skips printing the first page or some unknown error.
    Any help would be apprecaited.  Thanks.

    Hi Shabeaut,
    According to your description, my understanding is that you want to change the template of the root site without creating the susites in another web application.
    I recommend to export all the existing subsites and import them to new web application.
    More references:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/cc7c11ec-e4da-4ddb-babd-db76ccb35664/move-subsite-to-new-site-collection?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd321bac-16a7-47e4-842e-00b7ca0f7f05/move-subsite-to-other-site-collection-as-subsite?forum=sharepointadminprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Document Properties​, Printing Shortcuts stuck on Photo-Prin​ting Borderless​.

    I printed a picture.  Now the Document Properties, Printing Shortcuts is "stuck" on Photo Printing Borderless.  I have to enter Properties and click on "General Everyday Printing" each time I print.  Defautl has been General Everday Printing for years.  What happened?  Thanks.

    Vja, sorry to hear you are having trouble! If you could provide some more information the community may be able to assist you better. The following items would be extremely helpful to help diagnosis your issue:
    Printer Model:
    Operating System:
    What applications you are printing from:
    These items will help other narrow down the issue and be able to provide better support. 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • PDF Complete has taken over my printer

    I just purchased a Pavilion p6-2127c computer, running Win7, and an HP Photosmart 6510 printer.  Everything has been working great, up until PDF Complete installed.  I don't want to uninstall it, but it's now taken over my default computer such that it is now called "PDF Complete", and anything I try to print, it's trying to turn into a .pdf.  How do I make this stop?  I just want my printer to be my default, plain old 6510 printer.  Help, please.  

    It sounds like the PDF Complete program has become the default printer.  This can easily be changed as long as the printer is currently installed on the computer.
    Click on Change your default printer to view a video and to get steps on how to change the default printer.
    Essentially, you will need to do the following steps that are listed in Microsoft's document:
    1.  Go to Start>Devices and Printers
    2.  Right click the printer and select Set as Default Printer.
    This should now put the check on your printer instead of PDF Complete.  
    Alternatively, you can manually select your printer when printing.  I do not recommend this approach as it can be cumbersome, but it can be helpful to know how to when you want to print to something other than the default printer.
    When you select print, you should get the following window (photo provided by Microsoft):
    You would click on what it is you want to print to.  For example:  If your printer was set to default and you wanted to save it as a PDF, you would select PDF Complete to accomplish this task without changing what the default printer is.
    Both of these options will work, but I recommend setting the printer as the default and just choosing PDF Complete manually when you want to save as a PDF instead.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Border getting added to PDF document when printing using ePrint

    We have HP LASERJET PRO 200 COLOR MFP M275nw printer. We are using the Version 2.3.1 of the HP ePrint Android application to print a PDF document from an Android tablet. When document gets printed, it has borders all around and the document. Because of this the document appears "shrunk". If we use Adobe Reader application on PC and print the document at "Actual Size" then no borders get added to the document and the document appears to be printed at exact scale. Is this a limitation of the printer or a bug in the ePrint application. Is there a HP printer (other than what we are using) where using ePrint application we can print "borderless" PDF documents from Android tablet?
    Sanjay

    SanjayDandekar wrote:
    ..  When we print from Android, it adds borders.
    Hi,
    You have to wait for Android (Google) or HP to produce an app which can print borderless.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Document in printer will not cancel so that I can print other things

    My HP Deskjet 1000 printer has a document that keeps showing "deleting", but which I am unable to cancel when I right click under Status in Settings. I am therefore unable to print anything new or to retry to print the original document. I was able to cancel the other documents I tried to print, but not this one. It simply keeps saying "Deleting...: but won't cancel.  Please help if you can, as I really need to use the printer!  Thank you.
    This question was solved.
    View Solution.

    Hi,
    I think you need to remove the queue. For Windows, please try:
        hold down the Windows key and press R.
        from the Run window, type services.msc and hit enter.
        if the machine asks for Admin you have to accept this,
        look down to the print spooler service, right click it and select properties
        click on the Stop button,
        browse to C:\Windows\System32\Spool\printers
        delete the job inside this folder
        reboot the machine
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • While checking for updates

    While trying to check for updates in the Mac store I get this message. Error has occurred. The request has timed out. When I click ok its says no updates avalable.

  • BAPI_MATERIAL_SAVEDATA  how to ADD a Plant and CHANGE Sales Org. info

    Hello All, I got a working version of the BAPI Changing some data, and i need to take it to the next level. In some cases I want to ADD a new plant to an existing material. I filled the Sector, Type and Materialnumber in the BAPIMATHEAD and added the

  • Can I use an external drive as my main drive?

    My hard drive just died and I can't purchase a new one for about a month (I'm living in a mac-unfriendly place at the moment). Here are my questions: 1. Can I install an OS on my external Maxtor drive and use it as my main hard drive? Even with a dea

  • Printing from InDesign Poor; From Photoshop Good

    I have some images, that I converted to B&W in Photoshop. If I print them (samsung clp-315), from Photoshop CS2, they look great. I saved them as TIF files and imported them into InDesign CS4.  This is my first book layout. I printed them to see how

  • Consuming Webservices

    I have a webservice that I know is valid. It passes the xmethods wsdl validator http://www.xmethods.net/ve2/Tools.po But it fails whenever I try to invoke it with coldfusion. The wsdl is http://acswebapplications.acs.org/portaltools/ACSIntegrationLay