<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error Handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289963#M155050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coded like this, if there is any issues please correct me :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    LOOP AT messtab WHERE msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          msgid               = messtab-msgid&lt;/P&gt;&lt;P&gt;          msgnr               = messtab-msgnr&lt;/P&gt;&lt;P&gt;          msgv1               = messtab-msgv1&lt;/P&gt;&lt;P&gt;          msgv2               = messtab-msgv2&lt;/P&gt;&lt;P&gt;          msgv3               = messtab-msgv3&lt;/P&gt;&lt;P&gt;          msgv4               = messtab-msgv4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          message_text_output = w_textout.&lt;/P&gt;&lt;P&gt;      write : / w_textout.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code messtab is the internal table for BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Pavan Panduru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2006 14:11:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-13T14:11:42Z</dc:date>
    <item>
      <title>Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289956#M155043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using tcode f-02 for GL Opening Balance and for uploading I used the BDC programming and everything is works fine.&lt;/P&gt;&lt;P&gt;But how should I handle the errors using BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 06:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289956#M155043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T06:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289957#M155044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. BDCMSGCOLL&lt;/P&gt;&lt;P&gt;  All the messages (whether error/warning / success)&lt;/P&gt;&lt;P&gt;  will get collected in bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just display them to the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. We cannot take any action based on these&lt;/P&gt;&lt;P&gt;  errors thru abap code,&lt;/P&gt;&lt;P&gt;  bcos these errors are subjective&lt;/P&gt;&lt;P&gt;  and can be diagnosed only by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 06:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289957#M155044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T06:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289958#M155045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the syntax for CALL TRANSACTION:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION... { {[MODE mode] [UPDATE upd]} &lt;/P&gt;&lt;P&gt;                     | [OPTIONS FROM opt] } &lt;/P&gt;&lt;P&gt;                       [MESSAGES INTO itab] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare an internal table of type BDCMSGCOLL in your program and use the MESSAGES INTO option to get all error/warning/success messages into the same. You can then loop at this itab and display the messages to the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 06:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289958#M155045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T06:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289959#M155046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have look belwo code it will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the parameters for Call Transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR WA_CTU_PARAMS.&lt;/P&gt;&lt;P&gt;  WA_CTU_PARAMS-DISMODE = 'N'.&lt;/P&gt;&lt;P&gt;  WA_CTU_PARAMS-UPDMODE = 'S'.&lt;/P&gt;&lt;P&gt;  WA_CTU_PARAMS-NOBINPT = 'X'.&lt;/P&gt;&lt;P&gt;  WA_CTU_PARAMS-NOBIEND = 'X'.&lt;/P&gt;&lt;P&gt;  WA_CTU_PARAMS-DEFSIZE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call Transaction MM01&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF W_FLAG NE 'X'.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'MM01' USING T_BDCDATA OPTIONS FROM WA_CTU_PARAMS&lt;/P&gt;&lt;P&gt;                                             MESSAGES INTO T_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;    COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE T_BDCMSGCOLL LINES N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF N &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT T_BDCMSGCOLL INTO WA_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR ERR_LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        W_MSGNO = WA_BDCMSGCOLL-MSGNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'WRITE_MESSAGE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            MSGID = WA_BDCMSGCOLL-MSGID&lt;/P&gt;&lt;P&gt;            MSGNO = W_MSGNO&lt;/P&gt;&lt;P&gt;            MSGTY = WA_BDCMSGCOLL-MSGTYP&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            MESSG = ERR_LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Error that occurs during transactoon&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF ERR_LOG-MSGTY = 'E'.&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING T_UPLOAD TO  T_DOWNLOAD.&lt;/P&gt;&lt;P&gt;          MOVE ERR_LOG-MSGTX TO  T_DOWNLOAD-MSG.&lt;/P&gt;&lt;P&gt;          APPEND T_DOWNLOAD.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 07:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289959#M155046</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-13T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289960#M155047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   Look at the sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_MREC,              &lt;/P&gt;&lt;P&gt;        TCODE       LIKE BDCMSGCOLL-TCODE,&lt;/P&gt;&lt;P&gt;        DYNAME      LIKE BDCMSGCOLL-DYNAME,&lt;/P&gt;&lt;P&gt;        DYNUMB      LIKE BDCMSGCOLL-DYNUMB,&lt;/P&gt;&lt;P&gt;        MSGTYP      LIKE BDCMSGCOLL-MSGTYP,&lt;/P&gt;&lt;P&gt;        MSGSPRA     LIKE BDCMSGCOLL-MSGSPRA,&lt;/P&gt;&lt;P&gt;        MSGID       LIKE BDCMSGCOLL-MSGID,&lt;/P&gt;&lt;P&gt;        MSGNR       LIKE BDCMSGCOLL-MSGNR,&lt;/P&gt;&lt;P&gt;        MSGV1       LIKE BDCMSGCOLL-MSGV1,&lt;/P&gt;&lt;P&gt;        MSGV2       LIKE BDCMSGCOLL-MSGV2,&lt;/P&gt;&lt;P&gt;        MSGV3       LIKE BDCMSGCOLL-MSGV3,&lt;/P&gt;&lt;P&gt;        MSGV4       LIKE BDCMSGCOLL-MSGV4,&lt;/P&gt;&lt;P&gt;        ENV         LIKE BDCMSGCOLL-ENV,&lt;/P&gt;&lt;P&gt;        FLDNAME     LIKE BDCMSGCOLL-FLDNAME,&lt;/P&gt;&lt;P&gt;      END OF IT_MREC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_MTAB LIKE BDCMSGCOLL OCCURS 0 "Ò¯¾°¼Þ&amp;#151;p&lt;/P&gt;&lt;P&gt;              WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REFRESH: IT_MTAB.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION WK_TRANSCD&lt;/P&gt;&lt;P&gt;                   USING    BDCDATA&lt;/P&gt;&lt;P&gt;                   MODE     WK_NODISP&lt;/P&gt;&lt;P&gt;                   UPDATE   WK_UMODE&lt;/P&gt;&lt;P&gt;                   MESSAGES INTO IT_MTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WK_SUBRC = SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF WK_SUBRC = 0.&lt;/P&gt;&lt;P&gt;    PERFORM ENQUEUE_ZAT43.             &lt;/P&gt;&lt;P&gt;    DELETE FROM ZAT43 WHERE BUKRS = PR_BUKRS&lt;/P&gt;&lt;P&gt;                      AND   SEQNO = ITAB_REC-SEQNO.&lt;/P&gt;&lt;P&gt;    CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;      WHEN 0.&lt;/P&gt;&lt;P&gt;        COMMIT WORK.&lt;/P&gt;&lt;P&gt;      WHEN 4.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        MESSAGE A004 WITH 'ZAT43' SY-SUBRC.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    PERFORM DEQUEUE_ZAT43.          &lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WK_RCD = SY-SUBRC.&lt;/P&gt;&lt;P&gt;    MESSAGE S053(ZY) WITH IT_MSGF0 WK_RCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_MTAB.&lt;/P&gt;&lt;BR /&gt; MOVE IT_MTAB TO IT_MREC.&lt;BR /&gt; IT_MSGF1-MSG11_TCODE = IT_MREC-TCODE.&lt;BR /&gt; IT_MSGF1-MSG12_DYNAME = IT_MREC-DYNAME.&lt;BR /&gt; IT_MSGF2-MSG21_DYNUMB = IT_MREC-DYNUMB.&lt;BR /&gt; IT_MSGF2-MSG22_MSGTYP = IT_MREC-MSGTYP.&lt;BR /&gt; IT_MSGF3-MSG31_FLDNAME = IT_MREC-FLDNAME.&lt;BR /&gt;&lt;BR /&gt; MESSAGE S054(ZY) WITH IT_MSGF1 IT_MSGF2 IT_MSGF3.&lt;BR /&gt;&lt;BR /&gt; MESSAGE ID IT_MREC-MSGID&lt;BR /&gt; TYPE 'S'&lt;BR /&gt; NUMBER IT_MREC-MSGNR&lt;BR /&gt; WITH IT_MREC-MSGV1&lt;BR /&gt; IT_MREC-MSGV2&lt;BR /&gt; IT_MREC-MSGV3&lt;BR /&gt; IT_MREC-MSGV4.&lt;BR /&gt;&lt;B&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 07:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289960#M155047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T07:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289961#M155048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While doing call transaction, if an error occurs in updation, we declare bdcmsgcoll and store our messages in it and to retreive error message from it use function module 'FORMAT_MESSAGE' and capture the messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of the program code for that: &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  LOOP AT it_messtab. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      id     = it_messtab-msgid &lt;/P&gt;&lt;P&gt;      lang   = it_messtab-msgspra &lt;/P&gt;&lt;P&gt;      no     = it_messtab-msgnr &lt;/P&gt;&lt;P&gt;      v1     = it_messtab-msgv1 &lt;/P&gt;&lt;P&gt;      v2     = it_messtab-msgv2 &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;    msg    =  g_msg &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;      OTHERS = 0. &lt;/P&gt;&lt;P&gt;  IF it_messtab-msgtyp = 'S'. &lt;/P&gt;&lt;P&gt;    it_sucess-sucess_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_sucess-lifnr = it_header-lifnr." Based on your field &lt;/P&gt;&lt;P&gt;    it_sucess-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_sucess. &lt;/P&gt;&lt;P&gt;  ELSEIF it_messtab-msgtyp = 'E'. &lt;/P&gt;&lt;P&gt;    it_error-error_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_error-lifnr = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_error-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_error. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    it_info-info_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_info-lifnr    = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_info-tabix    = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_info. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 08:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289961#M155048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289962#M155049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. declare an internal table like BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let it be T_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. now, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING itab MESSAGESD T_BDCMSGCOLL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;NOTE: BDCMSGCOLL is an internal table which has, MSGNO, ID etc But it doesnot return &amp;lt;b&amp;gt;MESSAGE TEXT&amp;lt;/b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, to get the message text,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can call any of the following fn modules, whic take message id, no etc and return message text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"FORMAT_MESSAGE", "WRITE_MESSAGE", "BAPI_GET_MESSAGE_DETAIL" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.another easiest method is, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE T100 WITH KEY ID = MSGID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE T100-MSGTXT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 08:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289962#M155049</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-03-13T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289963#M155050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coded like this, if there is any issues please correct me :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    LOOP AT messtab WHERE msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          msgid               = messtab-msgid&lt;/P&gt;&lt;P&gt;          msgnr               = messtab-msgnr&lt;/P&gt;&lt;P&gt;          msgv1               = messtab-msgv1&lt;/P&gt;&lt;P&gt;          msgv2               = messtab-msgv2&lt;/P&gt;&lt;P&gt;          msgv3               = messtab-msgv3&lt;/P&gt;&lt;P&gt;          msgv4               = messtab-msgv4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          message_text_output = w_textout.&lt;/P&gt;&lt;P&gt;      write : / w_textout.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code messtab is the internal table for BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Pavan Panduru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 14:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289963#M155050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289964#M155051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Ya its perfectly right !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 14:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling/m-p/1289964#M155051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T14:15:23Z</dc:date>
    </item>
  </channel>
</rss>

