How to pop up error message when printing invoice / delivery note

i have a problem that when I'm going to print the invoice (VF03), i have to check the field displayed e.g. port of loading, final destination should not be empty.If both are empty, when user is ready to print, then alert message is displayed (e.g. Please return to the invoice to fill in the port of loading / final destination) and is not allowed to print it out
i'm using Zxxxxx program (including the subroutine)  and SAPScript form Zxxxxxx ,in the form, i use "PERFORM XXX IN PROGRAM ZXXXX" to call the parameter,so how can I do the alert message and stop the printing process and Do i write a checking subroutine in the program and perform that subroutine , so that when that required fields are empty, then show alert when printing?
PLs advise

Hi Sky,
i wont suggest you to give a pop up as if you try and execute the invoice in background it would cause termination.
Standard way of doing it is by updating nast entries. You can refer below mentioned pseudo code. You can also refer to any standard driver program & form attached to a output type for  more code.
The below code would show your output condition in error status if your condition fails.
**Do you validations in the print program and  check for return code.
  IF SY-SUBRC NE 0.
    PERFORM PROTOCOL_UPDATE.
    RETCODE = 1.
    EXIT.
  ENDIF.
      FORM PROTOCOL_UPDATE                                          *
      The messages are collected for the processing protocol.       *
FORM PROTOCOL_UPDATE.
  CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
       EXPORTING
            MSG_ARBGB = SYST-MSGID
            MSG_NR    = SYST-MSGNO
            MSG_TY    = SYST-MSGTY
            MSG_V1    = SYST-MSGV1
            MSG_V2    = SYST-MSGV2
            MSG_V3    = SYST-MSGV3
            MSG_V4    = SYST-MSGV4
       EXCEPTIONS
            OTHERS    = 1.
ENDFORM.
Hope this Helps you.
Sumit

Similar Messages

  • Error message when printing Sales Order

    Hi,
    I get following error message when printing out a sales order just created.
    No matching records found 'Document' (RDOC) (ODBC-2028) (Message 131-183)
    Logged in as super-user, posting periods is unlocked. It is a new company just created. With sand-box company no errors-it prints properly to same printer.
    What could be the problem?
    Thanks,
    Ajay Audich

    Have you tried with system PLD?
    Thanks,
    Gordon

  • How to Customize the Error Message when a user enters a wrong password

    Hi Gurus
    Pls Help out me that
    How to Customize the Error Message when a user enters a  wrong password ?
    I need the Help to Customize the messege ?
    How  we can do
    Pls Tell me indetail

    Firstly many appologies I have given you slightly duff information here, I had been editing the file above for email notification texts not logon / password texts.
    The file you need is actually a portal .par file and can be found in the deployment/pcd directory.  The file you need is called com.sap.portal.runtime.logon.par (with a .bak extension at this time). 
    You need to copy this file to a local machine and unzip the contents.  The files you need to edit are contained in a further jar file which can be found in the \PORTAL-INF\lib directory - it is called umelogonbase.jar.  It too needs to be extracted and the file you need to edit is logonMessages_xx.properties (where the xx is the language code you are using).
    In this file you will find lines like:
    NUMERIC_REQUIRED=Invalid new password (must contain digits)
    You need to identify which texts you wish to modify and edit the text to the right of the equals sign.  Once complete rezip the umelogonbase.jar file and then the com.sap.portal.runtime.logon.par (this time name it without the .bak extension.  Then logon to the portal and upload the new par and you should see your new logon messages.
    Haydn

  • I get an error message when downloading ITunes :could not access the network location %public%\desktop\

    I get an error message when downloading ITunes "could not access the network location" %public%\desktop\?
    windows vista 32 bit

    Try the following user tip:
    "Could not access network location %PUBLIC%\Desktop\" install errors

  • Printer Error Messages When Printing PDF Documents

    I keep getting the following error messages when I try to pring a PDF document. This application has failed to start because LXBBGF.DLL was not found. Reinstalling the application may fix this. The other error message is: Cannot load library LXBBPRP.DLL using default error 126. I spent over and hour with a Lexmark Tech. who unsistalled my Lexmark X75 printer and he did a register edit to make sure my register was cleared of all the old Lexmark entries. He then reistalled the printer and the drivers, but the error message still pops up when trying to print a PDF Document. He checked out the printer and it will print and scan all other types of documents with no error messages. He also had me unistall Acrobat Reader 11.0 and reinstall it. I also did a sytem restore but none of the remedies I have tried so far has fixed the error messages issues. I would like to get this problem resolved as soon as possible because I need to print my travel documents asap. This forum is great but can someone please let me know how to get in touch with Adobe Technical Support. I need their toll free phone number and email address?

    Hi Pat,
    When I first encountered the PDF printing problem I went to the Adobe Web Site and downloaded the most current version of Adobe Reader which was the 11.0.6 version and the Lexmark Technician uninstalled the old driver and installed the updated version of the printer's driver. But this did not resolve the PDF printing problem. Both before and after the PDF printing problem surfaced I was able to print all other document formats except PDF documents.
    It seems very strange to me that once I uninstalled  the Adobe Reader 11.0.6 and reinstalled my old version of Adobe Reader 9.3.3 that all of sudden I was able to print all of my other PDF documents. But that's what happened and Adobe still insists that it was a printer issue. I did a little research and this is not the first time Adobe has had compatibility/configuration issues with Lexmark printers and they have not resolved these issues.
    I know I am taking a chance by using an unsupported unsecure version of Adobe Reader, but at this time I don't have any other option. Unless Adobe develops a patch/workaround solution. Which I hoping they will do, but I don't think this is going to happen soon because this issue is not a high priority as it only effects a small portion of their customer base.
    Thanks For Your Input/Comments
    Edd

  • Q: Error message when printing Photoshop CS3 file

    I get an error message when I try printing a CS3 photo on my Epson C86 printer, and the resulting print has the wrong colors and luminance levels.
    Error Message = "Some PostScript specific print settings (Interpolation, Calibration, Encoding) will be ignored since you are printing to a non-PostScript printer."
    Any ideas for how to work through this problem?
    Thanks in advance for your help.

    Chris -
    Thanks for your quick response.
    Do I understand you correctly in saying that Photoshop CS3 has PostScript information that it routinely sends to a printer, and therefore I would need to have a PostScript compatible printer inorder to work with this information (and also for my ColorMunki calibration to work)?
    Based upon what you said, I think my color problems are because the ColorMunki profile for my printer, paper, & ink combination are being ignored.
    Tom 

  • I get a pop-up error message when I try to open Firefox

    Whenever I try to open Firefox (latest version installed today), I get a pop-up error message that reads: TypeError: Componentsclasses['@mozilla.org/gmailnotifier;'] is undefined.
    When I click the OK button, Firefox opens and operates fine. How do I get rid of that?

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Error message when printing, what can I do?

    I keep getting error messages when I try to print a PDF.  This is very frustrating!  I have been trying to print tax returns from online and cant do it from this computer, which had the newer ADOBE DC.  I have tried deleting and reinstalling.

    "Error messages" doesn't really tell us anything.
    We also don't know your operating system or browser.

  • How do I restore error message when there's not enough room to sync?

    By default, iTunes displays an error message when there is not enough room on the iPod to store all the files that are scheduled for synchronization.
    This message also has a checkbox for "Do not remind me again" (or something to that effect). The other day, I stupidly checked this box, and now I don't know how to restore the default setting (i.e., to display the error message). Instead, iTunes just silently does nothing -- with no diagnostic -- if it finds that there's not enough room on my iPod to complete a sync.
    Any ideas?

    Right click on your iPod in iTunes and select the Reset Warning option.

  • "Communication Error" message when printer is the AirPort-connected

    After two years of using (and hundreds of pages printed), the printing on the Epson Stylus Photo R340, connected to the AirPort Express ('n' edition) ends just after a few centimeters of printing (now it's in 100% cases), showing one of the error messages below:
    - Printer paused (resuming/re-pausing leads to no further progress). In this case the printer is sometimes paused also un System Preferences > Print & Fax, but resuming in this level again leads to no progress
    - Printer shows "Communucation Error"
    - Printing dialog shows no error or pausing, but the result is the same as above
    Removing the print task in printing dialog doesn't have any influence on the printer. In all these cases it's necessary to turn off the printer to start from the beginning.
    When the printer is connected straight to the computer via USB cable, it prints as expected.
    There were no software installations recently, except Apple system updates via Software Update.
    Does it mean that Apple kisses the air printing goodbye or there's still hope to fix it?
    Thanks for any ideas

    Hello Syd,
    thanks a lot for your suggestions. I appreciate Epson is monitoring forums like this! As I wrote above though, some of them I mentioned as performed (printer connected straight to USB port of the Mac). I also several times erased all the printers and added them again fresh, but unfortunately all still the same.
    Just a few weeks ago, I printed a few dozens of pages and this happened after every about 20 pages and after printer restart, I was able to continue. Since I started this topic, the printer will not finish any single page over the AirPort Express, but prints fine when connected directly to the mac via USB.
    I just don't want to bring it across the house (yes, I know I can share it on one computer for the others, but there's no room near the computer I work on and in addition, it worked before...).
    So it looks like bad luck for me so far...
    Message was edited by: Bjoehy

  • Error Message when printing handouts

    First, I know this has already been discussed in these forums.  I tried the proposed solution in this thread http://forums.adobe.com/message/6273232#6273232 and it still didn't fly.  I'll go ahead and bust out a full explanation of the issue for those of you who may not want to navigate to the other thread:
    I'm getting the following error message when trying to publish my project as a handout:
    I'm launching Cap 7 in admin mode on a windows 8 machine and trying to publish to Word 2013.
    I'll select a publish location and start the publish, it gets to 10% and then stalls out (the error message doesn't appear at this time).  If I hit alt+tab, I'll see a "Save as" window.  I'll reselect the directory and name the file correctly and hit save.  That moves the progress bar to 100% and the error message appears.  I've tried to copy and paste the slides to a new project and the same thing occurs.  From what I've seen, others have had this problem but I've yet to see a confirmed fix.  If you've run into the issue and solved it, please let me know.  Is there a word plugin I need to install?  Is there a way to bamboozle my handouts from captivate to .pdf to word?  That would be cumbersome but I'm not scared to try it. 
    Thanks in advance,
    Eric

    Have you tried with system PLD?
    Thanks,
    Gordon

  • How to set the error message when LIV amount over PO amount ?

    Dear experts :
    I create a PO without GR base IV , and I have setting limit in OMR6.
    I hope system show error message when the LIV amount over PO amount .
    But in fact , when LIV amount over PO amount , the system didn't show any message.
    Hope someone can tell me ,besides OMR6, what setting I need do?
    Thanks a lot.

    Please use T code OMR6 & assign tolerance key for plant & Tlky -> BD TO "zero".
    Regards
    Bhavesh Mistry

  • I cannot print from Websites or my college online course. Tries to save files to desktop as an .xps document but nothing happens and I get an error message that print command did not work. Have reinstalled firefox and adobe, no help. Any suggestions?

    Cannot print anything from internet using Firefox as browser. Please advise. I have to use Firefox for internet college courses, cannot print my assignments. I do not have this problem on Mac or using Internet Explorer. Only happens when using Firefox. When I select print a message comes up to save information to desktop as .xps file. Select save, sometimes it is on the desktop but I cannot open the file or it simply does not save file and get an error message that print command failed. What is happening?

    {Ctrl + P} and select your printer in the Printer - Name box near the top of that window.
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Error message when posting invoice : Day-end closing not defined

    Hi,
    In our training environment we migrated from FAGLFLEXT to FMGLFLEXT and activated fund management.
    Now when posting an invoice the system provides an error message: "FQ252 Day end closing not defined".
    There is no configuration related to F845 but we are prevented from posting the document due to this error message.
    Any idea of where this could come from and of what need to be done to prevent this from happening?
    Rgds
    Sophie

    Hi Sophie,
    Can you check if you have entries in either PSO43 or PSO43USER tables (can be accessed via F8O2 transaction)?
    Regards,
    Eli

  • Pop-up error messages when running a script?? make them go away!

    v1.5.1, build 5440.
    I've been running a development setup script for some months now.
    It has errors in it, it creates synonyms or grants for objects that no longer exist. ( It's not been worth my time to correct it, because I just run it and ignore the errors for now. I'll tidy up when I'm building the installers.)
    Suddenly, today, sql developer has decided to pop-up a message window to tell me about each error. I have to press ok for it to continue. On top of the annoyance factor that a task that took 5 seconds now takes 60, the message is totally useless because it doesn't tell me which object does not exist! In other words, I will still have to read the output log anyway!
    I haven't changed any of my settings, though I did have to restore to an old version of my connections file when it got corrupted (again).
    So, why/how did these messages decide to show up, and more importantly, how can I make them go away?

    You could check with [http://help.yahoo.com/l/us/yahoo/helpcentral/ Yahoo Help] to see if other users have seen this problem with Yahoo Mail ... for example, I found [http://answers.yahoo.com/question/index?qid=20111027204141AANNBYY this] where a user had a similar problem that had to do with Messenger contacts:
    Thanks for this. Follow-up: Found out 15' ago after a lot of clickety-click that you can mousey up to the upper left of the screen. Click "Options." If you see a "Messenger" option, then open that up and select "only my Contacts can message me." That seems to have gotten rid of "yummicrush698."
    -----

Maybe you are looking for

  • Getting an Error while processing a TU

    Hi , I am trying to delete a HU assigned to a TU Becasue this HU was assigned in a wrong TU I am trying to overide manually and pack to some other TU This is the overview, now coming to the error. it says "Begin GR not allowed". "Could not delete the

  • Change the heading in portal - very urgent

    Hi Friends, I have a requirement to change the heading of a field in portal. I have changed the text of a data element 'FCONT' from 'free places' to 'open places' which is required. but its not reflecting the portal. kindly let me know how to achieve

  • Unlimited Delivery Indicator in relation with Default values in MIGO screen

    What is the relation of 'Unlimited Delivery Indicator' in PO with 'Porposed All Items Indicator'  in Default Values of MIGO? Case: PO created with quantity 100. GR is done for 100 quantity. If 'Porposed All Items Indicator'  is set system allows to r

  • WAS Inst on the NetWeaver 7.2 platform for the Business Objects XI 4.0 SP1

    Hello to all, I have tried to install the WAS on the NetWeaver 7.2 platform for the Business Objects XI 4.0 SP1. Ok, more preciselly. I have tried to install SP1 for the Business Objects Enterprise XI 4.0. We have had a distributed installation. An a

  • Looking for DELL Webcam Central software and the webcam software updates

    My laptop is DELL XPSM1530. I read that the webcam was made by Creative Technology. Recently, I read in DELL.com that there is a software named DELL Webcam Central. It was said that it can improve the camera performance. I have looked for it in DELL.