<?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: general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942640#M693702</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;EXTRACT [ header | field_group ]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement links the current content of the fields, which were until then included in the field group header resp. field_group via the statement INSERT , to the extract dataset of the program. If there is no field group specified after EXTRACT, then the field group header is implicitly added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the first execution of the EXTRACT-statement of a program, the extract datset is created and the first line added. After execution of an EXTRACT-statement, it is not allowed to incorporate other fields to the specified field group field_group with the INSERT statement. If you do so, an uncatchable exception will be raised at the next EXTRACT-statement for the same field group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;As the field group header is the beginning part and sort key of every field group, it is not allowed to incorporate fields into header after execution of the first EXTRACT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines of an extract dataset cannot be explicitly deleted and will be kept alive as long as the internal mode of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;This example continues the example under INSERT. If the executable program is linked to a fitting logical data base, the fields of the field groups flight_info and flight_date are attached to the extract dataset during the GET-events. &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;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ed135c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ed135c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 11:25:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-09T11:25:40Z</dc:date>
    <item>
      <title>general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942639#M693701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;what does the EXTRACT statment in abap program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 11:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942639#M693701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942640#M693702</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;EXTRACT [ header | field_group ]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement links the current content of the fields, which were until then included in the field group header resp. field_group via the statement INSERT , to the extract dataset of the program. If there is no field group specified after EXTRACT, then the field group header is implicitly added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the first execution of the EXTRACT-statement of a program, the extract datset is created and the first line added. After execution of an EXTRACT-statement, it is not allowed to incorporate other fields to the specified field group field_group with the INSERT statement. If you do so, an uncatchable exception will be raised at the next EXTRACT-statement for the same field group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;As the field group header is the beginning part and sort key of every field group, it is not allowed to incorporate fields into header after execution of the first EXTRACT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines of an extract dataset cannot be explicitly deleted and will be kept alive as long as the internal mode of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;This example continues the example under INSERT. If the executable program is linked to a fitting logical data base, the fields of the field groups flight_info and flight_date are attached to the extract dataset during the GET-events. &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;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ed135c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ed135c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 11:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942640#M693702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942641#M693703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;abstact: extract is an obsolete technique of the time when an internal table could not hold too many data. They are used similar to itabs but you don't see all data records at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_extract_extract.&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;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;START-OF-SELECTION.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9f0535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9f0535c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 11:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942641#M693703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942642#M693704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganapathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTRACT fg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Writes all fields of the field group fg (see FIELD-GROUPS) as one record to a sequential dataset (paging). If a field group HEADER has been defined, its fields prefix each record to form a sort key. You can then sort this dataset using SORT and process it with LOOP ... ENDLOOP. After this, EXTRACT cannot be executed again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;General: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the first dataset for a field group has been extracted with EXTRACT, the field group cannot be expanded using INSERT. The field group HEADER, in particular, cannot be expanded after the first EXTRACT (regardless of field group). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Large extract datasets are not kept in main memory; instead, they are written to an external help file. You can specify the directory in which this file is to be stored using the SAP profile parameter DIR_EXTRACT. By default, the system uses the SAP file directory SAP profile parameter DIR_DATA). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: EXTRACT to SORT or LOOP. &lt;/P&gt;&lt;P&gt;Runtime Error: EXTRACT_AFTER_SORT/LOOP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Occupied length of a single field is too large. &lt;/P&gt;&lt;P&gt;Runtime Error: EXTRACT_FIELD_TOO_LARGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Field group HEADER was modified after records were extracted using EXTRACT. &lt;/P&gt;&lt;P&gt;Runtime Error: EXTRACT_HEADER_NOT_UNIQUE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Error opening the external extract dataset file. &lt;/P&gt;&lt;P&gt;Runtime Error: EXTRACT_OPEN_EXTRACTFILE_OPEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Entire data length of a record to be extracted (including HEADER fields) too large. &lt;/P&gt;&lt;P&gt;Runtime Error: EXTRACT_TOO_LARGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 11:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2942642#M693704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T11:32:28Z</dc:date>
    </item>
  </channel>
</rss>

