Clearing error messages in Purchase Order

Hi All,
Can anybody tell me how to clear error messages in user exits when changing the error message?
My problem is like this and using the exit 016.
I want to make sure Plant in all line items are same.  If the user changes one Plant, then I am comparing that with other line item plants and giving error message if they are wrong. 
Then, instead of changing the line item 10, if user changes Plant for 20, in this situation both plants are same. Hence, should able to save the purchase order.
But it is not able to save the PO because, it is not able to clear the error message on line item 10.
Can somebody suggest, how to clear the error message?
Hope, I made the question clear.
Shylesh

Hi Friend,
Fire an information message instead of error message.
Because you can not handle error message in user exit / BADi.
Standard way of handling error message in screen by CHAIN ENDCHAIN.
But you do not have control on the table control of PO.
So it is better to fire an information message.
Regards
Krishnendu

Similar Messages

  • Reg. Error message during Purchase order more than PR.

    Dear Sir
    After putting Purchase order for a Purchase requisition we can able to rise Purchase order for a PR. We a error message. Kindly give the solution this problem.
    How to set error message in this case.
    Thanks
    Rajj.

    Hi
    If u want to restrict PO creation with more than PR Qty u can set error message in OME0 or path as follows
    SPRO>Materials Management>Purchasing>Environment Data>Define Attributes of System Messages-->system message
    06 076
    Set the message no : 06 076 as error messages.
    Then when All The PR qty already convert to PO,then system will not allow another PO to created for this PR.
    Vishal...

  • Error of PO - "Purchase Order Does not exists"

    Dear Experts,
    Here i am facing one error of Purchase Order Creation and its further processing.
    I have created purchase order and saved it, system issued message that, Purchase Order XYZ is created. (I have taken trial for 2-3 Purchase orders).
    When, i am posting Goods Receipt for the PO, system is issuing the error message, Purchase Order does not exists.
    Also in ME2M (PO list display) and Me23N (Display PO),
    system is issuing the same message - Purchase Order Does not exists, but in PO Creation it is generating Purchase order normally.
    Here is no matter of release strategy, because, PO release is not configured.
    Dear Experts, Please guide me on the issue !
    Thanks in advance !!!!

    there can be hundred of different reason for a failure. Most common reason is a problem with the number ranges, e.g. system tries to create a record with a number that is already there.
    This can happen if the number range was reset (or transported from a developement system).
    But transaction SM13 gives you all the details.
    There you see a line for each posting failure. Double click this  line again to get more details.
    There you will certainly find a line in red that indicates in which function the failure ocured.
    Double click this red line to get more info. Use the buttons above to see the content of the posting. For some failures you can create a dump that gives you much more details.
    Best you sit together with an ABAPer who can certainly tell you more how to read a dump and how to find the reason.

  • Error in posting purchase order delivery

    Hi
    I got an error while posting purchase order delivery through Tcode- MIGO
    This is the Error Message:
    Posting only possible in 2009/04 and 2009/03 in company code XXXX
    I checked everything Fiscal year variant,Posting period variant,etc.
    And in Tcode- OMSY.
    Let me know as early as possible how to solve this issue.
    Thanks and Regards,
    Deepthi.

    Hi Deepthi,
    You need to understand that posting periods 3 and 4 does not necessarily mean march and april in SAP.
    Check your fiscal year variant for the months which correspond to periods 3 and 4.  Then you will be able to solve your problem by yourself.
    Open and close periods in FI -  OB52
    Close periods and open new periods in MM Side - MMPV
    Hope this helps you....
    Regards,
    Sreekanth....

  • Error Message while doing Order CLSD

    Hi,
    I am getting error message while doing Order CLSD...
    Error Msg: Invalid cost element(XXXX) for reservation item 010.
    please suggest me...how to solve this issue.
    regards,
    Venkatesan Anandan

    Hi Venkatesan,
    I had replied and asked for one clarrification and to check same at your end.
    Is your Cost Element mapping done with cost cost center used in order settlement rule.
    Also check for Material Master Change document for Valuation Class change and revert back in this thread.

  • Customer error message in sales order on save

    Hi Friends,
    as per requirement i have to raise the error message and system should enable the field to change values. This should happen when condition is not met on Saving of Sales order.
    For this, i have used the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. But the problem is system throwing error message and all r in display mode only. as per my requirement system should allow to change the error value field.
    i have verified many posting in this SDN, but nothing is working out.
    Please guide me, how to raise the error message and system should enable that filed.
    My doubt is where should i raise the error message in sales order (MV45AFZZ)??? if any badi to raise the error message also fine for me. I tried many ways like... message with display like..... and set / get parameters and badis....  but not able to find the correct solution.
    Thanks in Advance.
    Bala

    Hi
    You need to use check for enahcement spot, which will be help to you.
    Bcz you are throwing custom error message in the standard transaction, once the error is display, you could not able to change the values. your prob can be solved by using the enhancement sport.
    This is include name (Include:MV45AF0B_BELEG_SICHERN).
    In the above include, you need to create a enhancement spot after this spot (ENHANCEMENT 16  OI0_COMMON_SAPMV45A.)  
    write your custom code and while displaying an error message. set flag = 'x', then use below code. It will display error message once you press ENTER, you will get the sale order in change mode, you change the values.
      IF flag = 'X'.
              fcode = fcode_gleiche_seite.
              perform fcode_bearbeiten.
              ch_subrc = 4.
              exit.
            ENDIF.

  • Printing messages on Purchase orders

    Is there a way to print special messages on Purchase orders- e.g. "we will be closed for Thanksgiving- no deliveries will be accepted" or "we will be closed on Jan 1& 2 and no deliveries will be accepted".
    We are not looking to print these messages all the time- only when applicable but on all PO's at that time.
    Is there a way to configure this message and it will trigger automatically on PO's where delivery would be somewhere around thanksgiving or New years? How does this message get trigggered to be printed on applicable PO's? Or do we need to do a custom program?
    Any ideas? Thank you in advance
    Raj Patel

    Hello Raj,
    There are two option to meet your requirement.
    <b>Option 1.</b> Maintain standard text with SO10 transaction and pull that in your PO script, You can design your script with one special message box so whenever you want to give special message you can go ahead and change the standard text in SO10 transaction. it will print your text message in all your printout/output.
    Caution: You need to change stardard text when you dont need that.
    <b>Option 2.</b> Maintain Z table for special text and pull the field in purchase order script. it will print for all your output. You can maintain this table with SM30 transaction code and change the text as per your requirement.
    Hope this helps.
    Regards,
    Arif Mansuri
    <b></b>

  • HT201209 If I have redeemed my my gift and the balance is updated in the App Store and I still can not down load apps...what could the issue be?  I keep getting this error message "Your Purchase Could Not Be Completed". Then it refers me to apple support.

    If I have redeemed my my gift and the balance is updated in the App Store and I still can not down load apps...what could the issue be?  I keep getting this error message "Your Purchase Could Not Be Completed". Then it refers me to apple support.

    If you haven't already contacted iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Why oracle don't get clear error message? What is this symbols ???????

    jdk1.6
    oracle jdc driver - ojdbc14.jar
    when oracle throw exception I get somethin like this:
    [02 Jul 2010 20:10:36.145] com.mycompany.myproject.db.OracleStrategy.insertM2Document(OracleStrategy.java:147) ERROR:
    ? ??????? ??????????? ???????? IN ??? OUT:: 62
    java.sql.SQLException: ? ??????? ??????????? ???????? IN ??? OUT:: 62
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1729)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3365)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3454)
    at com.mycompany.myproject.db.OracleStrategy.insertToDB(OracleStrategy.java:50)
    at com.mycompany.myproject.db.OracleStrategy.insertM2Document(OracleStrategy.java:139)
    at com.mycompany.myproject.db.DBManagerContext.insertM2Document(DBManagerContext.java:129)
    at com.mycompany.myproject.util.M2EIManager.importToOutM2PackDocuments(M2EIManager.java:154)
    at com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:104)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    what is this symbols ??????. Why oracle don't get clear error message?

    The wrong character set encoding. Either by reading from the db or by displaying the error.

  • BP 613 error message in internal order budget availibility control

    I Define Tolerance Limits for Availability Control 50% has a react "2    Warning with MAIL to person responsible"
    but it  get a error message
    Item 001 Order 20000001 budget almost exhausted .It should be a warning but get error.
    Would someone help me?

    Hi
    Note down the message number.
    Go to T.code OBA5 input the Application Area first two letters of the message number and look for the message number (the other digits in the message number).Change it from E to W under online and Batch.
    Hope your issue should be resolved
    Good Luck
    Hari

  • Change username to "last name"  in error message for blocked order

    Hi,
    is there a way to change the user name to the "last name & first name" for error messages about blocked orders, so that  the you can know the real name of the person who is blocking the order.
    Thanks & kind regrads,
    Oliver
    Edited by: Oliver Pregler on Nov 22, 2010 11:59 AM

    Hi,
    I hope the error message that you are talking of is in the bdoc and not a SAP GUI one. There are two ways to handle this,
    one is crude way and other a bit long way:
    1. change the Message in message class itself....but this will wipe out after upgradation and all...
    2. code this change in the Dataexchange badi and manipulate the text as you want......
    Hope it helps.
    Regards
    Sidd

  • Reading error message of an order

    hi ,
         i want to read the error messages of a order .
    one probable solution is reading application log but i don't know how to read the application log of a order.

    Hi,
    Please read the following link for your information:
    http://help.sap.com/saphelp_crm50/helpdata/en/85/44e03b861eeb66e10000000a11402f/content.htm
    Best Regards,
    Johnny.
    Reward if it helps.

  • Error Message not getting clear while creation of purchase order

    Hi All,
    I am facing one problem while creating purchasing order.
    I have written one user-exit for purchase order. User has to enter purchase requisition number for certain purchase order type. If he doesn’t enter PR number, we have to throw an error message.
    I have used the MM06E005 for the same. User exit is working fine, but the problem is, all error messages are collected in log and it will be displayed in a dialog screen when you check the document (Transaction ME21N).
    When I enter PR number and check the document, the error message is still there, system is not clearing the error log. I have created “Z” message class and have used in User exit.
    Do you guys have any solution for this? Am I using the right user exit? What should I do to clear the error message?
    If you don’t have answer, please pass it to your friends also….
    Thanks a lot in advance…

    Hi Rob,
    Your inforamtion was good enough to start. thanks a lot for that. I tried to implement the same but no luck this time also.
    FYI..
    The FM exit name is EXIT_SAPMM06E_012 and see the following code, i used.
    TYPES:  BEGIN OF type_my,
            subrc TYPE sysubrc,
            msgid TYPE symsgid,
            msgty TYPE symsgty,
            msgno TYPE symsgno,
            msgv1 TYPE symsgv,
            msgv2 TYPE symsgv,
            msgv3 TYPE symsgv,
            msgv4 TYPE symsgv,
            END   OF type_my.
    DATA:  my TYPE type_my.
    DATA : GV_PO(10) TYPE I.
      if I_EKKO-BSART = 'Z005'.
      GV_PO = I_EKKO-EBELN.
        loop at TEKPO.
          if TEKPO-BANFN is initial.
           message E000(ZBC_MESSAGES) with TEKPO-EBELP.
            my-subrc = sy-subrc.
           my-msgid = sy-msgid.
           my-msgty = sy-msgty.
           my-msgno = sy-msgno.
            my-msgid = 'ZBC_MESSAGES'.
            my-msgty = 'E'.
            my-msgno = '000'..
            my-msgv1 = sy-msgv1.
            my-msgv2 = sy-msgv2.
            my-msgv3 = sy-msgv3.
            my-msgv4 = sy-msgv4.
      Cleaning
            CLEAR:
            sy-subrc,
            sy-msgid,
            sy-msgty,
            sy-msgno,
            sy-msgv1,
            sy-msgv2,
            sy-msgv3,
            sy-msgv4.
      Generate message
            mmpur_message my-msgty my-msgid my-msgno
            my-msgv1 my-msgv2 my-msgv3 my-msgv4.
      Remove message from message list
            mmpur_remove_messages_by_id GV_PO.
          endif.
        endloop.
    It is still not working. Moreover i don't have PO number at run time.
    I hope this clarify the problem in more detail.
    Meanwhile i am searching for OSS as suggested by Michael Bennett.

  • Constant Error Messages with Purchasing & Downloading on iTunes with iOS 7

    This is getting ridiculous. Ever since I downloaded iOS 7 when it first came out, I've had difficulties making purchases and downloading content wirelessly using iTunes on my iPhone 4S and iPad 2. Every time I tap "Buy" I get a message that says the "Content Cannot Be Purchased At This Time." I then have to close iTunes completely (double-tapping the HOME button and swiping up on the iTunes window), then re-launch iTunes, find the content again and re-hit Buy and then I finally get the button to Download Now and Download Later. Choosing Download Now, I get another error message saying "Content Cannot Be Downloaded At This Time," and I have to do the whole shut down/re-start process all over again to finally have the download start. This happens when I attempt purchases using 3G and on wifi (and I've tried several different wifi networks and I get this error all the time).
    I never used ot have problems like this on my 4S or iPad 2 before iOS 7. I tried restoring to factory settings and then moving all the content manually back from the iCloud and my computer and I still get the error. I tried signing out of my AppleID and logging back in, still get the error. I downloaded the latest iOS 7 software (currently running 7.0.4) and I STILL GET THE BLOODY ERROR. Calling AppleCare, they have no freaking clue why I'm getting this error and neither do the Genius Bar people.
    There doesn't seem to be anybody else (that I can find online) who has the same problem. But there also doesn't seem to be anybody at Apple looking in to this which is incredibly frusturating. I've been submitting Bug Reports to the Apple Feedback pages for over a year now and still no acknowledgment from Apple. I also have been having the issue where my iPhone/iPad iCal apps keep reversing my Alert preferences (which I've noticed people complaining about for over 3 years with no solution from Apple).
    This is getting out of hand. I've been a loyal Apple customer for the better part of a decade. I switched to Apple over PC because of their committment to excellence and relatively lack of bugs in their software. But lately, Apple's quality has suffered tremendously. When there are iOS software glitches that continue after 3 major updates (and several minor ones), clearly Apple engineers don't give a crap about their customers or the user experience. If these issues aren't addressed, I'm seriously going to take my business elsewhere. There is simply no excuse.

    You won't see Viber data in www.icloud.com.  App data (e.g. Viber) is included in an iCloud backup or iTunes backup which includes other information.  Kindly see this support article for more information - http://support.apple.com/kb/HT1766, https://support.apple.com/kb/ht4946 and http://support.apple.com/kb/PH12519.

  • Error message after purchasing Acrobat XI software

    About a month ago, I downloaded a free trial of Acrobat Pro XI and recently started getting popup expiration reminders each time I opened a PDF, so I purchased the software today, downloaded and installed it. I have also registered it with Adobe online. Now, every time I open a PDF, I get a popup titled "Serial number upgrade" asking me which product I already own, and requiring a serial number. Since I just purchased Acrobat Pro XI, it should appear on the drop down menu but does not, and when I enter the serial number, I get an error message stating that the "Serial number you provided was valid, but a qualifying product could not be found on this computer." I've been using the same computer the entire time, so why is the software not found, and why can't I use it without this problem occurring each time?
    My expiration reminder also continues to pop up constantly, so I'm wondering why the fact that I've purchased it now hasn't cancelled that out?

    Brad,
    I've checked your order history and the order placed for Acrobat XI is for an upgrade. With this error message you need to enter the serial number for Acrobat X purchased earlier. I've emailed the serial number again to you.
    Thanks
    Nikhil

Maybe you are looking for