Error message problem in ORDER_SAVE badi.

I have used a error message using MESSAGE statement in ORDER_SAVE badi. The problem is when I press the save button and if the condision fails it shows error message. After if you press enter it shows the order is saved.
It is strange. Please help.

Can you give some more information?
1. Which method of the badi are you using?
2. Do you raise the exception error_occured in this method?
In general, if you use change_before_update method and raise the exception if you do not want to save the order, the order would not be saved. This exception should be raised every time the method is executed if you do not want to save the current order.
See the standard implementation class CL_IM_CRM_BUS20001_UPLOAD.
Hope this helps. If not, post the code, so that I can check.
Prakash

Similar Messages

  • I have started to get this error message: 5.1.3 bad address syntax in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?

    I have started to get this error message: "5.1.3 bad address syntax" in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?  My email account is through Optimum online and I am using Airpost Express.
    P.S. The error sound "bong" is driving us nuts!

    Please post on the Office for Mac product forums that Microsoft hosts. It's their product and they can best troubleshoot the issue.

  • Trying to upgrade to 10.6 so my iPhone could synch...I'm getting this error message "Problem with this Windows (XP) Installer package.  A program required for this install to complete could not be run."  Any ideas?

    I had iTunes 10.2.1.1 but needed to upgrade to 10.6 so my iPhone could synch...I'm getting this error message "Problem with this Windows (XP) Installer package.  A program required for this install to complete could not be run."  Any ideas?

    This has been fixed.  Answer is that I needed to go to "Apple Software Update" and repair it.  (From my Control Panel).

  • Display error message in WEBUI using BADI - ORDER_SAVE-CHECK_BEFORE_SAVE

    Hi,
    I am trying to display error message using BADI - ORDER_SAVE (Method-CHECK_BEFORE_SAVE) based on certain conditions when the document is saved from WEB UI.
    I have written it like below:
    If (some conditions).
    Message E000 with 'Error in SAVE' RAISING DO_NOT_SAVE.
    endif.
    I mentioned my message class everything in class, and it is fine.
    However, it is not displaying my error message. It is displaying standard information message saying "Document Could not be saved'.
    Could you please help me out, how can I display my custom message.
    Thanks,
    Sandeep

    Hi Sandeep,
    U can use FM to raise a message from order save badi.
    Inside the if condition, u can raise do_not_save.
    If (some conditions)
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDERADM_H'
              iv_ref_object  = iv_guid
              iv_ref_kind    = 'A'
              iv_msgno       = '000'
              iv_msgid       = 'zcrm'
              iv_msgty       = 'A'
              iv_msgv1       = c_text1
              iv_msgv2       = c_text2
              iv_msgv3       = c_text3
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
          IF sy-subrc NE 0.
          ENDIF.
          RAISE do_not_save.
    ENDIF.

  • Quicktime has stopped working message when I open that. Error message: Problem Event Name: BEX

    When I try to open Quicktime I get a message saying it has stopped working. The error message says:
    Problem Event Name: BEX
    Application Name: QuickTimePlayer.exe
    Application Version: 7.73.80.64
    Application Timestamp: 508900dd
    Fault Module Name: QuickTimePlayer.dll
    Fault Module Version: 7.73.80.64
    Fault Module Timestamp: 508900c0
    Exception Offset: 00005b6d
    Exception Code: c0000409
    Exception Data: 00000000
    OS Version: 6.1.7601.2.1.0.768.3
    Locale ID: 3081
    Additional Information: 9da7
    Additional Information 2: 9da7586a62744150d954cf6a5ec876d1
    Additional Infromation 3: db4f
    Additional Information 4: db4f7e51c3cffddbf929f5acfefa97e3
    Similarly, when I try to play media on iTunes, or when my iPhone is backing up, I get a message saying iTunes has stopped working with the error:
    Problem Event Name: BEX
    Application Name: iTunes.exe
    Application Version: 11.0.1.12
    Application Timestamp: 50c8fc7e
    Fault Module Name: StackHash_0a9e
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 0800a3bc
    Exception Code: c0000005
    Exception Data: 00000008
    OS Version: 6.1.7601.2.1.0.768.3
    Locale ID: 3081
    Additional Information: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: Same as 2

    We'd better check to see if some other application has stashed old versions of QuickTime componentry down in your system files.
    So we'll go looking for the older QuickTime componentry in the most common locations for it to be stashed.
    First we'll need to change some view settings.
    In your Start menu, open Computer.
    In your Organise menu, select Folder Options.
    In the View tab, make sure that "Show hidden files and folders" is selected, and Hide extensions for known file types is unchecked.
    Click OK.
    Now in Computer, open your C:\ drive (or whichever drive you have your operating system installed on).
    Open the "Windows" folder.
    If you have a 32-bit version of Windows, open the "System32" folder.
    If you have a 64-bit version of Windows, open the "SysWOW64" folder.
    What files and folders can you see in there with QuickTime in the title? (In a standard installation of Quicktime you should be seeing precisely two files ... QuickTime.qts and QuickTimeVR.qtx ... and no QuickTime folders whatsoever.)

  • When I try to go to certain pages on PayPal, I get an error message which says 400 Bad Request: Size of request exceeds server limit. Didn't do it before the lasted Foxfire update. Can I revert to an older version?

    1. Using Windows XP home
    2.PayPal is the only website I have problems with Foxfire; works fine on IE8
    3. I can get to some of the desired pages through other links on PayPal so it's not the pages themselves
    4. The error message contains this:
    Cookie: KHcl0EuY7AKSMgfvHl7J5E7hPtK=STMZXVPEjOuzek-HGHcBJRjmRXIQgXpML8uy9fV13oPeEYcAUnBOhKFzvNJqcb-rsc2S6nlYOklSdX6P; cookie_check=yes; LANG=en_US%3bUS; INSIDE
    When I saw Cookie, I did a disk clean including temp files and cookies. No difference. I also did a System Restore, to no avail.
    5. The 400 message actually reads: Size of a request header field exceeds server limit.
    6. Talk to PayPal customer service and they have not heard about any Foxfire conflicts.
    7. Windows Firewall and Kaspersky Firewall turned ON but this is the same configuration before the Foxfire software update. PS. I'll give up Foxfire before I give up Kaspersky

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • "Not Found" Error Message Problem

    Hi All!
    I have a really weird issue happening that I have not found a post for in the boards, although there are some similar ones. I have a video project that I had been working on about a month ago and finished except for credits (I had no problems while working on it then). I finally just got the list of names to use for the credits, so I went to open the project to add the credits and I got a "Not Found" and "Out Of Memory" Message. I have 134.6 Gigs open on the Raid I save everything to, so I know I'm not actually out of memory. So I changed the settings to 80% Application and 50% Stills b/c I have around 10 jpegs I was using for titles in it. That seemed to help at least get the sequence opened. I then had media offline messages for those titles, eventhough they are in the browser and defined as online, so I just reconnected each one individually anyway. That helped with that problem. However, I FCP won't render the transitions around the titles. I deleted the transitions and titles and tried to re-render the video clips that were involved in the transitions with the titles. It won't render those. When I try to view the clips in the viewer, I get the "Not Found" message again. I reconnected a couple of the video clips individually, but I still get the message when I try to view them in the Viewer. The clips in the sequence are there and play in the canvas but not in the viewer and I get the "Not Found" message. I have it set to view the image without wireframes, so that's not the problem. The source videos are read as online in the browser and are in the same place as they were when I originally started the project, so that's not the problem. I've tried different variations on the memory usage. I've tried copying and pasting to a new sequence but get the same problem. Does anyone know why all of a sudden I can't view any of my source video and the clips I used in my sequence in the viewer and why it would give me the "Not Found" error message?
    Some Specs that might be helpful:
    FCP HD 4.5
    Dual 2 GHz PowerPC G5
    2.5 Gigs DDR SDRAM
    Raid 1 with 134.6 Gigs Available Space
    SD NTSC DV Footage - MPG files I transfered originally from the client's portable hard drive
    A Few JPGs of Photoshop Titles
    I'm sorry this is insanely long, but I wanted to provide as much detail as I could.
    Emily

    They were originally on a PC. That quite possibly could be it.
    I just checked all the titles again and they are all RGB.
    Our Raid ocassionally has problems, so I'm thinking it might have something to do with that.
    I'm going to try on Monday to just re-import the videos I need into the project and see how that goes. If anyone has any suggestions, I'll take a look on Monday and see what happens.
    I was just hoping that someone might have had this problem and knew what to do.
    Thanks for your help!

  • JSP Error Message Problem

    I keep getting the following error message when I click login on my sample login page:
    Error: 500
    Location: /examples/jsp/gcdBB/Login.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Syntax error or access violation, message from server: "You have an error in your SQL syntax near '"USERNAME", "PASSWORD") VALUES ('admin','admin')' at line 1"
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
         at jsp.gcdBB._0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6._jspService(_0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6.java:97)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    Root cause:
    java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax near '"USERNAME", "PASSWORD") VALUES ('admin','admin')' at line 1"
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1628)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:886)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
         at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:917)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:1806)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:1740)
         at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1309)
         at jsp.gcdBB._0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6._jspService(_0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6.java:87)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    How can i solve this error?

    Here is the section of code in question:
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    java.sql.Connection connection=java.sql.DriverManager.getConnection
    ("jdbc:mysql://localhost:8080/gcdBB_db");
    java.sql.Statement statement = connection.createStatement();
    Enumeration parameters = request.getParameterNames();
    if(parameters.hasMoreElements())
    String usernameValue = request.getParameter("username");
    String passwordValue = request.getParameter("password");
    statement.executeUpdate("INSERT INTO USERS (\"USERNAME\", \"PASSWORD\") VALUES ('"+usernameValue+"','"+passwordValue+"')");
    %>
    Any ideas to solving the problem?

  • Error Message Problem !?

    i All!
    I have some problem in my database.
    If I purposely tried to create a Procedure with Error or any PL/SQL block with error.
    If there is any error I couldn`t see the error messages.
    It is giving like below
    ERROR at line 1:
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-906: Message 906 not found; No message file for product=plsql, facility=PCM
    For I try the same PL/SQL in Some other database it is giving the error messages..
    I think Some problem in DBMS Packages...
    I think It may be DBMS_STANDARD package problem..
    I ran all the three
    catproc.sqlpupbld.sql and v8pup.sql in my db.
    Still I have the problem.
    How to solve this ?
    What i did was ..
    I tried to create one proc with error.
    SQL> create or replace procedure p1
    2 is
    3 begin
    4 select * from notable;
    5 end;
    6 /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE P1:
    LINE/COL ERROR
    4/2 PL/SQL: SQL Statement ignored
    4/16 PLS-00201: Message 201 not found; No message file for
    product=plsql, facility=PCM
    The Same thing I tried with another database which I have..
    SQL> create or replace procedure p1
    2 is
    3 begin
    4 select * from notable;
    5 end;
    6 /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE P1:
    LINE/COL ERROR
    4/1 PL/SQL: SQL Statement ignored
    4/15 PLS-00201: identifier 'NOTABLE' must be declared
    Previously I was able to see all the error messages by using SHOW ERRor
    Now I am not able to see. It is not displaying the error messages.
    Give me a suggestion...
    Thanks and Regards
    Suresh.N

    Do you also get that error message when you freshly install windows 7?Perhaps a program which is not responding or is broken.
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • How do I resolve Playback Error Message: "Problem syncing MIDI with audio."

    I recently bought the Nexus2 instrument. After backing up all my files last week, the Nexus content wasn't being read (it aparently got moved somehow), and I had to contact their support to resolve the problem. As soon as that problem got fixed, Logic quit playback altogether. Everytime I hit Play, I just get an error message that says "problem syncing MIDI and audio," and the the only sound coming out of the speakers is a high-pitched humming. How do I go about fixing this?
    thanks,
    Shane

    Check your Internet connection.

  • Cmd.-Shift-3 & -4 error message problem

    After having worked all right forever, suddenly when I try to do a screen capture on my MacBook, an error message window is generated which says:
    "Screen capture failed
    The attempt to take a screen capture has failed.
    The error is: 'Unable to create type string.'"
    I have tried numerous things (DiskWarrior, logging out, restarting) to no avail. Anybody know what to do to correct this on a MacBook (early 2009) with Leopard 10.5.8.

    I checked the preference files using Terminal as you suggested, and nothing was reported as corrupted.
    The application "Grab" does work (of which I was unaware or at least about which I'd forgotten!) without apparent problems.
    I deleted the Finder and ScreenCapture plist files and emptied the trash to no avail--trying cmd-shift-4 afterwards still produced the identical error message window.
    I've not yet tried Tony's suggestion of moving all the preference files to an untitled folder and restarting, as I'm in the middle of some things in other programs which I don't yet want to interrupt, but I'll try that next.
    Another thought which just occurred to me: I seem to remember browing some place where a program was downloadable which allowed one to change the format of screen capture files from png files to other formats (pict, jpeg, tiff, etc.) I don't recall either downloading or doing this, or now even the name of the program, but could some program like that have messed up the screen capture function to produce this type of "string" error message?

  • Validation "Error Message" problem

    In APEX 4.2 i have under "Page Processing"-->"Validations" my valdidation rule created with name "10 validate report".
    My APEX Validation attributes are:
    Type="Function Returning boolean"
    Validation Expression 1 = "return rpt_utl_pkg.validate('my_db_pkg.validate(:p1, :p2, :p3, :p4, :p5)');"
    "*Error Message (Value Required)"="Error in data".
    Attribute "When Button Pressed"="SAVE", the validation runs when i click button SAVE, and the validation logic is inside a plsql function where i throw business errors with such code:
    apex_error.add_error (
            p_message          => 'Message 1',
            p_display_location => apex_error.c_inline_in_notification );
    apex_error.add_error (
            p_message          => 'Message 2',
            p_display_location => apex_error.c_inline_in_notification );
    ....My plsql function successfully throw those 2 error messages and those are put to the page header.
    But problem is that also phrase "Error in data" is didsplayed as 3rd message.
    How can i do so that the 3rd message "Error in data" wouldn't appear?
    I only want the report to show messages:
    Message 1
    Message 2
    I cannot leave the field "*Error Message (Value Required)" empty. And if i put a space character there, then also it prints 3rd row but with no text, but still 3rd row starting bullet symbol is there.

    Just for futher reference
    CharlesRoos wrote:
    If I change "Validation Expression 1" with adding "true or" into expression to get always True:
    return (true or rpt_utl_pkg.validate('my_db_pkg.validate(:p1, :p2, :p3, :p4, :p5)'));Result is that i get don't get any error message shown at all. I get message that data was saved successfully, but the "apex_error.add_error" clauses were executed successfully.This is because rpt_utl_pkg.validate never gets executed.
    Personally I would turn rpt_utl_pkg.validate into a procedure instead of a function.
    The validation code would then be
    rpt_utl_pkg.validate('my_db_pkg.validate(:p1, :p2, :p3, :p4, :p5)');
    return true;If rpt_utl_pkg.validate has to be a function I would do
    declare
      v_dummy boolean;
    begin
      v_dummy := rpt_utl_pkg.validate('my_db_pkg.validate(:p1, :p2, :p3, :p4, :p5)');
      return true;
    end;This makes it clear that the function will always return true.
    Together with a good documentation in the validation of why that is will makes it's use clear for a different developer who happens to stumple on the code in the future.
    Nicolette

  • InDesign CC Out of Memory Error message problem

    I am getting an Out of Memory Error message in InDesign CC and it is crashing. Very unusual and not a particularly lage file. Contains a few PDFs and crashes tend to be when scrolling- is it a screen redraw problem?

    Does it have an SSD or conventional hard drive? How much free space?
    For testing you should create and log into a new user account and see if the problem persists. That will narrow the possibilities to either user-related or document/application/system problems of some sort. Is this happening frequently? More than the one file? If it's just the one, try this: Remove minor corruption by exporting

  • BIG error message problem

    From what I can see alot of others like myself are having the same problem. Whenever songs or movies are bought, especially with redeemable gift cards, error messages pop saying the network has timed out or the itunes store cannot connect or some bull like that.
    If anyone has a fix to this problem that actually works posting it would be much appreciated.

    No fix my man. I think it's just traffic. I was able to redeem my cards after a while but haven't been able to purchase anything yet.
    Keep at it.

  • Populating the error message log (while executing BAdI implementation)

    Hi there,
    I have a BAdI to implement CRM_ORDERADM_H_BADI where it will check certain header data. If there is a certain condition that is met, we must not allow the transaction to continue by adding error message on the top (the red button). How can we populate this error log within the BAdI implementation (putting it in codes in the method of the BAdI implementation).
    Many thanks in advance,
    Regards,
    MuJi

    put like this
    data:   w_msg type standard table of shp_badi_error_log initial size 0,
            msg like line of w_msg.
    if sy-subrc ne 0.
          msg-msgty  = 'E'.
          msg-msgid  = 'YW2'.
          msg-msgno  = '041'.
          msg-msgv1  =
           'PGI not allowed ,Pls Enter Truck No in Bill of lad.Field'.
          append msg to ct_log.
    endif.
    <b>In BADI u cannt raise Error Messages but u can Post the Messages to Application Logs, So u have to Update ur messages to CT_LOG.</b>Regards
    Prabhu
    Message was edited by: Prabhu Peram

Maybe you are looking for

  • Custom SharePoint Foundation 2013 workflows

    Hi I have created a custom workflow in my SharePoint Foundation 2013 environment using SharePoint Designer 2013.  I have a couple of questions: 1. I have used the action 'Collect data from user' which is automatically sending emails to task assignees

  • What is going on with Apple / ITunes?

    What a mess! I received a video IPod in August and with some issues (my lack of computer knowledge) all has worked out. I wanted to download a new movie and its where it all went south. Just so you know I have downloaded videos and short films with z

  • Target 'install' does not exist in this project ",this is the error i get..

    i get this error when i try to install ,with the command : ant install, a webservice on tomcat, and when i type ant install it gives me this error: " Target 'install' does not exist in this project " i have a file in the same directory with the build

  • Ref.Cursor Problem - URGENT

    Hi Friends, For my report ( calc.rdf ) , I am passing two input parameters P_Client_ID, P_Plan_ID. In .rdf, I had a ref.cursor for selecting records based on two input parameters values. case1: P_client_ID = 'SRINI' P_Plan_ID = '3232' My report is ge

  • Opening data form in OBIe

    Hi everyone, There is need to open data form from Hyperon Planing in OBIe. Is't possible to open data form directly in OBIe or using URL? Is't possible generally to open data form using URL? Regards, Sergey