<?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: Extract statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184543#M758253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since internal tables have fixed line structures, they are not suited to handle data sets with varying structures. Instead, you can use extract datasets for this purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An extract is a sequential dataset in the memory area of the program. You can only address the entries in the dataset within a special loop. The index or key access permitted with internal tables is not allowed. You may only create one extract in any ABAP program. The size of an extract dataset is, in principle, unlimited. Extracts larger than 500KB are stored in operating system files. The practical size of an extract is up to 2GB, as long as there is enough space in the filesystem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An extract dataset consists of a sequence of records of a pre-defined structure. However, the structure need not be identical for all records. In one extract dataset, you can store records of different length and structure one after the other. You need not create an individual dataset for each different structure you want to store. This fact reduces the maintenance effort considerably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to internal tables, the system partly compresses extract datasets when storing them. This reduces the storage space required. In addition, you need not specify the structure of an extract dataset at the beginning of the program, but you can determine it dynamically during the flow of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use control level processing with extracts just as you can with internal tables. The internal administration for extract datasets is optimized so that it is quicker to use an extract for control level processing than an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz reward if u found my information is usefull to u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for further quiries my mail id is mutyalasunilkumar@gmail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 07:12:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T07:12:57Z</dc:date>
    <item>
      <title>Extract statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184541#M758251</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;What does the extract statement do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184541#M758251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T07:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184542#M758252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:  &lt;/P&gt;&lt;P&gt;EXTRACT &amp;lt;fg&amp;gt;. &lt;/P&gt;&lt;P&gt;When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset &lt;/P&gt;&lt;P&gt;EXTRACT HEADER. &lt;/P&gt;&lt;P&gt;When you extract the data, the record is filled with the current values of the corresponding fields. &lt;/P&gt;&lt;P&gt;As soon as the system has processed the first EXTRACT statement for a field group &amp;lt;fg&amp;gt;, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups &amp;lt;fg&amp;gt; and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.  &lt;/P&gt;&lt;P&gt;By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Azhar&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184542#M758252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T07:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184543#M758253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since internal tables have fixed line structures, they are not suited to handle data sets with varying structures. Instead, you can use extract datasets for this purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An extract is a sequential dataset in the memory area of the program. You can only address the entries in the dataset within a special loop. The index or key access permitted with internal tables is not allowed. You may only create one extract in any ABAP program. The size of an extract dataset is, in principle, unlimited. Extracts larger than 500KB are stored in operating system files. The practical size of an extract is up to 2GB, as long as there is enough space in the filesystem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An extract dataset consists of a sequence of records of a pre-defined structure. However, the structure need not be identical for all records. In one extract dataset, you can store records of different length and structure one after the other. You need not create an individual dataset for each different structure you want to store. This fact reduces the maintenance effort considerably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to internal tables, the system partly compresses extract datasets when storing them. This reduces the storage space required. In addition, you need not specify the structure of an extract dataset at the beginning of the program, but you can determine it dynamically during the flow of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use control level processing with extracts just as you can with internal tables. The internal administration for extract datasets is optimized so that it is quicker to use an extract for control level processing than an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz reward if u found my information is usefull to u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for further quiries my mail id is mutyalasunilkumar@gmail.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184543#M758253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T07:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184544#M758254</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;This statement to be used at LDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using this we can get the data from the database are a group of data.&lt;/P&gt;&lt;P&gt;&amp;#149;	LDBs use Open SQL statements for direct data-reads and retrieval from the underlying vendor database application (Oracle, Informix, Sybase, etc.) &lt;/P&gt;&lt;P&gt;&amp;#149;	LDBs simplify and &amp;#145;encapsulate&amp;#146; data retrieval &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184544#M758254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T07:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184545#M758255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sagar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables are not the only way to sort and store a series of data.An alternative to this (which you must know, but will not often need to code) is the use of extracts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extracts allow you to store records with different fields in the same structure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A method similar to the style used in mainframe programming (such as COBOL) eg:&lt;/P&gt;&lt;P&gt;General Info&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;General Info&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;Detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Each record in an extract dataset must be prefixed by header information, which can also be a series of fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you can use extracts, you must declare the fields in each record type in Field-Groups.&lt;/P&gt;&lt;P&gt;These are simple declarations which allow the programmer to assign a structure to a variable name later&lt;/P&gt;&lt;P&gt;The syntax is simply&lt;/P&gt;&lt;P&gt;FIELD-GROUP: &amp;lt;Field-group name&amp;gt;, &amp;lt;Field-group name&amp;gt;, etc&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;FIELD-GROUPS: header, general, detail.&lt;/P&gt;&lt;P&gt;No structure is applied to these field groups, until the INSERT statement is performed at runtime &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NODES: spfli, sflight. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-GROUPS: header, flight_info, flight_date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT: spfli-carrid spfli-connid sflight-fldate &lt;/P&gt;&lt;P&gt;          INTO header, &lt;/P&gt;&lt;P&gt;        spfli-cityfrom spfli-cityto &lt;/P&gt;&lt;P&gt;          INTO flight_info. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET spfli. &lt;/P&gt;&lt;P&gt;  EXTRACT flight_info. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET sflight. &lt;/P&gt;&lt;P&gt;  EXTRACT flight_date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points, if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-statement/m-p/3184545#M758255</guid>
      <dc:creator>former_member402443</dc:creator>
      <dc:date>2007-12-26T07:15:40Z</dc:date>
    </item>
  </channel>
</rss>

