How to get DML error message to display

Hi -- I have a report/form combination. When the user creates a record in the form, or cancels, the app branches back to the report results, properly displaying the success or error message from the form page.
When the user updates or deletes a record in the form, a second form is branched to. This form (a dynamic form), allows the user to enter a comment for deleted or updated records, which are archived to a separate table. The success and error messages are set in this form to an app item called DML_RETURN_MSG. The page process that saves the archive comment sets the value of DML_RETURN_MSG properly: it is visible in the session state.
This form then branches back to the report results, but the DML_RETURN_MSG is not displayed. I've compared the definition of both forms very closely, and see nothing obvious that would be causing this.
Is the problem that the first form is a DML form, while the second is dynamic? How can I get the DML_RETURN_MSG to display?
Thanks,
Carol

Carol,
How are you referencing the DML_RETURN_MSG item in the (success? or error?) message? This is done by enclosing the item name in ampersand and period:
This is a success message: &DML_RETURN_MSG.
However, I assume you already know that.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • How to get the error message from a AWS code to display on the portal

    I implemented IAuthProvider, it works, within the code when authentication fails, I threw AccessDeniedException(customMessage) but when the login fails, the login screen always display the "You could not be logged in to the portal." error message, how can I get it to display the custom message? Am I throwing the wrong exception?
    TIA.

    Simpler? Uhm as far I know there doesn't exist any magic and you have just to write one or two lines of Javascript code yourself. Is that hard?

  • How do I suppress error messages from displaying in GPIB calls?

    I use GPIB Read and GPIB Write to access instruments on the bus. Both vi's supply status on error out.
    I sometimes call these routines in situations where I do NOT want to reap error status, so I leave the error out terminal unconnected.
    Here's the problem: I get error popups that display the GPIB errors (when there are some)  even though I don't connect the error out terminals to simple error or general error.
    How can I suppress the error messages??? I do NOT want them to display...
    As always, thanks in advance for the assist!!!

    PROBLEM SOLVED.
    Thanks gentlemen. But... now I have to defend myself!
    1. I have both old non-488.2 and newer 488.2 instruments on the same bus. When I send *IDN? to the old instruments, they generate errors. When I send model-specific (non 488.2) commands to the newer stuff, they sometimes error. I have to 'search' the bus and identify specific instruments (by mfg/model) that I'm looking for; I don't know what address they're at. So I go thru a loop (the index is the GPIB address) and for each address I try the old-style probe; if it fails, the new style; if neither succeeds, no one is home at that address. The problem is that in cases where I try the wrong probe for the device first, it frequent gets 'trapped' in the input buffer of that device causing it to incorrectly respond to its correct probe when I finally get to it. So I have to clear the device before sending it the probe to make sure its listening. Can't use *CLR since many devices don't recognize it; and since I can't send a command (yet) because the device is screwed up. So.... I figured out what I have to do to get the devices listening. The NEAT-3xx controllers are happy *after* they receive a null command with a LF (EOS) character - but they generate errors while processing the digital enema just described. The HP spectrum analyzers I use work fine when they get *IDN?, but generate an error on the bus when they receive the probe designed to get the NEAT controller to respond. So what I do is always send an EOS character first to each address before each probe - and then issue a GPIB read. I ignore the errors generated, and the data returned. Then when I probe, I always get a good response (if the probe type matches the device!) instead of an artifact from the garbage the instrument had to listen to. It's like drinking a beer after your wife calls you and nags - it clears your head and makes you ready to move forward. So now you know why sometimes I wanna ignore errors, but thanks for asking.
    2. Why don't I use VISA? Well, find me a VISA driver for the NEAT-3xx family of controllers, and I will... I use raw GPIB reads/writes (and nothing else) in my 'scan the bus and probe each address' loop described above. I use raw GPIB commands for the NEAT controllers, and VISA for the HP. You guys designed this stuff, not me... What I don't know (and what you might help me with) is whether there's a 'raw' interface that allows you to talk to instruments using VISA calls when there is NOT a VISA driver for the device... kinda like "I wanna use the GPIB read/write, but use the VISA interface so all my code looks the same" deal...
    Thanks again!

  • How to get actual error messages

    I use a call transction method if there is any error  capture it to an internal table of
    type bdcmsgcoll..
    But here it gives me just batch parameters and other fields along with  a message number..susing this message number how do i get the actual SAP genrated message(text message)..ther must be some function module which will give accept these parameters and give out hte actual message...

    Hi,
    You can get the actual error message by using the FM <b>FORMAT_MESSAGE</b>.
    Lets suppose that you got error messages into t_msg internal table...
    loop at t_msg into x_msg.
            call function 'FORMAT_MESSAGE'
             exporting
               id              = x_msg-msgid
               lang            = sy-langu
               no              = x_msg-msgnr
               V1              = x_msg-MSGV1
               V2              = x_msg-MSGV2
               V3              = x_msg-MSGV3
               V4              = x_msg-MSGV4
             importing
               msg             = v_msgstr
                        EXCEPTIONS
                          NOT_FOUND       = 1
                          OTHERS          = 2
            if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            endif.
            write:/ v_msgstr.
          endloop.
    Here, the variable <b>v_msgstr</b> will be having the actual error message...
    Hope it helps.
    Regards,
    Phani.
    Message was edited by:
            Sivapuram Phani Kumar

  • How to control an error message to display at the status bar or in a popup?

    Hi experts,
    I find that one of the error message in an user exit display at the status bar in some conditions while
    display in a pop up window in other conditions. Is there some way to control its display style as I want
    it? Thanks in advance.

    Hi,
      Use the below code....
    CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND
    EXPORTING
    i_msgtype = 'I' or 'W' <because you want message to display otherthan error>
    i_msgid = <Your message id which you are using in user exit>
    i_msgnumber = <Your messge number>
    Or
    If you want to display the text in a pop up window instead of the above process then use 'POPUP_TO_DISPLAY_TEXT' to display the message text in the popup.
    Rgds,
    Bujji

  • How to get the error message which causes Synonym Invalid?

    Hi,
    I created a synonym in USER_B for a table in USER_A.
    I have given all priveleges to USER_B from USER_A.
    I created a package. In that I am using this synonym. Its working fine.
    Today I have seen that.. the synonym is showing as invalid.
    Even I recompiled the synonym. But its still showing as Invalid in PL/SQL developer.
    Here I would like to see the error message which cause the synonym invalid.
    How can I see the error message.?
    Thank you,
    Regards,
    Gowtham Sen.

    Makes perfect sense. Oracle automatically attempts to revalidate objects when you try to use them.
    SQL> create table t (
      2  col1 NUMBER);
    SQL> create or replace procedure p is
      2   x POSITIVE;
      3  begin
      4    SELECT COUNT(*)
      5    INTO x
      6    FROM t;
      7  end p;
      8  /
    Procedure created.
    SQL> drop table t purge;
    Table dropped.
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    INVALID
    SQL> create table t (
      2  col1 NUMBER);
    Table created.
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    INVALID
    SQL> exec p
    BEGIN p; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "UWCLASS.P", line 4
    ORA-06512: at line 1
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    VALID
    SQL> Even when the procedure has a problem ... the revalidation takes place.

  • How to get only error message which i want to display.

    hello,
    In my main system i am using power supply which is connected with different instruments like data logger ,GSM,GPS....
    In my main vi all the subvi of power system ,gsm etc...are conected with each other.
    now I want to make some changes,
    for example when i run my vi then it should seems pop up msg like Make sure your power supply is on.
    and if suppose its not on then display the pop up msg that your power supply is off, then system should be off,means no need to do further operation.
    here i attach my vi in that i made some logic regarding to this,in that when i run my main vi i get msg for make sure that power supply is on.
    but when power supply is off then i got error msg like your power supply is off and after cliking on ok error vi is open that i dont want,that all i attached here.
    i only want msg that your power supply is off and then system should be off,nothing more.
    will you please guide me that what king of changes i needed for that.
    thank you very much in advance.
    Solved!
    Go to Solution.
    Attachments:
    HMP POWER ON.vi ‏18 KB
    1.png ‏156 KB
    2.png ‏178 KB

    There's no need for the while loops.  What you really want is a case structure from the error cluster in order to decide whether or not to show the error dialog.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    HMP POWER ON_BD.png ‏22 KB

  • How to get a error message when sms is not sent to a mobile no.

    Scenario: once po is finally released sms is sent to the respective vendor.This has been done. But, Now the client want to see the error details(i.e, the mobile no. to whom sms i s sent) if the sms is not sent to any mobile no. and also wants a z program through which they can schedule the background job of resending the sms to those no. who have not received.
    As i tried a lot with this but unable to go ahead, so plz help me <removed by moderator>
    TABLES:LFA1.
    DATA : WA_FINAL  LIKE ZME_EKKO_RLS ,
          IT_FINAL  TYPE STANDARD TABLE OF ZME_EKKO_RLS.
    DATA GV_MSG TYPE STRING.
    DATA GV(16) TYPE C.
    DATA  : GV_RETURN  TYPE STRING.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
    DATA: WF_STRING TYPE STRING ,
    RESULT TYPE STRING ,
    R_STR TYPE STRING .
    DATA: RESULT_TAB TYPE TABLE OF STRING.
    *BREAK-POINT.
    IF SY-TCODE = 'ME29N'.
      IF  SY-UCOMM = 'MESAVE' AND I_EKKO-PROCSTAT = '05'.
        SELECT * FROM ZME_EKKO_RLS INTO TABLE IT_FINAL
           WHERE  EBELN = I_EKKO-EBELN .
        IF NOT  IT_FINAL[] IS INITIAL .
          LOOP AT IT_FINAL INTO WA_FINAL .
            IF WA_FINAL-SSTAT = '02' .
              CONTINUE.
            ELSEIF  WA_FINAL-SSTAT = '01' .
              SELECT SINGLE * FROM LFA1 WHERE LIFNR = WA_FINAL-LIFNR.
              IF SY-SUBRC = 0.
                GV = LFA1-TELF1.
              ENDIF.
              CLEAR GV_MSG.
              CONCATENATE 'Dear Sir/Madam, PO No:' WA_FINAL-EBELN ' Dtd:' I_EKKO-BEDAT ' with reference to vendor no:' WA_FINAL-LIFNR 'has been released on you''.' 'Detail hardcopy will be sent to you soon' INTO GV_MSG.
              CLEAR WF_STRING.
              CONCATENATE
              'http://182.18.143.30/sendsms.php?username=edhik&password=194385&'
              'sender=TSIL&mobile='
              GV
              '&type=1&message='
              GV_MSG
              INTO
               WF_STRING.
              CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
                EXPORTING
                  URL                = WF_STRING
                IMPORTING
                  CLIENT             = HTTP_CLIENT
                EXCEPTIONS
                  ARGUMENT_NOT_FOUND = 1
                  PLUGIN_NOT_ACTIVE  = 2
                  INTERNAL_ERROR     = 3
                  OTHERS             = 4.
              CALL METHOD HTTP_CLIENT->SEND
                EXCEPTIONS
                  HTTP_COMMUNICATION_FAILURE = 1
                  HTTP_INVALID_STATE         = 2.
              CALL METHOD HTTP_CLIENT->RECEIVE
                EXCEPTIONS
                  HTTP_COMMUNICATION_FAILURE = 1
                  HTTP_INVALID_STATE         = 2
                  HTTP_PROCESSING_FAILED     = 3.
    *if sy-subrc = 0.
    *call method http_client->get_last_error
    *importing
    *code =
    *message = gv_errortext.
    *endif.
              CLEAR RESULT .
              RESULT = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
              REFRESH RESULT_TAB .
              SPLIT RESULT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE RESULT_TAB .
              REFRESH RESULT_TAB .
              SPLIT RESULT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE RESULT_TAB .
              LOOP AT RESULT_TAB INTO R_STR.
                CONCATENATE R_STR SPACE(1) INTO GV_RETURN.
               write:/ r_str.
              ENDLOOP .
              IF  NOT GV_RETURN IS INITIAL .
                UPDATE  ZME_EKKO_RLS
                       SET: SMSTX = GV_MSG ,
                             sstat = '01'
                   WHERE EBELN = WA_FINAL-EBELN .
                IF SY-SUBRC = 0 .
                  COMMIT WORK .
                ENDIF.
              ENDIF .
            ENDIF .
          ENDLOOP.
        ENDIF .
      ENDIF.
    ENDIF .
    Edited by: Vinod Kumar on Aug 1, 2011 2:58 PM

    Hi 
    when you call the webservce to send the sms using the method if it is successful it will return as success and if any issue it will raise the error which you have to handle, but it will not give you confirmation wether sms is sent ,
    regards
    m.a

  • How to get custom defined messages in WAD

    Hi
    can you please help me how to get customized error messages in WAD.
    While I'm executing in RSRT the customer exit variable throws error message saying that 'No Sales orders exist for this Sold_To Party' but when I execute same query using Bex WAD, then no error message throwing for me for given sold_to party. I tried with all options as given in below code, but WAD gives me system error that "No values found for the customer exit variable 'Zxxxx'. Please help me in this regard. Should I do any settings in WAD to get custom defined messages. Kindly let me know
    my code is as below
    I_STEP = 2.
    CASE i_vnam.
    WHEN 'Custome exit variable'.
    IF sy-subrc = 0.
    ELSE.
                   MESSAGE e060(/bmc/bw).  "No Authorization exist
                    g_errflag1 = 'X'.
                   exit.
                   CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                      EXPORTING
                        i_class  = '/bmc/bw'
                        i_type   = c_e                                    "'E'
                        i_number = '061'
                        i_msgv2  = l_msgv2.
                         RAISE NO_REPLACEMENT.
                    l_s_range-low = g_soldto.
              l_s_range-sign = c_sign_i.
              l_s_range-opt  = c_range_opt_eq.
              APPEND l_s_range TO e_t_range.
    ENDIF.
    I_STEP = 3.
      READ TABLE i_t_var_range INTO w_s_var_range
                  WITH KEY vnam = 'customer exit variabel'.
      IF sy-subrc = 0.
    Check the flag and throw message 'No Sales orders'.
        IF g_errflag1 = 'X'.
          l_msgv1     = 'No Sales orders'.
    Call the FM to populate message
          CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
            EXPORTING
              i_class  = c_r9
              i_type   = c_e                                    "'E'
              i_number = c_000
              i_msgv1  = l_msgv1
            EXCEPTIONS
              dummy    = 0
              OTHERS   = 0.
         CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
         CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
          RAISE NO_REPLACEMENT..
        ENDIF.
    Thanks & Regards
    silu

    Hi
    Custom Messages WAD

  • Please help me on itunes i can't sync my music i keep getting a error message [-69] how do i fix

    please help me on itunes i can't sync my music i keep getting a error message [-69] how do i fix

    Hi kidjojo,
    Welcome to Apple Support Communities.
    You may find some helpful suggestions in this article:
    iTunes displays a -69 error when syncing iPod
    http://support.apple.com/kb/HT1210
    Best,
    Jeremy

  • When I view email on my iPad, I get an error message saying "unable to process your request" . How do I correct this?

    When I access my iPad email, I get an error message saying "unable to process your request"  How do I correct this?

    Start with the basics. Force close mail and reset your iPad.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that doesn't help, you might want to consider resetting your router by unplugging it from power for about 30 seconds. That can help at times even if all of your other devices are connecting to the Internet. I suggest this, because the message that you are getting may be due to a bad connection to the Internet.

  • I just started getting the error message below - when I drag a file to TRASH, I get the message "Finder wants to make changes. Type in your password to allow this.  Why ? and how to to stop this request ?

    I just started getting the error message below, when I drag a file to TRASH, I get the message "Finder wants to make changes. Type in your password to allow this."  Why ? and how to to stop this request ?

    There should be nothing native to the OS X which would ask for a password
    or  other information on a restart, unless accompanied by the traditional login
    box with your user name.
    There are adware or marginal products that could be called malware (bad)
    that would impose their presence and some items that could have been
    downloaded by accident or through some corrupted free software site; of
    those some could ask for and gain permission to go through your Mac
    and maybe even run in the background to do other nefarious misdeeds.
    You could see if startup in SafeBoot allows you access past that the Completer.
    Since I don't have a pile of helpful article links on how to resolve various issues
    I'd be looking them up one way or another.
    There are some helpful items in the site http://thesafemac.com - see Tech Guides
    listed  (adware, malware, & performance) plus a link to the adwaremedic page.
    Also, Apple support has a helpful page on how to remove adware and other bits:
    •Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
    Hopefully this helps somewhat.
    Good luck & happy computing!

  • HT3500 I keep getting an error message that the "spools are full".  How do I access the spools and how do I empty them?

    I keep getting an error message that the "spools are full". Where do I find them and how to empty them?

    You may be able to determine the reason for this error by examining your Mac's logs with Console. To do that find the Console app - it is in your Utilities folder and looks like this
    You can find it by selecting Utilities from the Finder's Go menu.
    Open Console.
    If the log list column on the left is not already displayed, show the log list by selecting Show Log List from Console's View menu.
    Locate system.log in the list and select it. Many date and time-stamped entries will appear, hundreds of them, and you must find the entries relevant to your Mac's problem. To do that choose Clear Display from Console's toolbar. Leave Console running while you choose Print from iPhoto again. Examine any new entries logged in Console. If there are any, copy and paste them in a reply.

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

Maybe you are looking for