<?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: Difference between Update KNA1 and with commit work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615766#M275831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK will immediately proceed to update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't commint it will be done automatically by the end of the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aubin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 11:42:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-27T11:42:55Z</dc:date>
    <item>
      <title>Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615765#M275830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Can any one tell me What is the diffrence between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1. UPDATE KNA1 and &lt;/P&gt;&lt;P&gt; 2. UPDATE KNA1. &lt;/P&gt;&lt;P&gt;       COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Naren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 11:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615765#M275830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615766#M275831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK will immediately proceed to update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't commint it will be done automatically by the end of the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aubin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 11:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615766#M275831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615767#M275832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess, its not required to use COMMIT WORK with UPDATE.&lt;/P&gt;&lt;P&gt;UPDATE statement will take care of storing the database changes permanently.&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;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 11:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615767#M275832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T11:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615768#M275833</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;Commit Work : Executes a database commit and thus closes a Logical Unit of Work ( LUW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;All database updates are made irrevocable and cannot be reversed with ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All database locks are released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as, UPDATE: Updates values in a database table (see Relational Databases ). You can specify the name of the database table either directly in the form dbtabor at runtime as contents of the field dbtabname. In both cases, the table must be known to the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes to lines made with the UPDATE command only become final after a database commit (see Logical Unit of Work (LUW)). Prior to this, any database update can be canceled by a database rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Mark all helpful answers for points.&lt;/P&gt;&lt;P&gt;JLN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 11:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615768#M275833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T11:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615769#M275834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Commit work marks the end of the LUW and starts a new LUW ,all the changes made to the database cannot be rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 12:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615769#M275834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T12:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615770#M275835</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;commit work will update the database at that instant itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while with out that at the end of the session only the data base update wil happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark hlpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 12:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615770#M275835</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-27T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Update KNA1 and with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615771#M275836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To apply the changes made to the runtime objects of persistent classes to the actual persistent objects in the database, execute the COMMIT WORK statement. (Alternatively, use COMMIT WORK AND WAIT or SET UPDATE TASK LOCAL). Unless you are executing an object-oriented transaction from within the Transaction Service, you must include the COMMIT WORK statement explicitly in the program. Otherwise, it is encapsulated in the Transaction Service. (If you explicitly include the COMMIT WORK statement as described here, the t op-level transaction runs in compatibility mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function of the COMMIT WORK statement is extended when you use it in conjunction with Object Services. Before COMMIT WORK closes the SAP LUW and triggers an update, it calls internal methods of the Persistence Service. These methods bundle the changes made to managed objects of the Persistence Service and pass them to a special update function module using CALL FUNCTION ... IN UPDATE TASK. Thus the Persistence Service works with traditional update methods. The update module is usually registered after any update modules that have already been registered. The update is then triggered and the update task executes the update module in the order in which they were registered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the system executes the COMMIT WORK statement, it sets the attributes of each persistent object in the ABAP program to initial. (That is, it calls the IF_OS_STATE~INVALIDATE method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change managed objects directly, rather than using the update module, you must change the update mode of the implicitly used Transaction Service. That is, the following statements must be executed before the COMMIT WORK statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TM type ref to IF_OS_TRANSACTION_MANAGER.&lt;/P&gt;&lt;P&gt;DATA T type ref to IF_OS_TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TM = CL_OS_SYSTEM=&amp;gt;GET_TRANSACTION_MANAGER( ).&lt;/P&gt;&lt;P&gt;T = TM-&amp;gt;GET_CURRENT_TRANSACTION( ).&lt;/P&gt;&lt;P&gt;T-&amp;gt;SET_MODE_UPDATE( OSCON_DMODE_DIRECT ).&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure database consistency, the local update is activated internally using SET UPDATE TASK LOCAL. In such cases, the system raises an exception if there are already update modules registered in the update task. You can only register additional classical update modules after setting the mode. They will then also be updated locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 12:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-update-kna1-and-with-commit-work/m-p/1615771#M275836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T12:43:19Z</dc:date>
    </item>
  </channel>
</rss>

