<?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: FM for error messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257346#M777977</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;u can use either "FORMAT_MESSAGE" OR "MESSAGE_TEXT_BUILD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 12:21:52 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2008-01-17T12:21:52Z</dc:date>
    <item>
      <title>FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257342#M777973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could anyone tell me which Function Module is used to retrieve error messages in BDC? Code samples will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257342#M777973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257343#M777974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;format_message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example...&lt;/P&gt;&lt;P&gt;data : v_message(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction NNNN mode A update S messages into it_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_messages where msgty = 'E'.&lt;/P&gt;&lt;P&gt;call function 'format_message'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;*it_messages details&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;v_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; v_message.&lt;/P&gt;&lt;P&gt;clear v_message.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257343#M777974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257344#M777975</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;STRONG&gt;FORMAT_MESSAGE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257344#M777975</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2008-01-17T12:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257345#M777976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using function module 'FORMAT_MESSAGE' you can 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257345#M777976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257346#M777977</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;u can use either "FORMAT_MESSAGE" OR "MESSAGE_TEXT_BUILD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257346#M777977</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-01-17T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: FM for error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257347#M777978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function modules that could be used are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORMAT_MESSAGE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUILD_TEXT_MESSAGE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this helps,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-for-error-messages/m-p/3257347#M777978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T12:23:19Z</dc:date>
    </item>
  </channel>
</rss>

