<?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: error handling in background bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771162#M1118278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally has every bapi a return structure or return internal table like BAPIRET. It gives the result of the call.&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;hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2008 08:59:34 GMT</pubDate>
    <dc:creator>h_senden2</dc:creator>
    <dc:date>2008-10-30T08:59:34Z</dc:date>
    <item>
      <title>error handling in background bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771161#M1118277</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;We have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM run_bapi ON COMMIT.

 FORM run_bapi.

   CALL FUNCTION 'BAPI_GOODSMVT_CREATE'  IN BACKGROUND TASK
        EXPORTING
             goodsmvt_header  = l_goods
             goodsmvt_code    = l_code
        TABLES
             goodsmvt_item    = l_item
             return           = l_return.

* Error handling work here????

 ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the bapi fails to carry out the goods movement, we want to see the error somewhere (WF, application log....wherever).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, if I had control of inside the bapi I could do it but is there another way? &lt;/P&gt;&lt;P&gt;And I don't think any checks for the error after the function call will be reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 08:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771161#M1118277</guid>
      <dc:creator>aidan_mulcahy</dc:creator>
      <dc:date>2008-10-30T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in background bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771162#M1118278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally has every bapi a return structure or return internal table like BAPIRET. It gives the result of the call.&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;hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 08:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771162#M1118278</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-10-30T08:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in background bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771163#M1118279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes the lx_return will be populated when the FM is actually run but the function is being run in background so my question is if I check that table after the call function will that code be reached? I am doing a test now to see.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771163#M1118279</guid>
      <dc:creator>aidan_mulcahy</dc:creator>
      <dc:date>2008-10-30T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in background bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771164#M1118280</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 I don't call the function in background task, the error table is populated but this means that there could be locking issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to still call it in background but force the FM to populate the error table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 13:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-background-bapi/m-p/4771164#M1118280</guid>
      <dc:creator>aidan_mulcahy</dc:creator>
      <dc:date>2008-11-03T13:19:45Z</dc:date>
    </item>
  </channel>
</rss>

