<?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 Function module to read error message provided message class and mssg no. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598228#M1436950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to populate my database table with the error message.&lt;/P&gt;&lt;P&gt;The error message as comming form standard code in an ITAB.&lt;/P&gt;&lt;P&gt;I am getting the error class and message number.&lt;/P&gt;&lt;P&gt;Can any body please tell me any function module to read the error.&lt;/P&gt;&lt;P&gt;Or is there any way to populate the database table with the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandipan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2010 06:47:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-15T06:47:26Z</dc:date>
    <item>
      <title>Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598228#M1436950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to populate my database table with the error message.&lt;/P&gt;&lt;P&gt;The error message as comming form standard code in an ITAB.&lt;/P&gt;&lt;P&gt;I am getting the error class and message number.&lt;/P&gt;&lt;P&gt;Can any body please tell me any function module to read the error.&lt;/P&gt;&lt;P&gt;Or is there any way to populate the database table with the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandipan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 06:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598228#M1436950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-15T06:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598229#M1436951</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;You can use the FM &lt;STRONG&gt;MESSAGE_TEXT_BUILD&lt;/STRONG&gt;. You need to pass the place holders also(msgv1/2/3/4 for getting complete text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can use table T100 for reading the messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 06:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598229#M1436951</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-02-15T06:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598230#M1436952</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;&lt;STRONG&gt;Please search for basics before posting threads.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here use the FM "BALW_BAPIRETURN_GET2"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The import parameters for this FM are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE - Message Type (can be error/success.info etc)&lt;/P&gt;&lt;P&gt;CL - Message Class&lt;/P&gt;&lt;P&gt;NUMBER - Message No&lt;/P&gt;&lt;P&gt;PAR1 - Message Place Holder1, if any exists&lt;/P&gt;&lt;P&gt;PAR2 - Message Place Holder2, if any exists&lt;/P&gt;&lt;P&gt;PAR3 - Message Place Holder3, if any exists&lt;/P&gt;&lt;P&gt;PAR4 - Message Place Holder4, if any exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get the message text information directly from the export parameter RETURN-MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 06:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598230#M1436952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-15T06:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598231#M1436953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saneeepan,&lt;/P&gt;&lt;P&gt;If you just want to read the message then you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM -  BALW_BAPIRETURN_GET2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And pass the values - mes class and no and you will get message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        type   = LS_MESSTAB-MSGTYP&lt;/P&gt;&lt;P&gt;        cl     = LS_MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;        number = L_NUMBER&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return = EV_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 06:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598231#M1436953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-15T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598232#M1436954</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;&lt;STRONG&gt;RPY_MESSAGE_COMPOSE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ESSAGE_PREPARE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these FMs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 06:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598232#M1436954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-15T06:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598233#M1436955</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;    You can use the Function module mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  

 call transaction 'VA42' using bdcdata  mode  w_mode
                                    update  w_synch
                                  messages into it_mesgtab.

    loop at it_mesgtab into wa_mesgtab where msgtyp ca 'EA'.
    endloop.
    if sy-subrc &amp;lt;&amp;gt; 0.
      read table it_mesgtab into wa_mesgtab index 1.
    endif.

    call function 'MESSAGE_TEXT_BUILD'
      exporting
        msgid               = wa_mesgtab-msgid          "Messg class
        msgnr               = wa_mesgtab-msgnr          "Messg No.
        msgv1               = wa_mesgtab-msgv1
        msgv2               = wa_mesgtab-msgv2
        msgv3               = wa_mesgtab-msgv3
        msgv4               = wa_mesgtab-msgv4
      importing
        message_text_output = it_err-sapmessage.

   Append it_err.

&lt;/CODE&gt;&lt;/PRE&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;     Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 07:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598233#M1436955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-15T07:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to read error message provided message class and mssg no.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598234#M1436956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gentlemen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP has provided a statement to pass the message short text into a variable. (MESSAGE ... INTO ) who needs a FM to do the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this: [http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm#!ABAP_ADDITION_3@3@|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm#!ABAP_ADDITION_3@3@]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 07:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-read-error-message-provided-message-class-and-mssg-no/m-p/6598234#M1436956</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-15T07:14:22Z</dc:date>
    </item>
  </channel>
</rss>

