<?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: Internal commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259666#M1016649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT AND RETURN executes the program in the same session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the commit affects both programs (same LUW)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 16:57:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T16:57:02Z</dc:date>
    <item>
      <title>Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259660#M1016643</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;Is there a way to commit a single database operation, outside the main transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to perform a commit inside of a function module without confirm the caller program's luw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use STARTING NEW TASK, it works, but there is a session limit per user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function module saves a access log in a Z transparent table.&lt;/P&gt;&lt;P&gt;This log must be always generated (even if a rollback was performed outside this FM) and can´t change the caller program flow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Darley.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 20:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259660#M1016643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T20:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259661#M1016644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the sure-shot solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Make the FM RFC enabled.&lt;/P&gt;&lt;P&gt;2)Make all the parameters global.&lt;/P&gt;&lt;P&gt;3)Call the tRFC in BACKGROUND TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abap-explorer.blogspot.com/" target="test_blank"&gt;http://abap-explorer.blogspot.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 20:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259661#M1016644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259662#M1016645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sourav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition IN BACKGROUND TASK for the call function does not execute the FM. It register to be executed when the COMMIT WORK statement is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no commit in the caller program, my log will not be generated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Darley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 12:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259662#M1016645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259663#M1016646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was an article in the SAP Professional Journal on this very question.  It recommends using Secondary Database Connections.  If you start reading the ABAP help on "COMMIT CONNECTION", you'll find the information you need quite quickly.  Or buy the magazine of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, however, that these are marked by SAP as "for internal use only", so they're used at own risk!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative, write a file to the appserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 12:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259663#M1016646</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-12T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259664#M1016647</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;  You can do the the update part alone another program ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   how does Submit and return work out?.. may be you can try &lt;/P&gt;&lt;P&gt;   that and let me know the results..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 13:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259664#M1016647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259665#M1016648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a test using COMMIT CONNECTION &lt;EM&gt;con&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;EM&gt;con&lt;/EM&gt; has the same value of de default connection, this commit complete the current LUW, exactly as the commit work statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259665#M1016648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259666#M1016649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT AND RETURN executes the program in the same session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the commit affects both programs (same LUW)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259666#M1016649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259667#M1016650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I made a test using COMMIT CONNECTION &lt;EM&gt;con&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; If &lt;EM&gt;con&lt;/EM&gt; has the same value of de default connection, this commit complete the current LUW, exactly as the commit work statement&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why you need a second connection.  But you can make the second connection to the same database as the first.  Then the commits are independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: connection_2 TYPE dbcon-con_name.

connection_2 = 'R/3*CONN2'. " The R/3* prefix says that it's a second connection to the db server
...
INSERT INTO zlogtab CONNECTION (connection_2) VALUES some_values.

COMMIT CONNECTION (connection_2).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matthew Billingham on Aug 14, 2008 9:27 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 15:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259667#M1016650</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-13T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259668#M1016651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Matt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"R/3*" Works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 17:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-commit/m-p/4259668#M1016651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T17:25:22Z</dc:date>
    </item>
  </channel>
</rss>

