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

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 actual error from Crystal Report

    We are using Crystal report in web service.
    We faced some problem due to crystal report unexpected error.
    Refer the below error message.
    Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
    at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
    at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
    at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
    at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
    at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
    How we get the actual error from crystal report?
    Thanks in Advance

    Same as
    crystal report unexpected error in Web service (IIS)
    Closing this thread.
    Ludek

  • 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 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
    -------------------------------------------------------------------

  • 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 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 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 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

  • I get an error message (-54) when trying to sync my iphone 6 plus wiht itunes, how do I correct this?

    I get an error message (-54) when trying to sync my iPhone 6 plus with iTunes on a window based computer, how do I fix this?

    I actually meant to post this link in my other post and now see I didn't.
    http://docs.info.apple.com/article.html?artnum=304893
    It may be of no use if you're up to date with software.
    Google also throws up these.
    http://www.google.com/search?client=safari&rls=en-us&q=ipoderror48&ie=UTF-8&oe=UTF-8

  • 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

  • How can i get the error message from the thrown/raised exception?

    DB version:10gR2
    Examples for this thread taken from
    Want Stored Procs to get exectuted regardless of preceeding SPs Success or
    I have a package with several functions and procedures inside.I created a caller procedure called callProcs, which will execute various procedures within the package in the appropriate order.
    In the below example i cannot get the error message thrown from line 20
    create or replace package body mypackage
    is
    variable_proc1 number;
    variable_proc2 number;
    variable_proc3 number;
    v_result       number;
    my_exception   exception;
    procedure proc1
    is
    begin
    select 8/0 into variable_proc1 from dual;
    exception
              when others
              then raise my_exception; ----line 20
    end;
    procedure proc2
    is
    begin
    select 1 into variable_proc2 from dual;
    exception
              when others
              then
                   null;
    end;
    procedure proc3
    is
    begin
    select 3 into variable_proc3 from dual;
    exception
              when others
              then
                   null;
    end;
    Procedure caller_proc
    is
    begin
    proc1;
    proc2;
    proc3;
    v_result:=variable_proc2+variable_proc3;
    dbms_output.put_line('The output is '||v_result);
    exception
              when my_exception
              then
    dbms_output.put_line('Heyyyyy the error is '||SQLERRM); -- exception caught at line 64 of caller proc
    end;
    end mypackage;
    When i try executing the caller proc, i don't get the error. Instead i get the text User-Defined Exception as shown below
    set serveroutput on
    exec mypackage.caller_proc;
    Heyyyyy the error is User-Defined Exception
    PL/SQL procedure successfully completed.Edited by: user10633418 on Mar 10, 2009 11:30 PM

    Thank you justin.
    Sorry my earlier post was a bit ambiguous.
    I wanted the error generated at proc1 to be captured at caller proc's Exception handling section (line 64) so that i could log the error to an ERR_LOG table.
    I can actually log this error at proc1 itself like
    exception
    when others
    THEN
    error_message :='My custom message for the particular proc '||SQLERRM;
    dbms_output.put_line(error_message);
    logerror(error_message); --an autonomous error logging proc
    raise;But there is a RAISE statement in proc1's exception handling, so the exception gets propogated to caller proc's exception handling section {color:#ff0000}*and another redundant row will be created at ERR_LOG table for the same error because there is a*{color}
    logerror(error_message);--an autonomous error logging proc
    in the WHEN OTHERS section of exception handling section of the caller proc
    I want to avoid the creation of this redundant row in ERR_LOG table.

  • I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.

  • I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • I'm trying to open itunes and keep getting an error message that i'm missing a file, MSVCR80.dll.  How do I fix this?  I've tried uninstalling and re-installing itunes several times.

    I am trying to open itunes on  my computer.  Windows 7 64-bit operating system.  When I try to open itunes, I get an error message saying MSVCR80.dll file is missing.  Where can I find this file and how can I get it on my computer?  I have tried uninstalling and reinstalling itunes several times.  Thanks for any help.

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

Maybe you are looking for

  • My iMac sorrows... #1, #2, #3, #4 and now maybe #5

    Well, for those who have read my other posts regarding my horrific experiences of iMac terror, I do truly hope this is the last. iMac #1: 24" Aluminum iMac 2.4Ghz had original and common freezing problem, was replaced on day #88 after 11 days of sitt

  • Mac mini 2011 to displayport display

    How do I connect the new Mac mini 2011 (thunderbolt port) to an displayport display? What kind of cable do I need?

  • Update or not?

    I know it's up to each individual if they want to upgrade or not. I have been waiting for 3.0 to come out since they accounced it. After reading all the messages about bugs, etc and what "spfparker" said, SUGGEST THAT NO ONE UPDATES TO OS 3.0!!! is t

  • Link Between Shopping Cart and RFx SRM

    Hi all, We have a reporting requirement in BI/BW to merge Shopping Cart and RFx data -- e.g. how many Shopping carts got converted to RFx..etc I can use Transaction Code bbp_pd and see that the links are available between Shopping cart and RFx. Corre

  • Featured News counter & description location

    Can the location of the description and counter/arrows be changed for each image in featured news composition widget? For example, I'd like the description to be aligned with the left side of each image and below it. If the images are different sizes