<?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 catching error message from standard function module to internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621608#M872487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am calling a FM in my custom prog.&lt;/P&gt;&lt;P&gt;After execution of the FM some auto generated errors is getting displayed. &lt;/P&gt;&lt;P&gt;I want to pass this error to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_CHECK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_checkrule   = t005-prbkn&lt;/P&gt;&lt;P&gt;        i_checkfield  = it_ven-bankn&lt;/P&gt;&lt;P&gt;        i_checklength = t005-lnbkn&lt;/P&gt;&lt;P&gt;        i_checkmask   = space&lt;/P&gt;&lt;P&gt;        i_fname       = fname&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_valid     = 1&lt;/P&gt;&lt;P&gt;        OTHERS        = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to catch this particular error message in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 15:41:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T15:41:17Z</dc:date>
    <item>
      <title>catching error message from standard function module to internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621608#M872487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am calling a FM in my custom prog.&lt;/P&gt;&lt;P&gt;After execution of the FM some auto generated errors is getting displayed. &lt;/P&gt;&lt;P&gt;I want to pass this error to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_CHECK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_checkrule   = t005-prbkn&lt;/P&gt;&lt;P&gt;        i_checkfield  = it_ven-bankn&lt;/P&gt;&lt;P&gt;        i_checklength = t005-lnbkn&lt;/P&gt;&lt;P&gt;        i_checkmask   = space&lt;/P&gt;&lt;P&gt;        i_fname       = fname&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_valid     = 1&lt;/P&gt;&lt;P&gt;        OTHERS        = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to catch this particular error message in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621608#M872487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T15:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: catching error message from standard function module to internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621609#M872488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use message xxxx into gv_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_message type char200 (or  alike).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: msgtext  type char200.&lt;/P&gt;&lt;P&gt;MESSAGE E004 WITH 'bla bla bla' INTO msgtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 2, 2008 5:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621609#M872488</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-02T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: catching error message from standard function module to internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621610#M872489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can call FM 'FORMAT_MESSAGE' to get it in itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621610#M872489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: catching error message from standard function module to internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621611#M872490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even we can create an internal table  nad move the messages to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF L_ERR OCCURS 0,&lt;/P&gt;&lt;P&gt;        SNO LIKE SY-tabix,                                  "serial no&lt;/P&gt;&lt;P&gt;        MSGTY LIKE SY-MSGTY,                         "message type&lt;/P&gt;&lt;P&gt;        MSGNO LIKE SY-MSGNO,                        "message no&lt;/P&gt;&lt;P&gt;        ERR_TEXT LIKE T100-TEXT,                     "message text&lt;/P&gt;&lt;P&gt;       END OF L_ERR.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          L_ERR-SNO      = SY-TABIX.&lt;/P&gt;&lt;P&gt;          L_ERR-MSGTY    = SY-MSGTY.&lt;/P&gt;&lt;P&gt;          L_ERR-MSGNO    = SY-MSGNO.&lt;/P&gt;&lt;P&gt;          L_ERR-ERR_TEXT = TEXT-015.                        "Problem encounterd in uploading data.&lt;/P&gt;&lt;P&gt;          APPEND L_ERR.&lt;/P&gt;&lt;P&gt;          clear L_ERR.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 16:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catching-error-message-from-standard-function-module-to-internal-table/m-p/3621611#M872490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T16:06:18Z</dc:date>
    </item>
  </channel>
</rss>

