<?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: Potential problems with using a report to run a commit in a separate LUW. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868941#M1322867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate the feedback on this.  Seems like a nice option to keep in mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 21:39:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-03T21:39:33Z</dc:date>
    <item>
      <title>Potential problems with using a report to run a commit in a separate LUW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868938#M1322864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with a classic Badi within a transaction where I wanted to commit some information to a database before the commit that occurs at the end of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting a commit point directly inside the BADI caused problems with cursors that were open inside the transaction, so I researched some and discovered that Report Programs can run in a separate database Logical Unit of Work (LUW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coded my BADI to call a report which does some database work based on input parameters, and then commits this work to the database before returning control back to the calling BADI function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of any potential problems from doing this?  It seems like a good way to get around restrictions on the use of commit points inside transactions, but I'm not sure if there could be potential undesired effects from doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone tried this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 20:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868938#M1322864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-28T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Potential problems with using a report to run a commit in a separate LUW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868939#M1322865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there might some redundant data... where your process updates and the new task/LUW also updates the table... apart from that I dont see much problem in using a new task&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 21:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868939#M1322865</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-28T21:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Potential problems with using a report to run a commit in a separate LUW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868940#M1322866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I did it too. We faced some issues with commit when using fm &lt;STRONG&gt;HR_INFOTYPE_OPERATION&lt;/STRONG&gt; . We had to enclose it in separate report which only then let us do physical change in DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is to be noticed here as well is (according to SAP) that DB commit is triggered each time &lt;EM&gt;work process&lt;/EM&gt; is released which happens when:&lt;/P&gt;&lt;P&gt;- system shows dialog message&lt;/P&gt;&lt;P&gt;- RFC call is executed&lt;/P&gt;&lt;P&gt;- new transaction is called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above however didn't work for me in couple cases, but using separate SAP LUW solves the problem (as you already read). This happens each time:&lt;/P&gt;&lt;P&gt;- new report is called (SUBMIT ...), &lt;/P&gt;&lt;P&gt;- new transaction is called (CALL TRANSACTION ...)&lt;/P&gt;&lt;P&gt;- new asynchoronus RFC call is executed (CALL FUNCTION...STARTING NEW TASK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach works fine for cases I met and had to overcome with such solution. So far we didn't face any issues with that. Works perfectly &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 21:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868940#M1322866</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-07-28T21:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Potential problems with using a report to run a commit in a separate LUW.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868941#M1322867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate the feedback on this.  Seems like a nice option to keep in mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 21:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/potential-problems-with-using-a-report-to-run-a-commit-in-a-separate-luw/m-p/5868941#M1322867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T21:39:33Z</dc:date>
    </item>
  </channel>
</rss>

