<?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: What is a array fetch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206970#M472261</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 array.&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;*To avoid this problem sap system translates the open sql statements into an embeded sql...&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 FETCH 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:54:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-10T06:54:42Z</dc:date>
    <item>
      <title>What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206965#M472256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is a array fetch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206965#M472256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206966#M472257</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;In ABAP there is no such ARRAY, like in some other languages (Pascal, Delphi, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative array example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: p1(1000) TYPE c VALUE 'I PREFER PI'.
DATA: p2(1000) TYPE c.
 
DATA: s_len TYPE i.
CONDENSE p1 NO-GAPS.
s_len = NUMOFCHAR( p1 ).
 
DATA: position TYPE i VALUE '0'.
DATA: position2 TYPE i.
DATA: offset1  TYPE i.
DO s_len TIMES.
  position2 = s_len - position - 1.
  p2+position2(1) = p1+position(1).
  position = position + 1.
ENDDO.
 
WRITE: / p1.
WRITE: / p2.
 
if p1 = p2.
  write: / 'Palindrome!'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206966#M472257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206967#M472258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukesh,&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;      the above statement is called as array fetch, 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;                       select vbeln posnr netpr&lt;/P&gt;&lt;P&gt;                       from vbap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206967#M472258</guid>
      <dc:creator>srinivas_akiri</dc:creator>
      <dc:date>2007-05-09T16:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206968#M472259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An array fetch means reading all fields of a db table into an internal table at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_table type table of sflight.

SELECT * FROM sflight INTO TABLE it_table.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206968#M472259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206969#M472260</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>Thu, 10 May 2007 04:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206969#M472260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T04:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is a array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206970#M472261</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 array.&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;*To avoid this problem sap system translates the open sql statements into an embeded sql...&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 FETCH 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:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-a-array-fetch/m-p/2206970#M472261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T06:54:42Z</dc:date>
    </item>
  </channel>
</rss>

