<?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: Handle Error After Commit Work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952236#M696202</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;the problem is that once you call the FM IN UPDATE TASK you no longer have the chance to access that return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that an error has been reported if the sy-subrc after the "COMMIT WORK AND WAIT" is not initial. In SM13 I can see the error reported by the FM that failed, but I'd like to know if it is possible to retrieve that information in my ABAP program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 07:10:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T07:10:54Z</dc:date>
    <item>
      <title>Handle Error After Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952234#M696200</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;I'd like to know if there is any way to get information about an error generated during the excution of some FM in update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the 'commit work and wait' statement which gives me a sy-subrc &amp;lt;&amp;gt; 0 in case of error during the update, but I need to retrieve information about the error. Is it possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 22:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952234#M696200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T22:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Error After Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952235#M696201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually write a custom function module ( a wrapper ) with a return table parameter and call the standard function module inside the custom funciton module. Then I write any errrors from the Standard FM to the return table and email it to the user that ran the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 22:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952235#M696201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T22:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Error After Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952236#M696202</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;the problem is that once you call the FM IN UPDATE TASK you no longer have the chance to access that return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that an error has been reported if the sy-subrc after the "COMMIT WORK AND WAIT" is not initial. In SM13 I can see the error reported by the FM that failed, but I'd like to know if it is possible to retrieve that information in my ABAP program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 07:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952236#M696202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T07:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Error After Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952237#M696203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant is you submit the wrapper FM in update task. When this wrapper FM runs, it will simply call the Standard function module and capture all the error messages into an internal table ( a return table) and email the contents of that table to the user that ran the program using the following funciton module SO_NEW_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did something like this and it has been working pretty good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 14:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-after-commit-work/m-p/2952237#M696203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T14:42:36Z</dc:date>
    </item>
  </channel>
</rss>

