<?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: why dont we use Commit statement in Usrer exits? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227649#M1524504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow is like this -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Std transaction --&amp;gt; Event(SAVE) --&amp;gt; EXIT code --&amp;gt; Transaction complete(DB commit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when we are in a user exit, SAP is yet to process the business transaction completly. SAP has it's own commit after the complete process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also SAP has provided us the exits to manage the transaction data. We should not play with the LUW. If we write commit in Exit, there could be some major table updates which may get commited and in case that there are errors after Exit, and the transaction is not completed , database inconsistency could arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2010 06:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-11T06:52:26Z</dc:date>
    <item>
      <title>why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227645#M1524500</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;I dont understand one thing that why dont we use commit statement in user exits, Please educate me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 05:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227645#M1524500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T05:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227646#M1524501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inside the User Exit you are in an SAP LUW &amp;amp; the COMMIT WORK will abruptly end the LUW which is not desirable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 05:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227646#M1524501</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-11T05:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227647#M1524502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since Exits are triggered in between standard SAP transactions which have their own commit that trigger at a specified point so You should be disturbing that hence explicit commit work shouldn't be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 05:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227647#M1524502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T05:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227648#M1524503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally , you shoud not specify COMMIT statement in any user exit , badi etc..&lt;/P&gt;&lt;P&gt;SAP has its own COMMIT statement while execuiting the standard transactions .&lt;/P&gt;&lt;P&gt;Addition of a COMMIT might lead to problems elsewhere .&lt;/P&gt;&lt;P&gt;Syntactitically, this is allowed. But its not advisable, because you never know, which reports are affected by this unexprected commit, because it commits all outstanding modifications and you do not know if a programmer needs to store something in addidtion to end a logical unit of work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May it helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227648#M1524503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227649#M1524504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow is like this -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Std transaction --&amp;gt; Event(SAVE) --&amp;gt; EXIT code --&amp;gt; Transaction complete(DB commit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when we are in a user exit, SAP is yet to process the business transaction completly. SAP has it's own commit after the complete process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also SAP has provided us the exits to manage the transaction data. We should not play with the LUW. If we write commit in Exit, there could be some major table updates which may get commited and in case that there are errors after Exit, and the transaction is not completed , database inconsistency could arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227649#M1524504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227650#M1524505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It violates LUW rule.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shantanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227650#M1524505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: why dont we use Commit statement in Usrer exits?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227651#M1524506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go through this link:[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1586457"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 10:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-dont-we-use-commit-statement-in-usrer-exits/m-p/7227651#M1524506</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-11T10:19:57Z</dc:date>
    </item>
  </channel>
</rss>

