<?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 Error message handling in BAPI... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650993#M289271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am working on documentation of a BAPI used SAP insurance module. Now I want to see all the error messages associated/ handled in that BAPI. How can I do that ? Is there a table in data dictionary where I can see error messages handled by a given Function module/ BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 13:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-03T13:51:56Z</dc:date>
    <item>
      <title>Error message handling in BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650993#M289271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am working on documentation of a BAPI used SAP insurance module. Now I want to see all the error messages associated/ handled in that BAPI. How can I do that ? Is there a table in data dictionary where I can see error messages handled by a given Function module/ BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 13:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650993#M289271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error message handling in BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650994#M289272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there is nothing like that, the only way is to view the source, any messages will be written to the BAPIRET2 structure.  Yes, this will be a little cumbersome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 14:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650994#M289272</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-03T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error message handling in BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650995#M289273</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;If a BAPI Module has a Return Structure or Return Table, the connector checks for the message types A (abort) and E (error) to determine if the service call request processed successfully. A message type A or E indicates that the service call request failed to process. If a BAPI does not have a Return Structure or Return Table, you must implement your own error handling&lt;/P&gt;&lt;P&gt;Your bapi will return the  error messages if you have a structure and capture the messages in a table. The message table should have the structure BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;data:  gi_return     TYPE STANDARD TABLE OF bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the BAPI function&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentheader       = g_docheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_TYPE             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_KEY              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_SYS              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      accountgl            = gi_accountgl&lt;/P&gt;&lt;P&gt;      currencyamount       = gi_amount&lt;/P&gt;&lt;P&gt;      return               = gi_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSION1           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sookshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 14:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650995#M289273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error message handling in BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650996#M289274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can narrow it down a bit. Go to SE37 and enter the name of your BAPI. Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOto -&amp;gt; Main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the top include. That will take you to the ABAP editor. Double click on the message-id used by the program. This will take you to the messages for the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI can use messages from other message classes and not all messages in this class may be used by your BAPI, but it should be a start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 15:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650996#M289274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T15:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error message handling in BAPI...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650997#M289275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here´s one possible solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MESSAGES_INITIALIZE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_return_bapi. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MESSAGE_STORE' &lt;/P&gt;&lt;P&gt;         EXPORTING &lt;/P&gt;&lt;P&gt;              arbgb          = it_return_bapi-id &lt;/P&gt;&lt;P&gt;              exception_if_not_active = ' ' &lt;/P&gt;&lt;P&gt;              msgty                = it_return_bapi-type &lt;/P&gt;&lt;P&gt;              msgv1          = it_return_bapi-message_v1 &lt;/P&gt;&lt;P&gt;              msgv2          = it_return_bapi-message_v2 &lt;/P&gt;&lt;P&gt;              msgv3          = it_return_bapi-message_v3 &lt;/P&gt;&lt;P&gt;              msgv4          = it_return_bapi-message_v4 &lt;/P&gt;&lt;P&gt;              txtnr          = it_return_bapi-number &lt;/P&gt;&lt;P&gt;              zeile          = ' ' &lt;/P&gt;&lt;P&gt;         EXCEPTIONS &lt;/P&gt;&lt;P&gt;              message_type_not_valid  = 1 &lt;/P&gt;&lt;P&gt;              not_active              = 2 &lt;/P&gt;&lt;P&gt;              OTHERS                  = 3. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MESSAGES_STOP' &lt;/P&gt;&lt;P&gt;       EXCEPTIONS &lt;/P&gt;&lt;P&gt;            a_message = 04 &lt;/P&gt;&lt;P&gt;            e_message = 03 &lt;/P&gt;&lt;P&gt;            i_message = 02 &lt;/P&gt;&lt;P&gt;            w_message = 01. &lt;/P&gt;&lt;P&gt;  IF NOT sy-subrc IS INITIAL. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MESSAGES_SHOW' &lt;/P&gt;&lt;P&gt;         EXPORTING &lt;/P&gt;&lt;P&gt;              i_use_grid         = 'X' &lt;/P&gt;&lt;P&gt;              i_amodal_window    = i_amodal_window &lt;/P&gt;&lt;P&gt;         EXCEPTIONS &lt;/P&gt;&lt;P&gt;              inconsistent_range = 1 &lt;/P&gt;&lt;P&gt;              no_messages        = 2 &lt;/P&gt;&lt;P&gt;              OTHERS             = 3. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Nov 2006 09:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-handling-in-bapi/m-p/1650997#M289275</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2006-11-04T09:46:25Z</dc:date>
    </item>
  </channel>
</rss>

