<?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: array fetch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234872#M481206</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;Array fetch is noting but extracting all the field of a database table using * in the select clause.&lt;/P&gt;&lt;P&gt;for example select * from vbap&lt;/P&gt;&lt;P&gt; generally it should be avoid to improve the performance by selecting only required fields from the table as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mostly used to fetch multiple records in a single command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table z_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other type is sequential type, in which select...endselect is used and each recordis processed after fecthcing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;select single * from mara&lt;/P&gt;&lt;P&gt;" process ur data&lt;/P&gt;&lt;P&gt;append mara into z_mara.&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of above statement performs same function but first one is using array fetch and second one is using sequential fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 10:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T10:18:20Z</dc:date>
    <item>
      <title>array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234870#M481204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is mean by array fetch and what is the use of it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 03:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234870#M481204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T03:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234871#M481205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main difficulties is connecting the programming language with the sql interface is the transfer of retrieved data fecords..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;when the system process an sql statement it does not know how long the result would be.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The system has to transfer these records to the calling of a program in the form of a structure that is an &amp;lt;b&amp;gt;array&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The disadvantage of the array is that it is a static definition..u have to specify the size before runtime..As u do noy know the size it will overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&amp;lt;i&amp;gt;To avoid this problem sap system translates the open sql statements into an embeded sql...&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To do this the system defines a cursor and the cursor is the logical connection to the selected datasets in the database and transfer between abap programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This&amp;lt;u&amp;gt; &amp;lt;b&amp;gt;FETCH&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; operation passes one or more records to the database interface..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is called as array fetch..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it's useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj @ Eminent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234871#M481205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T06:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234872#M481206</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;Array fetch is noting but extracting all the field of a database table using * in the select clause.&lt;/P&gt;&lt;P&gt;for example select * from vbap&lt;/P&gt;&lt;P&gt; generally it should be avoid to improve the performance by selecting only required fields from the table as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mostly used to fetch multiple records in a single command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table z_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other type is sequential type, in which select...endselect is used and each recordis processed after fecthcing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;select single * from mara&lt;/P&gt;&lt;P&gt;" process ur data&lt;/P&gt;&lt;P&gt;append mara into z_mara.&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of above statement performs same function but first one is using array fetch and second one is using sequential fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 10:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234872#M481206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234873#M481207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 13:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array-fetch/m-p/2234873#M481207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T13:17:46Z</dc:date>
    </item>
  </channel>
</rss>

