<?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 Performence - SQL in a LOOP statement - Multiple hits to data base - Buffer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080049#M1505839</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 knew (by seeing the mentioned FM source code) that instead of hitting Data base with SQL every time, we can use standard SAP function module KNA1_SINGLE_READ (which gets the data from BUFFER) in perpsective of performence.&lt;/P&gt;&lt;P&gt;But, when I saw the KAN1 table's technical settings as BUFFERING NOT ALLOWED!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Pls. let me know How that FM (KNA1_SINGLE_READ) makes sense to use in my report (where in there is SQL on KNA1 in a LOOP) with respect to performence? Whats the SAP idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, importantly I need to pull the data from VBFA table as multiple times in my report, some times in LOOP, so, I saw the below FMs&lt;/P&gt;&lt;P&gt;SD_VBFA_ARRAY_READ_VBELV&lt;/P&gt;&lt;P&gt;SD_VBFA_READ_WITH_VBELV&lt;/P&gt;&lt;P&gt;SD_VBFA_SELECT&lt;/P&gt;&lt;P&gt;SD_VBFA_SINGLE_READ&lt;/P&gt;&lt;P&gt;SD_VBFA_TRANSFER_TO_BUFFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same case with this VBFA table that, BUFFERING IS NOT ALLOWED!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) So, pls. let me know whether the above VBFA function modules also uses buffer (but, i did not see buffer stuff in the source code of FMs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Can I go ahead and use these FMs in LOOP statements of my report by taking grant that, they are also using BUFFER -  pormence perspective?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) So, Does it mean that the BUFFER (Technical settings of a TABLE) is nothing to do this buffer (what SAP mentioned in source code of KNA1_SINGLE_READ)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 15:24:58 GMT</pubDate>
    <dc:creator>former_member202077</dc:creator>
    <dc:date>2010-07-19T15:24:58Z</dc:date>
    <item>
      <title>Performence - SQL in a LOOP statement - Multiple hits to data base - Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080049#M1505839</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 knew (by seeing the mentioned FM source code) that instead of hitting Data base with SQL every time, we can use standard SAP function module KNA1_SINGLE_READ (which gets the data from BUFFER) in perpsective of performence.&lt;/P&gt;&lt;P&gt;But, when I saw the KAN1 table's technical settings as BUFFERING NOT ALLOWED!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Pls. let me know How that FM (KNA1_SINGLE_READ) makes sense to use in my report (where in there is SQL on KNA1 in a LOOP) with respect to performence? Whats the SAP idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, importantly I need to pull the data from VBFA table as multiple times in my report, some times in LOOP, so, I saw the below FMs&lt;/P&gt;&lt;P&gt;SD_VBFA_ARRAY_READ_VBELV&lt;/P&gt;&lt;P&gt;SD_VBFA_READ_WITH_VBELV&lt;/P&gt;&lt;P&gt;SD_VBFA_SELECT&lt;/P&gt;&lt;P&gt;SD_VBFA_SINGLE_READ&lt;/P&gt;&lt;P&gt;SD_VBFA_TRANSFER_TO_BUFFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same case with this VBFA table that, BUFFERING IS NOT ALLOWED!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) So, pls. let me know whether the above VBFA function modules also uses buffer (but, i did not see buffer stuff in the source code of FMs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Can I go ahead and use these FMs in LOOP statements of my report by taking grant that, they are also using BUFFER -  pormence perspective?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) So, Does it mean that the BUFFER (Technical settings of a TABLE) is nothing to do this buffer (what SAP mentioned in source code of KNA1_SINGLE_READ)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 15:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080049#M1505839</guid>
      <dc:creator>former_member202077</dc:creator>
      <dc:date>2010-07-19T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performence - SQL in a LOOP statement - Multiple hits to data base - Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080050#M1505840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at FM KNA1_SINGLE_READ more closely. It isn't reading from the database buffer. It reads a record from KNA1 and saves it in an internal table. Then if you try to read the same record again, it reads it from the internal table instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 19:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080050#M1505840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T19:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performence - SQL in a LOOP statement - Multiple hits to data base - Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080051#M1505841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your intention is to use the buffered access to read data to a report, maybe it's not the good approuch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of buffer is desired when you run the same info many times, nof if you need it only once to fullfill the report and than waste buffer memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;1) Pls. let me know How that FM (KNA1_SINGLE_READ) makes sense to use in my report (where in there is SQL on KNA1 in a LOOP) with respect to performence? Whats the SAP idea?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- use the SQL to fill an internal table (type sorted) outside the LOOP&lt;/P&gt;&lt;P&gt;- inside the loop you use READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Also, importantly I need to pull the data from VBFA table as multiple times in my report, some times in LOOP, so, I saw the below FMs&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- the same idea to fetch everything that you can outside the loop into internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 19:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080051#M1505841</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2010-07-19T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performence - SQL in a LOOP statement - Multiple hits to data base - Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080052#M1505842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Rob said its not DB buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 02:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performence-sql-in-a-loop-statement-multiple-hits-to-data-base-buffer/m-p/7080052#M1505842</guid>
      <dc:creator>former_member202077</dc:creator>
      <dc:date>2010-08-03T02:51:58Z</dc:date>
    </item>
  </channel>
</rss>

