<?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: Commit work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525334#M1425733</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;No problem. Create a new Z-FM with the same interface and call your method inside the Z-FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 05:18:09 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2010-01-22T05:18:09Z</dc:date>
    <item>
      <title>Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525328#M1425727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not yet another cross post on commit work. I have a doubt and could not get clear picture in SDN as well as documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a general perception that  &lt;STRONG&gt;COMMIT WORK&lt;/STRONG&gt; must not be used inside user exit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how about calling a method from user exit and doing a commit work after performing a series of actions in that method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comradely,&lt;/P&gt;&lt;P&gt;K.Sibi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525328#M1425727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525329#M1425728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't do explicit COMMIT WORK commands in exits, or in any code used in an SAP transaction that updates the database, for one very important reason:  COMMIT WORK "flushes" the update queue for the user context, shoving all the queued up updates to the database, regardless of whether or not the SAP transaction has completed all the internal table and structure builds, etc., necessary for a complete, correct database update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A commit work in a report may be (relatively) harmless, but in an SAP update transaction, one can cause some real damage (but often just causing an abend and rollback and loss of everything the user has just entered) by inserting an explicit commit work &lt;U&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/U&gt; by writing code that results in SAP issuing a commit work at the wrong place or time.  Let SAP's update programming control the COMMIT WORK process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, COMMIT WORK (perhaps through the COMMIT BAPI)  is sometimes necessary, in cases like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... code&lt;/P&gt;&lt;P&gt;transaction or bapi call &lt;/P&gt;&lt;P&gt;..... more code&lt;/P&gt;&lt;P&gt;transaction or bapi call&lt;/P&gt;&lt;P&gt;COMMIT WORK... "need a document number and values just created for next step...&lt;/P&gt;&lt;P&gt;....more code&lt;/P&gt;&lt;P&gt;another transaction or bapi call....etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525329#M1425728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525330#M1425729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI a transaction flow must adhere to its ACID properties.&lt;/P&gt;&lt;P&gt;Atomicity,Consistency,.......&lt;/P&gt;&lt;P&gt;The ACID properties of a DBMS allow safe sharing of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also you may be aware of the states of transaction&lt;/P&gt;&lt;P&gt;like start,rollback,commit,abort......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the transaction flow diagram the commit state comes at last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just think if you give a commit work in between the flow and if the data gets replicated in db &lt;/P&gt;&lt;P&gt;and if the transaction gets aborted after the exit, does this make any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the transactional states the rollback state always comes before commit state.&lt;/P&gt;&lt;P&gt;Its not possible to roll back after a commit state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get these details in any of the RDBMS books available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i knoe Its not recommended to give a commit in between a transactional flow( ex:in bapi,exits,badi etc )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forum members : please correct me if im wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525330#M1425729</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-21T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525331#M1425730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dave and keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would explain the scenario in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a FM to update the status of the IDOC using' IDOC_STATUS_WRITE_TO_DATABASE' , since its not reflecting without a commit work , I am have added it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing is that i am using MODIFY custom database table based on some values of processing and even though the  sy-subrc is returned as 0 and there is no change in the table , i was forced to use a commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are any other alternative , please let me know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comradely ,&lt;/P&gt;&lt;P&gt;K.Sibi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 04:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525331#M1425730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T04:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525332#M1425731</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;Make your FM as RFC enabled and call the FM using &lt;STRONG&gt;BACKGROUND TASK&lt;/STRONG&gt; addition. This make sures that your IDOC and Z-table won't be updated in case of transaction is not saved because of some errors. Else even if your transaction is not saved, IDOC and Z-table will be updated which is not a correct way i feel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try by calling the FM in UPDATE TASK as well. (Make the FM as UPDATE Module in attributes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 04:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525332#M1425731</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-01-22T04:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525333#M1425732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience , its not a FM which i am writing .&lt;/P&gt;&lt;P&gt;Its a method .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Comraely ,&lt;/P&gt;&lt;P&gt;K.Sibi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 05:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525333#M1425732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525334#M1425733</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;No problem. Create a new Z-FM with the same interface and call your method inside the Z-FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 05:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525334#M1425733</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-01-22T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525335#M1425734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the additin IN UPDATE TASK for the function module ...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 05:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/6525335#M1425734</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-01-22T05:26:28Z</dc:date>
    </item>
  </channel>
</rss>

