<?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/1886570#M371833</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 is function. Basically for the first F5 it opens the function and second F5 would execute the function. Thus you may have to press F5 twice. There should not any problem with the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 19:11:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T19:11:13Z</dc:date>
    <item>
      <title>Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886567#M371830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a module pool pgm which is updating the database table with new records also. the problem is that sometimes the updates are not reflected in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while debugging i found that when any new record is created then sy-subrc is checked. if it is 0 then 'Commit work' is written.&lt;/P&gt;&lt;P&gt;when i get sy-subrc 0 and press F5 then cursore moves to 'Commit work' and there i need to press F5 2-3 times then only program proceeds further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this the case that 'Commit work' is failed. how can i know that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 19:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886567#M371830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T19:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886568#M371831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more thing i want to add.&lt;/P&gt;&lt;P&gt;is 'Commit work' is case-sensitive statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 19:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886568#M371831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T19:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886569#M371832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No...Sometimes Commit takes some time to save the changes to the database.&lt;/P&gt;&lt;P&gt;Use a 'Commit and Wait.' statement and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 19:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886569#M371832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T19:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886570#M371833</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 is function. Basically for the first F5 it opens the function and second F5 would execute the function. Thus you may have to press F5 twice. There should not any problem with the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 19:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886570#M371833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T19:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886571#M371834</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..is a syntax...It is not case sensitive..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give all the possible combinations as long as the spelling is correct..&lt;/P&gt;&lt;P&gt;&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,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 19:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886571#M371834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886572#M371835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANURITA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you should know that in (classic) debugger implicit COMMIT may occur because the program flow is interrupted by screen I/O.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually SAP standard transactions will pass the necessary database updates to an independent process, a so-called update process. This is done using update functions - they are called as "CALL FUNCTION '...' IN UPDATE TASK. That means the function modules name and all parameter values are stored intermediate for update handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK will do a couple of things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All previous direct database updates (INSERT, UPDATE, DELETE and MODIFY) are finalized, the results are fixed in the database and get visible for all users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All functions previously called IN UPDATE TASK are executed by an update process. After all functions are processed without any error, the results are commited to  the database (finalized) and all existing locks are released - A user may access the object (order, master data, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also all FORM routines which have been called using the addition ON COMMIT (PERFORM ... ON COMMIT) are executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, in any of the above steps, an error occurs, the system will not finalize the database changes but execute a ROLLBACK. That means, all changes are thrown away. Additionally, all PERFORM ... ON ROLLBACK is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that database remains consistent: All changes are done or nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this reason, it can (dependent on the system and situation) take some seconds for changes to take effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the SAP LUW concept, start here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb3b64358411d1829f0000e829fbfe/content.htm"&amp;gt;Committing Database Changes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 20:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886572#M371835</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-01T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886573#M371836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while debugging i also found that there is a function module for CREATING new record and other for UPDATING the existing record. inside both the function module 'commit work' is written. and when CALL FUNCTION is over again if sy-subrc = 0. COMMIT WORK. is written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does it hamper database to update with new record correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 00:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886573#M371836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T00:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886574#M371837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whenever new record is created it is taking the values of the previous record displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 00:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886574#M371837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T00:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886575#M371838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anurita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too many COMMITs will not haper the update process. But this does not look like a standard SAP program. Normally you have one COMMIT or one ROLLBACK per transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you describe as "whenever new record is created it is taking the values of the previous record displayed" could be a mistake in the processing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What program are we talking about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 12:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/1886575#M371838</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-02T12:52:34Z</dc:date>
    </item>
  </channel>
</rss>

