<?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: Issue while fetching latest updated record from DB Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083272#M1704503</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;There is an import parameter in function module BAPI_TRANSACTION_COMMIT pass value of wait = 'X', so this will call synchronous update in database hence you need not to call wait statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 05:21:52 GMT</pubDate>
    <dc:creator>former_member194152</dc:creator>
    <dc:date>2012-10-09T05:21:52Z</dc:date>
    <item>
      <title>Issue while fetching latest updated record from DB Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083271#M1704502</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are using &lt;STRONG&gt;BAPI_PRODORDCONF_CREATE_TT &lt;/STRONG&gt;for confirmation and goods movement of SFG materials. While doing this, we will get one material document number generated and updated in DB Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we are having a select query to fetch the newly generated material number from AUFM table. Now the issue is, our select query is fetching previous generated material document instead of fetching new one. And we are executing this select query after the execution of &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We guessed, the problem is because of time taken to update records in SAP DB Tables. So we used a statement &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;WAIT &lt;SPAN class="L0S52"&gt;UP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO 10&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt; &lt;/SPAN&gt;SECONDS &lt;/STRONG&gt;before our select query and now it is fetching a newly generated material document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Now our concern is, while executing our RFC, it is taking more time. Can anyone suggest better/correct way to fetch latest updated record from DB Table or to improve execution time of RFC ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;How can we get the status of lock set to update DB table released or not?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Aravinth&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 04:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083271#M1704502</guid>
      <dc:creator>aravinth_anandhan</dc:creator>
      <dc:date>2012-10-09T04:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while fetching latest updated record from DB Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083272#M1704503</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;There is an import parameter in function module BAPI_TRANSACTION_COMMIT pass value of wait = 'X', so this will call synchronous update in database hence you need not to call wait statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 05:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083272#M1704503</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-10-09T05:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while fetching latest updated record from DB Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083273#M1704504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are passing wait = 'X' only. But still it is taking previous record. Because of that only I am using WAIT statement &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1031/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 05:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083273#M1704504</guid>
      <dc:creator>aravinth_anandhan</dc:creator>
      <dc:date>2012-10-09T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while fetching latest updated record from DB Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083274#M1704505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strange, you can try another approach like in return parameter of BAPI you can get document number generated by that function module so you can think a logic based on newly generated document number returning by BAPI, are you using "Commit on update task" either through subroutine or function module because if that is the case then it will execute at the end of LUW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 05:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083274#M1704505</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-10-09T05:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while fetching latest updated record from DB Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083275#M1704506</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;We are not getting material document number in BAPI Return. All we are getting is this message &lt;STRONG&gt;Confirmation of order &amp;lt;order number&amp;gt; saved&amp;nbsp; &lt;/STRONG&gt;in BAPI Return. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And other than BAPI_TRANSACTION_COMMIT, we are not using any other commit statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 06:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-fetching-latest-updated-record-from-db-table/m-p/9083275#M1704506</guid>
      <dc:creator>aravinth_anandhan</dc:creator>
      <dc:date>2012-10-09T06:03:56Z</dc:date>
    </item>
  </channel>
</rss>

