<?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: Need a function module for commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917226#M1147742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about COMMIT WORK AND WAIT or &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 09:31:54 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-12-11T09:31:54Z</dc:date>
    <item>
      <title>Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917224#M1147740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of displaying a PO report in alv and when the user clicks the po it showed navigate to ME23N to display the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the user can go in change mode to change some details in po, and when he returns back, the report should show the changes in the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to update the report once the user return back to the report from ME23N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only thing is there is a lag(5 Secs) of updating the database table when the user saves the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we need to commit once the user return to the report and then fetch the data from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the " Commit work Statement" but it does't update as early.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one please telll me some &lt;U&gt;commit Fucntion module&lt;/U&gt; which can update the ME23N related tables qiuckly.?&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;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917224#M1147740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917225#M1147741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/c5/e4af4a453d11d189430000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/EN/c5/e4af4a453d11d189430000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this site which will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917225#M1147741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917226#M1147742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about COMMIT WORK AND WAIT or &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917226#M1147742</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-12-11T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917227#M1147743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use wait uptp 5 seconds to compensate tht lag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917227#M1147743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917228#M1147744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM : DB_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917228#M1147744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917229#M1147745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The commit is already done inside ME23N (change mode). A possibility would be to call the transaction in synchronous mode (UPDATE = 'S'), but for this you would need to also use the USING addition and some BDC-data for the initial screen.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917229#M1147745</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-11T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917230#M1147746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917230#M1147746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917231#M1147747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since the same answer is already given above there's no need to post again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917231#M1147747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917232#M1147748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is it advisable to use commit statement in a custom program.&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;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917232#M1147748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917233#M1147749</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;   you can use WAIT UPTO 5 SEC or bapi_transaction_commit so as to cover the lagtime.In the past have faced a similar problem and i had used wait upto 5 secs so as to compensate for the lag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917233#M1147749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917234#M1147750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and what if the "lag" (i.e. update task) takes 6 seconds due to high system load?&lt;/P&gt;&lt;P&gt;I would always prefer a synchronous call transaction to cater for &lt;EM&gt;any&lt;/EM&gt; delay in the update task.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 10:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917234#M1147750</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-11T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917235#M1147751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; since the same answer is already given above there's no need to post again.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Especially when that answer is wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we talk about a standard transaction here, the COMMIT is included in the standard transaction, so it does not make any sense to do it once more in an FM, or directly in the ABAP program (not mentioning that the LUW is closed already, so there is nothing to commit...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, the replies with WAIT UP TO ... are very strange, because now the time is 5 seconds, but next time it could be 7 seconds, who knows... this is not a stabile solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reply is worth considering is the one from Thomas!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 10:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917235#M1147751</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-11T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need a function module for commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917236#M1147752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally &lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;should add the required delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vivek amrute on Dec 11, 2008 1:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 11:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-function-module-for-commit/m-p/4917236#M1147752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T11:58:37Z</dc:date>
    </item>
  </channel>
</rss>

