<?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/2275153#M494664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&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&lt;/P&gt;&lt;P&gt;Commit work is used when you code directly in ABAP and make changes in the database and want to commit the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit work can be used when you trigger a workflow event by using Function module (swe_event_create) in your program. &lt;/P&gt;&lt;P&gt;&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;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 11:37:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T11:37:32Z</dc:date>
    <item>
      <title>Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275145#M494656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;In a program .. why we are useing Commit Work..&lt;/P&gt;&lt;P&gt;what its purpose..&lt;/P&gt;&lt;P&gt;can any one explain clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275145#M494656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275146#M494657</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;This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.&lt;/P&gt;&lt;P&gt;COMMIT WORK: ( Asynchronous)&lt;/P&gt;&lt;P&gt;Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK. &lt;/P&gt;&lt;P&gt;&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;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275146#M494657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275147#M494658</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;  Once you give commit in the program after DML or DDL operations on the database table then they will be effected to database table. If you dont give commit statement the changes will be effected to database table once you come out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275147#M494658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275148#M494659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am writing below code...pls.veryfy..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PERNR&lt;/P&gt;&lt;P&gt;         STAT2&lt;/P&gt;&lt;P&gt;    FROM PA0000&lt;/P&gt;&lt;P&gt;    INTO TABLE IT_PA0000&lt;/P&gt;&lt;P&gt;   WHERE PERNR IN S_PERNR AND&lt;/P&gt;&lt;P&gt;         ENDDA GE S_DATE-LOW AND&lt;/P&gt;&lt;P&gt;         BEGDA LE S_DATE-HIGH AND&lt;/P&gt;&lt;P&gt;         STAT2 IN S_STAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;    SORT IT_PA0000 BY PERNR.&lt;/P&gt;&lt;P&gt;    DELETE ADJACENT DUPLICATES FROM IT_PA0000.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i used commit work ..what happend??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275148#M494659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275149#M494660</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;Here this statement is NOT required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK is mostly used when you do some DB operations such as inserting new entries in the DB table.&lt;/P&gt;&lt;P&gt;This is to be used after processing of BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275149#M494660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275150#M494661</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 is used to save the records in the database...&lt;/P&gt;&lt;P&gt;See in SAP there will be Header data and Footer data..&lt;/P&gt;&lt;P&gt;Header will contain like data,Customer name,Address etc.,&lt;/P&gt;&lt;P&gt;Footer data will have if any materials is coming from the customer ..it will  have more than one data,like one customer cansend more than one material...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when we insert the header data it will store in DB,after tht while u storing the footer data u cancel everything means the data saved in the header table also want to deleted....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here COMMIT plays its role..when footer data is added and saved means finally commit will work...Otherwise the rollback will be called and every thing will be deleted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275150#M494661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275151#M494662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whenever u make changes in the database table we use commit statment.. so that the changes will be reflected in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if u use insert, modify , update , delete syntax we have to use commit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select statment wont modify the table it just fetches  data from table so there is no need of this statement here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275151#M494662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275152#M494663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;Commit Work&amp;lt;/b&amp;gt; executes a database commit and thus closes a Logical Unit of Work ( LUW).&lt;/P&gt;&lt;P&gt;The updates and insert in a DB are rolled back in case the program abruptly terminates.&lt;/P&gt;&lt;P&gt;In case of successful completion, the &amp;lt;b&amp;gt;Commit work&amp;lt;/b&amp;gt; is called.&lt;/P&gt;&lt;P&gt;When u explicitly mention &amp;lt;b&amp;gt;Commit&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;Commit work&amp;lt;/b&amp;gt; is called then n then n u see the entry in the DB.&lt;/P&gt;&lt;P&gt;The reason u dont see entry in the DB sometimes is probably due to abrupt end of program as a result of which the transactions are rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reward points if helpful.&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Amber S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275152#M494663</guid>
      <dc:creator>former_member198270</dc:creator>
      <dc:date>2007-05-15T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275153#M494664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&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&lt;/P&gt;&lt;P&gt;Commit work is used when you code directly in ABAP and make changes in the database and want to commit the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit work can be used when you trigger a workflow event by using Function module (swe_event_create) in your program. &lt;/P&gt;&lt;P&gt;&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;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 11:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/2275153#M494664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T11:37:32Z</dc:date>
    </item>
  </channel>
</rss>

