<?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: Implicit COMMIT WORK in Remotely Called Function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607450#M1759196</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;Please refer to this thread....&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/3185942"&gt;http://scn.sap.com/thread/3185942&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 13:06:19 GMT</pubDate>
    <dc:creator>SharathYaralkattimath</dc:creator>
    <dc:date>2013-08-05T13:06:19Z</dc:date>
    <item>
      <title>Implicit COMMIT WORK in Remotely Called Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607448#M1759194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Master, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program is in SSS system and when calling the RFC "ZRFC_TEST" with DESTINATION "DEST_DDD". One implicit COMMIT is performed in my local system (SSS System) and saved the data. Why does this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SSS local system have a validation SY-SUBRC after the RFC call, this validation to control the COMMIT or ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank for you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 11:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607448#M1759194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-05T11:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit COMMIT WORK in Remotely Called Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607449#M1759195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By implicit you mean the commit is in ZRFC_TEST? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes generally, any database creation or changes have to be committed using the COMMIT statement. If the creation/changes were unsuccessful/incorrect, ROLL BACK is also used to undo the creation or changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence there is a COMMIT statement in ZRFC_TEST to commit the changes in the database of the &lt;STRONG&gt;destination&lt;/STRONG&gt; server. &lt;/P&gt;&lt;P&gt;This validation is in Local system after RFC Call to commit or roll back changes to the database with respect to the &lt;STRONG&gt;local&lt;/STRONG&gt; server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This RFC can be called from any system but it commits the changes to the database in the CALLED system (destination system) itself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you have any doubts but hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 12:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607449#M1759195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-05T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit COMMIT WORK in Remotely Called Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607450#M1759196</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;Please refer to this thread....&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/3185942"&gt;http://scn.sap.com/thread/3185942&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 13:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607450#M1759196</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2013-08-05T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit COMMIT WORK in Remotely Called Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607451#M1759197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The behaviour you observe is normal - an implicit database commit is performed when an RFC call takes place.&lt;/P&gt;&lt;P&gt;To be able to understand this you should first get familiar with the concept of "SAP LUW" (Logical Unit of Work) and distinguish between terms "SAP LUW" and "database LUW"&lt;/P&gt;&lt;P&gt;(see: &lt;A href="http://help.sap.com/saphelp_erp60/helpdata/en/fc/eb3b64358411d1829f0000e829fbfe/frameset.htm"&gt;http://help.sap.com/saphelp_erp60/helpdata/en/fc/eb3b64358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;What you observe is a "database LUW". A single SAP LUW may consist of many database LUWs, some of them triggered implicitly like the one you have found out.&lt;/P&gt;&lt;P&gt;To avoid writing your data changes to the database immediately when an implicit database commit occurs&lt;/P&gt;&lt;P&gt;you can put your ABAP statements performing data changes into separate function modules marked as update function modules, and then call these modules with "call function ... in update task". Finally call "commit work" or "rollback work".&lt;/P&gt;&lt;P&gt;ABAP staements "commit work" or "rollback work" finish the SAP LUW. Data changes included in&lt;/P&gt;&lt;P&gt;update function modules are actually executed when an SAP LUW is finished, not at the time when &lt;/P&gt;&lt;P&gt;you make a call to the update function module - so any implicit database commit which might occur before your "commit work" staement, will not write the data to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 13:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implicit-commit-work-in-remotely-called-function/m-p/9607451#M1759197</guid>
      <dc:creator>Maciej_DomagaBa</dc:creator>
      <dc:date>2013-08-05T13:35:54Z</dc:date>
    </item>
  </channel>
</rss>

