<?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 COMMIT WORK problem on batch input sessions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855657#M47136</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've a problem in an ABAP report that I've developed and&lt;/P&gt;&lt;P&gt;have no idea how to solve it easily:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report just calls another report through a batch input&lt;/P&gt;&lt;P&gt;session that I've created with SHDB. The report called&lt;/P&gt;&lt;P&gt;is a bit complex: it calls several transactions and in&lt;/P&gt;&lt;P&gt;between, performs some commits (with COMMIT WORK) after&lt;/P&gt;&lt;P&gt;changes have been made on custom tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: when I execute my transaction at the first&lt;/P&gt;&lt;P&gt;time, everything goes ok: all tasks are performed by&lt;/P&gt;&lt;P&gt;the called report. But if I try to execute it again the&lt;/P&gt;&lt;P&gt;called report stops after the first COMMIT WORK&lt;/P&gt;&lt;P&gt;is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem? Is there any system cleanup that I've&lt;/P&gt;&lt;P&gt;to do between report runnings? If not, is there any&lt;/P&gt;&lt;P&gt;alternative solution to do this (rewrite all the code&lt;/P&gt;&lt;P&gt;in my own transaction is excluded due to the transaction&lt;/P&gt;&lt;P&gt;complexity and code maintenance problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be great!&lt;/P&gt;&lt;P&gt;Manuel Dias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2005 17:56:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-03-31T17:56:43Z</dc:date>
    <item>
      <title>COMMIT WORK problem on batch input sessions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855657#M47136</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've a problem in an ABAP report that I've developed and&lt;/P&gt;&lt;P&gt;have no idea how to solve it easily:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report just calls another report through a batch input&lt;/P&gt;&lt;P&gt;session that I've created with SHDB. The report called&lt;/P&gt;&lt;P&gt;is a bit complex: it calls several transactions and in&lt;/P&gt;&lt;P&gt;between, performs some commits (with COMMIT WORK) after&lt;/P&gt;&lt;P&gt;changes have been made on custom tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: when I execute my transaction at the first&lt;/P&gt;&lt;P&gt;time, everything goes ok: all tasks are performed by&lt;/P&gt;&lt;P&gt;the called report. But if I try to execute it again the&lt;/P&gt;&lt;P&gt;called report stops after the first COMMIT WORK&lt;/P&gt;&lt;P&gt;is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem? Is there any system cleanup that I've&lt;/P&gt;&lt;P&gt;to do between report runnings? If not, is there any&lt;/P&gt;&lt;P&gt;alternative solution to do this (rewrite all the code&lt;/P&gt;&lt;P&gt;in my own transaction is excluded due to the transaction&lt;/P&gt;&lt;P&gt;complexity and code maintenance problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be great!&lt;/P&gt;&lt;P&gt;Manuel Dias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2005 17:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855657#M47136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-31T17:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK problem on batch input sessions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855658#M47137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use function "BAPI_TRANSACTION_COMMIT" instead of COMMIT WORK to take advantage of SAP's programming experience. You might try a similar approach. A quick peek inside this function shows me that it uses the &amp;lt;b&amp;gt;COMMIT WORK AND WAIT&amp;lt;/b&amp;gt; variant in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned the complexity of your data entry process. Have you tried using the "AND WAIT" addition? Your problem may be caused by some sort of record locking collision upon data entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2005 18:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855658#M47137</guid>
      <dc:creator>juan_suros</dc:creator>
      <dc:date>2005-03-31T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT WORK problem on batch input sessions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855659#M47138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is a problem with locking then write out the error into a message table so that will at least give you a clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2005 13:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-problem-on-batch-input-sessions/m-p/855659#M47138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-01T13:21:27Z</dc:date>
    </item>
  </channel>
</rss>

