Printing Status in PO Document

Dear expert,
How to give printing status "ORIGINAL" for the first print, "REPRINT 01" for secound print etc, in PO document if i have Z sapcript which assign in standard program (SAPFM06P) ?
Thanks before.
- ely -

Hi Anji...thanks for your replay, but i will clarify about my question before.
here the code that I used to give printing status :
FORM f_cetakan_ke TABLES in_tab STRUCTURE itcsy
                        out_tab STRUCTURE itcsy.
  DATA: ld_data LIKE zlog_print_po,
        ld_ebeln LIKE ekko-ebeln,
        ld_aedat LIKE ekko-aedat,
        ld_newdt LIKE sy-datum,
        ld_newtgl LIKE sy-datum, 
        ld_cetakan(11).
  DATA: ld_nast_sc LIKE nast.
  DATA: ld_nast LIKE nast.
  LOOP AT in_tab.
    CASE in_tab-name.
      WHEN 'EKKO-EBELN'.
        ld_ebeln = in_tab-value.
      WHEN 'EKKO-AEDAT'.
        CONCATENATE in_tab-value6(4) in_tab-value3(2) in_tab-value(2)
               INTO ld_aedat.
      WHEN 'NAST-KAPPL'.
        ld_nast_sc-kappl = in_tab-value.
      WHEN 'NAST-OBJKY'.
        ld_nast_sc-objky = in_tab-value.
      WHEN 'NAST-KSCHL'.
        ld_nast_sc-kschl = in_tab-value.
      WHEN 'NAST-ERDAT'.
        CONCATENATE in_tab-value6(4) in_tab-value3(2) in_tab-value(2)
               INTO ld_nast_sc-erdat.
      WHEN 'NAST-ERUHR'.
        ld_nast_sc-eruhr = in_tab-value.
    ENDCASE.
  ENDLOOP.
  SELECT SINGLE * FROM zlog_print_po INTO ld_data
      WHERE ebeln = ld_ebeln.
  IF sy-subrc = 0.
    ld_data-cetak = ld_data-cetak + 1.
    CONCATENATE 'Re-print' ld_data-cetak INTO ld_cetakan
               SEPARATED BY space.
  ELSE.
    ld_data-mandt = sy-mandt.
    ld_data-ebeln = ld_ebeln.
    ld_data-datum = sy-datum.
    ld_data-uzeit = sy-uzeit.
    ld_data-uname = sy-uname.
    ld_cetakan = 'Original'.
  ENDIF.
  IF ld_data-cetak GT 2 AND ( sy-ucomm NE 'PREVOUTPUT' AND
     sy-xcode NE '9ANZ' AND sy-xcode NE '9DPR' ).
    SELECT SINGLE * FROM nast INTO ld_nast
        WHERE kappl = ld_nast_sc-kappl
          AND objky = ld_nast_sc-objky
          AND kschl = ld_nast_sc-kschl
          AND erdat = ld_nast_sc-erdat
          AND eruhr = ld_nast_sc-eruhr.
    ld_nast-vstat = 2.
    MODIFY nast FROM ld_nast.
    MESSAGE e000 WITH 'Print PO form just allow 3 times.'.
  ENDIF.
IF sy-ucomm NE 'PREVOUTPUT' AND sy-xcode NE '9ANZ' AND
     sy-xcode NE '9DPR' .
    MODIFY zlog_print_po FROM ld_data.
  ENDIF.
  LOOP AT out_tab.
    CASE out_tab-name.
      WHEN 'D_CETAKAN'.
        out_tab-value = ld_cetakan.
    ENDCASE.
    MODIFY out_tab.
    CLEAR out_tab.
  ENDLOOP.
ENDFORM. 
and the problem occure when PO document which I printed more than one page where the program will count every page.
example :
there are 3 page of PO document will be printed for the first time, should be this document have status "ORIGINAL",
but with my program this document have an status "REPRINT 02" what wrong about my program ?
Note : I used standard program SAPFM06P and Z sapscript than this routin called from Z sapscript.
Thanks.
-ely-

Similar Messages

  • Print Status On AR Invoice

    Hi All,
    I need to create a UDF that will display the documents print status.  I have created the UDF and now I need to create a query that will look at the document number and then the print status and based on that return a yes or no value in my UDF for printed or not printed.  Problem I have here is that I don't know how to refresh this field regularly as you will only look at the print status once the document has already been added to the system therefor when you go back to the document nothing is really refreshing.
    Could somebody please explain to me how I could get this to work and also what query can achieve this.
    Any help will be greatly appreciated.

    Hi Verburgt Quinn,
    You could create a query like this and set it to refresh based on Document Number field.
    SELECT T0.[Printed] FROM OPCH T0 Where T0.DocNum=$ OPCH.DocNum
    This query is for A/P Invoice and change the table to the required one.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • Additionall status for closed document if it was printed

    It would be great to have additional Status for closed document if it was printed e.g. Closed - Printed. The same way as it is when a document is opened and printed (Open - Printed). Now if the document is paid user doesn't know at the first look if it has been printed or not. User has to look at the print preview to recognize this.

    Try moving the Catalog to a different location, preferably to the location that you normally keep it in.  Then double click on it and it should open.
    It is important to keep several backups of your catalog, and your images.

  • Function for getting status of a document(vbeln)

    Hello,
    i am creating a report showing the list of sales order. I also want to show the status of each document(vbeln). Is there any SAP function which returns the stauts of a document(vbeln).
    Thanks for yur time.
    Shehryar

    <b>RV_ORDER_FLOW_INFORMATION </b> Reads sales document flow of sales document after delivery and billing  ExampleO
    Don't forget also check direct reference documents for the both starting document # and preceding/following document types that you are searching for (For example, if you search delivery for the given SO, check also LIPS-VGBEL and LIPS-VGPOS, if it's possible with regard to performance). 
    V45A  SD Functions for Copying Documents  SD_SALES_DOCUMENT_READ   Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties) 
    SD_SALES_DOCUMENT_READ_POS   Reads sales document header and item material: tables VBAK, VBAP-MATNR 
    SD_DOCUMENT_PARTNER_READ   partner information including address. Calls SD_PARTNER_READ 
    SD_DETERMINE_CONTRACT_TYPE   In: at least VBAK-VBELN
    Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT 
    SD_SALES_DOCUMENT_COPY  copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating. ExampleO - create subsequent document 
    SD_SALES_DOCUMENT_SAVE  create Sales Doc from the copied document 
    V45K  Sales Order Processing Functions  SD_SALES_DOCUMENT_ENQUEUE   to dequeue use DEQUEUE_EVVBAKE 
    V05I  SD Index Update  SD_PARTNER_READ   all the partners information and addresses 
    V05O  SD Data Collection for Dlv Note Printing  RV_DELIVERY_PRINT_VIEW  Data provision for delivery note printing  
    SD_PACKING_PRINT_VIEW   
    SD_DELIVERY_VIEW  Data collection for printing  called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW 
    V05N  SD Data Collection for Bill Doc Printing  RV_BILLING_PRINT_VIEW  Data Provision for Billing Document Print

  • Printer status is not available at this time

    Hello,
    I'll try to show how the company's environment is. We have a Windows Server 2008 Standard
    edition which is our File server and Print Management as well. We have a total of 5 deployed
    printers and all of them except 2 work really well. These 2 printers are exactly the same
    "Phaser 8560 Xerox". All drivers are placed on the Server, so all computers download the
    drivers whenever They need it for a specific printer. Example: a new employe wants to
    print something on the Phaser 8560 printer but his/her computer doesnt have any drivers
    installed. The installation is easy: Start>Settings>Printers>Add Printer>Network Printer option>Find a printer in the directory>Look for Phaser and add it. When I choose the printer and press ok it takes like 20 seconds to get the driver from the server and its all done.
    Here is the problem:
    Whenever I try printing something on the Phasers It does print but a message:"Printer status is not available at this time" pops up right away. The process of printing works but the message keeps coming up. We have almost 150 computers and all of them show the same message. We have the latest drivers in the Server.
    With the old driver this message didnt use to show up, so I guess the problem is the driver.

     
    Hi,
    Thank you for your update.
    As far as I know, PrintingScout is feature of Phaser 8560 printer. It alerts you when print jobs are interrupted and suggests appropriate remedies. When you send a document to the Phaser 8560, the Xerox-exclusive PrintingScout utility monitors and reports any printer condition that might prevent a print job from completing successfully. A pop-up help window provides appropriate how-to instructions, illustrations and links to help the print job owner quickly identify and resolve his or her printing problem. This way, when end users must visit the printer, they are completely prepared to fix any problems. Since you don’t find the PrintingScout button, I suspect that you should uninstall the print driver and update the proper driver from the following link.
    Phaser 8560 Drivers and Downloads
    http://www.support.xerox.com/go/results.asp?Xlang=en_US&XCntry=USA&prodID=8560&ripId=&Xtype=download
    In addition, you may refer to this article about PrintingScout feature.
    http://www.office.xerox.com/latest/85AEG-01.PDF
    Regards,
    Nick Gu - MSFT

  • How  to  get the print  status

    Hi  all
    After  the  output  is  displayed  with  ALV ,I  have  the  following   requirement
    A status field will be found at the end of the row and will reflect the current status of the print documents.  After printing occurs, the screen should refresh and processing status reflected to show post-print status.  The user will then be able to see what documents printed immediately.  Any documents that did not successfully print will need to be reprinted through the .PDF files stored in the shared directory.
    I  am  unable  to   proceed  further
    Pointers  would  be  helpful
    Thanks  in  advance
    Regards
    Nikhil

    Nikhil,
    Try going through this table TSP02L.It may give you some lead.
    As well as go to  DD02T table and  give  as spool in DDTEXT field so that you will be able to see all the spool related tables.
    K.Kiran.

  • HP Officejet Printer Status

    HP Officejet Printer Status - ERROR PRN  - does any one know how to fit.

    Hi @crui ,
    Thank you for visiting the HP Support Forums and Welcome. I have read about your HP Officejet Printer and an issue with printing. Here is a link to the HP Print and Scan Doctor. The HP Print and Scan Doctor will run a check on your system and the printer.
    Are you getting an error message on the display panel?
    Plug the power adapter directly into a functioning wall outlet. Do not plug it into a power strip, surge protector, or secondary power source. Unplug the printer from the power and press the power button several times while it is unplugged. Here is a document that gives you steps to follow.
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Office Jet 5740 Printer Status Report

    What are the meanings of Items 25,26,27,28,29,30,31, 32 , 45,46,47  in the Printer Status Report ?

    Greetings , I would be more than happy to help you by explaining the lines on your printer status report. 
    Since every printer report is slightly different for each model, just so I can be exact, would it be possible for you to scan the page and send it to me in a private message? On most reports, most of the line numbers you have listed are related to the fax setup. Since I don't have your exact printout, I used this example report as reference from this document; Officejet 5740 - An 'Out of Paper' Message.
     The lines on this report are showing: 25= Fax Forwarding ... Forwards your fax to another number (just like call forwarding) 26= Auto Answer ... Whether or not the printer automatically answers the incoming call 27= Rings to Answer ... The number of rings the fax machine waits to answer the incoming call 28= Distictive Ring ... A distinctive ring service allows your phone system to add another phone number to the same phone line. When a call comes in on the distinctive ring number, the telephone rings with a ring sequence that is different than the standard ring tone. (Note: This  is a service setup through your phone provider) 29= (ECM) Error Correction Mode ... I recommend reading this Enabling or Disabling Error Correction Mode (ECM) 30= Fax to PC ... Settings related to receiving you faxes digitally on your computer 31= Faxes Sent ... total faxes sent from your printer 32= Faxes Received ... total faxes received on your printer ** You can learn more about your fax setup here; HP Printers - Sending and Receiving Faxes, or from the HP Officejet 5740 e-All-in-One series User Guide.  Lines 45,46,47 - I'm unsure because the example I have is not showing these lines. Again, if you could scan your report and send it to me in a private message I should be able to clarify those final lines. Here's how to send a private message if you need it. I look forward to hearing from you!   Thanks, 

  • Lion server: Unable to get printer status

    I am attempting to connect a shared printer to my Lion server (for the purposes of printing documents from the server). The printer is connected to an iMac running Lion via USB and printer sharing is on. Other computers on the network are able to add and print to it fine.
    The printer adds to the printer list without issue, but when I attempt to print a document, it shows "Unable to get printer status" in the queue.  I've added/removed and reset printing system many times, but still no luck. I've also re-downloaded printer drivers from Apple and restarted the system.
    Any ideas to get this working? Thanks.

    Hi Mike,
    One think I really dislike about OSX is the Rocket Science needed to just Print!
    Might try these two...
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    Might try Printer Setup Repair 5.1...
    http://www.fixamac.net/software/index.html

  • Smartform Print status

    Hello Experts,
    When i print my PO(me23n) smartform i need to display the print status as Original or Re-Print.
    if it has already printed then it should show RE-PRINT on the top corner of the SMART FORM Printout.
    Can any one suggest me how to check the status of the printed documents and display accordingly
    i.e Original or REPRINT.
    Thanks
    Dan

    >
    Dan wrote:
    > I am querying NAST table for NAST-MANUE field.
    > If NAST-MANUE = SPACE.
    > i am displaying is as a ORIGINAL (1st time)  .
    > Is this correct?
    Well, this is not entirely accurate. This field simply means that an entry was created manually by the user. This could be a copy and could be an original if, for example, a condition record was missing and a user created the output manually. However, in about 99% of the cases this will be the correct assumption.
    The suggestion to use ANZAL is completely wrong. This field is simply for the number of copies to be printed. Could be 3 on the first run and 1 on the second, you never know.
    In the invoice form interface SAP added a standard parameter IS_REPEAT to handle this. Check if it is available for the purchase order.
    Actually the whole original/re-print thing is kind of shady. For example, there could be a printer jam and the users would have to re-print to get an original. How would you handle this?

  • Why printer status is always ''offline''

    hi,
    my printer hp officejet pro 8600 (network) cannot print for two days.  printer status is always show as ''offline''.
    thanks

    Hi anil-jing,
    I can help you with the offline message you are seeing. Please use the instructions in the following document to troubleshoot the issue and get the printer working again. 'Printer is offline' Message Displays on the Computer and the Printer Will Not Print.
    Please let me know if this resolves the issue. If you require additional assistance, post back with your operating system and version, Mac or Windows, as well as whether you have the printer setup wirelessly or with a USB.
    I look forward to hearing from you.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Leveraging Workflow Approval status in Word document

    I am using SharePoint 2013 and have created an Approval workflow that works as expected.
    I would like to leverage the Approval Status within the document so that if someone views or prints the document, it will show "Pending" or "Approved" depending on where in the approval process the document is.
    Once final approval has been made, I would also like to display within the document (e.g. cover page) the name of the approver, the date the approval occurred.
    Would I have to use a Lookup column and point that to something?

    Hi,
    According to you description, my understanding is that you want to create an approval workflow which is able to set the status and approved time and the approver in the document.
    Per my knowledge, there is no OOTB way to achieve your request. As a workaround, you can set this in document library. If someone views the document library, it will show the status and approved time and the approver in the document.
    You could create a workflow using SharePoint 2010 platform in SharePoint  2013 Designer:
    Create a date column named “Date” and a person column named “Approver” and a Single line of text column named “MyStatus” default value is “Pending” in library.
    In SharePoint Designer 2013 using SharePoint 2010 platform ,select “Start Approval Process” action, set the user.
    Add action “set [Date field] to [Today]”, in Approval -> Change the behavior of the overall task process in Customization field -> in When the Task Process Completes field, shown as figure below.
    Add action “set [Approver] to [Current Task:Assigned To]”, “set [MyStatus] to [Approved]”in Approval -> Change the behavior of a single task in Customization field -> in When a Task Completes field. The steps are similar as above.
    Then you can show the library content type column value in document template via “Quick Parts”,  access library settings -> Advanced settings -> click Edit Template, in Insert tag -> Document Property -> insert column you want, shown as
    figure below.
    Thanks,
    Dean Wang

  • How can I print ONLY the active document?

    Whenever I go to File/Print the darn PSE 9 program sends all of the working files in the bin to the printer. I've searched online for 2 hours now looking for an answer.
    I like to work with having several to many files in the 'bin' and prefer to only print the active file I'm currently working on without having to close the 'working files' before I can print. How can I print ONLY the active document or file in the project bin? Please help, I've upgraded from PSE 3 to PSE 9 and really like the updated features, but this one pain in the neck default is getting the best of me.

    Thanks for your help, that works nicely. It is good to have control of the printer again.

  • Printer Status Report

    Printer: HP Photosmart 5515 on the label (but HP Photosmart 5510d B111h on the Printer Status Report).
    Operating system: Win 7
    Why does item 25 in my Printer Status Report show incorrect "Ink Install" dates? Depending on the colour, the date of installation of each ink cartridge is given as four or five days earlier than the actual date of replacement.  I would have thought that the date would be exactly as per my desktop computer to which the printer is connected via a USB cable.
    The printer is less than one year old and has given the incorrect dates from the moment the original set-up cartridges were replaced.

    HI LincsP,
    You are correct that the dates should in fact change and show the exact dates. This will not affect your ability to print or print quality at all. It may have something to do with you needing a product update. You can click here to find out how to check for a product update on your printer. 
    When it's time to change a cartridge next time print the Status report before you replace it and then again right after you replace it. If the same thing happens please scan the sheets and attach them to this thread for me to look at. 
    Let us know what happens.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Automatic print out of a document that is created via B1iSN

    Can anybody tell me if it is possible to print out of a document (purchase invoice) automatically after it has been created via B1iSN?
    Does anyone have an example or a link how to realize this?
    Thanks
    Gerhard.

    Hi Gordon,
    thanks for your fast reply.
    we have a subsidiary A that does all the accounting and sales for subsidiary B (that works as a commercial unit). All goods that are sold in B are purchased in A. We have connected the two subsidiaries via B1i. A sales order in B automatically generates a purchase order that is send to A via B1i (B1PO2B1SO scenario). The invoice from A for these goods is send to B as a purchase invoice via B1i.
    This purchase invoice ought to be printed out automatically as the staff and printers are in the same office.
    Regards,
    Gerhard.

Maybe you are looking for

  • Complex mapping scenerio.

    Hi Experts,                         in my scenerio, in the Interface mapping, data from source reaches target through 3 stages. 2 XSL mapping, and then a graphical mapping. In my scenerio, file is picked from FTP and posted to SAP through RFC .    In

  • JMS in cluster - why is it assymetric?

    We use 8.1 in a 2 noded cluster/+1 adminserver/.           On each node, there is a JMS server on migratable target. Lets say 'test1' and 'test2'.           A distributed queue has 2 destination , one on the each node. The JNDI name of the queue is '

  • I am unable to get yahoo to "stick" as my homepage after I close the browser.

    Am setting home page properly. Others have checked.When I close the browser and re open I get the Mozilla start page as my home page instead of Yahoo.

  • Jheadstart 11g upgrade tp1 to tp2 with jdeveloper build 5205

    Hi I use JDeveloper 11.1.1.0.2 (build 5205) and JHeadstart TP1. Can we upgrade to JHeadstart TP2 with this version, because this buildnr is not in the blog? I try to upgrade but after installing the war-file of the ViewController-project, I get an er

  • Need help with an infinite loop please

    Can somebody please help me out with displaying text that's been imported from another file onto a JTextArea? this is the code i've been trying to get to work, and it does, but it is stuck in an infinite loop and i can't see why. I've tried adding a