<?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: How to avoid commit work in call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153373#M118116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible, try to combine the three transactions into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or - before posting any of the transactions, try to simulate them. You can check the message table to see if there were any errors. Don't proceed if there are any. This won't be perfect because I think the transaction could fail even if it simulates OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or - post the first two. If the third one fails, back the other two out (reversals). I've had to do this (for budget documents). It works, but it's clumsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2006 16:57:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-02T16:57:12Z</dc:date>
    <item>
      <title>How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153371#M118114</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 have to process several account entries using call transaction (one call for each entry) but these entries are related and if, for example, the third entry fails none of the previous entries will be stored in the system (that is 1st, 2nd and third entry will fail and the process stop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to control when occurs the commit work, that in my case  it will be at the end of the account entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this 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, 02 Feb 2006 16:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153371#M118114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T16:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153372#M118115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction is per definition a complete business transaction, so commit work is essential part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you find a way to make your changes with one call transaction (switching to new account entry without leaving the transaction) or you trigger storno (cancel) bookings in case of a failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 16:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153372#M118115</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-02-02T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153373#M118116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible, try to combine the three transactions into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or - before posting any of the transactions, try to simulate them. You can check the message table to see if there were any errors. Don't proceed if there are any. This won't be perfect because I think the transaction could fail even if it simulates OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or - post the first two. If the third one fails, back the other two out (reversals). I've had to do this (for budget documents). It works, but it's clumsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 16:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153373#M118116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153374#M118117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On second thought, use a BAPI (BAPI_ACC_GL_POSTING_POST for one). I think you should be able to do several postings before doing a commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 18:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153374#M118117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T18:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153375#M118118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TO BYPASS THE COMMIT WORK EXECUTED BY TRANSACTION, WE HAVE UPDATE BUNDLING TECHNIQUES.&lt;/P&gt;&lt;P&gt;WITH THESE TECHNIQUES WE CAN BYPASS THE SYSTEM COMMIT UNTIL WE GIVE COMMIT BEXPLICITLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM ...........ON COMMIT&lt;/P&gt;&lt;P&gt;CALL &amp;lt;FN&amp;gt; ON UPDATE TASK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 04:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153375#M118118</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-02-03T04:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153376#M118119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be a test or simulate option on these transactions. Do that to check if there are any errors, and if all of them pass, then do the actual call transaction with commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 05:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153376#M118119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153377#M118120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U are using CALL TRANSACTION usin BDCDATA&lt;/P&gt;&lt;P&gt;   in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Instead,&lt;/P&gt;&lt;P&gt;   Write this code&lt;/P&gt;&lt;P&gt;   in a new FM (of type UPDATE MODULE - Start Immd.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now create another program,&lt;/P&gt;&lt;P&gt;  and call this FM (passing parameters of 1 entry)&lt;/P&gt;&lt;P&gt;  for each ENTRY in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. After the loop is completed,&lt;/P&gt;&lt;P&gt;   write COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 This will solve your problem .&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 05:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153377#M118120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T05:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid commit work in call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153378#M118121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hymavathi, Amit!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In update tasks only restricted possibilities are available:&lt;/P&gt;&lt;P&gt;"While an update function module is processed in an update work process, you are not allowed to execute the statements SUBMIT, CALL DIALOG, CALL SCREEN, CALL TRANSACTION, COMMIT WORK, ROLLBACK WORK and all other statements that provoke a database commit."(help call function in update task)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this can't be used to bundle several call transactions - because a transaction is still per definition a complete unit and an update task can only work for one unit or work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This perform ... on commit / call .. in update task can be used to bundle several direct table updates (on Z-tables of course &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; and FM calls, but nothing more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 07:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-commit-work-in-call-transaction/m-p/1153378#M118121</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-02-03T07:48:10Z</dc:date>
    </item>
  </channel>
</rss>

