<?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: Showing the Error message problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477203#M835868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, it is not &lt;STRONG&gt;BAPIRET2&lt;/STRONG&gt; but &lt;STRONG&gt;BAPIRET1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a filed Type at BAPIRET1. This field contain Message type, like S for Success, E for Error, W for Warning, I for Info and  A for Abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to show the error message, just display message where BAPIRET1-Type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 01:13:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T01:13:49Z</dc:date>
    <item>
      <title>Showing the Error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477201#M835866</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;How am i going to show the message in the i_messages? I just need its first entry... but Im not sure which field of bapiret2 contains the error message. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_messages like bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_PROCORDCONF_CREATE_HDR'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return      = i_messages&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      athdrlevels = i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE i_messages WITH KEY type = c_error.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    LOOP AT i_messages WHERE type = c_error.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           Show errors generated from i_messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    MESSAGE i006 WITH v_orderno.&lt;/P&gt;&lt;P&gt;    LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 00:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477201#M835866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477202#M835867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The field MESSAGE of the structure bapiret2 should contain the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does not contain as is in few circumstances, then you have to call the FM 'FORMAT_MESSAGE'  and pass the  message ID,language and other paramters that are returned in the BAPIRET2 structure to get the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avanish Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 01:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477202#M835867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T01:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477203#M835868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, it is not &lt;STRONG&gt;BAPIRET2&lt;/STRONG&gt; but &lt;STRONG&gt;BAPIRET1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a filed Type at BAPIRET1. This field contain Message type, like S for Success, E for Error, W for Warning, I for Info and  A for Abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to show the error message, just display message where BAPIRET1-Type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 01:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477203#M835868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T01:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Showing the Error message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477204#M835869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my message class... I'll just put &amp;amp; to the message short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that be fine? will it now show the whole message text in field message of bapiret2? Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 02:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/showing-the-error-message-problem/m-p/3477204#M835869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T02:15:48Z</dc:date>
    </item>
  </channel>
</rss>

