<?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 field group in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485250#M837947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may i know details about field group?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 12:42:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T12:42:01Z</dc:date>
    <item>
      <title>field group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485250#M837947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may i know details about field group?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 12:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485250#M837947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: field group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485251#M837948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field Groups / Extracts&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field group:&lt;/P&gt;&lt;P&gt;It combines the related fields together into meaningful unit.&lt;/P&gt;&lt;P&gt;It provides the pre-selection so that we do not have to search through all fields of data source.&lt;/P&gt;&lt;P&gt;End user only has access to those fields assigned to field group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field symbols :&lt;/P&gt;&lt;P&gt;Field symbols are placeholders for other fields.&lt;/P&gt;&lt;P&gt;Field symbols use the memory to directly access the data from the internal table.&lt;/P&gt;&lt;P&gt;We do not pass the data to the header and from where we read the data which takes more time.&lt;/P&gt;&lt;P&gt;As a result Field Symbol is similar to a Pointer in C-Language. We can directly get the data from the memory which is very convenient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A field symbol can point to any data object.&lt;/P&gt;&lt;P&gt;Does not occupy memory for the data objects.&lt;/P&gt;&lt;P&gt;Field should be assigned to field symbol before it is addressed in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this code will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldgroups&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_gr.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_gr.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/Fieldgroups.htm" target="test_blank"&gt;http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/Fieldgroups.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Sample Report Code
REPORT demo_extract. 

NODES: spfli, sflight. 

FIELD-GROUPS: header, flight_info, flight_date. 

START-OF-SELECTION. 
INSERT: spfli-carrid spfli-connid sflight-fldate 
INTO header, 
spfli-cityfrom spfli-cityto 
INTO flight_info. 

GET spfli. 
EXTRACT flight_info. 

GET sflight. 
EXTRACT flight_date. 

END-OF-SELECTION. 
SORT STABLE. 
LOOP. 
AT FIRST. 
WRITE / 'Flight list'. 
ULINE. 
ENDAT. 
AT flight_info WITH flight_date. 
WRITE: / spfli-carrid , spfli-connid, sflight-fldate, 
spfli-cityfrom, spfli-cityto. 
ENDAT. 
AT flight_date. 
WRITE: / spfli-carrid , spfli-connid, sflight-fldate. 
ENDAT. 
AT LAST. 
ULINE. 
WRITE: cnt(spfli-carrid), 'Airlines'. 
ULINE. 
ENDAT. 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
Field groups are groups similar fields together into one name. Field group works in conjuction with 

INSERT f1 f2 INTO fg 
EXTRACT fg 
SORT BY fg 
LOOP ... ENDLOOP 

INSERT f1 f2 INTO fg


--------------------------------------------------------------------------------

The insert statement is used to create a field group dynamically by inserting the field into it. Only global data fields can be inserted and not local data fields eg : in form modules. 

EXTRACT fg


--------------------------------------------------------------------------------

This will combine all the fields in the fieldgroup and write them to a sequential dataset as a single record. 

SORT BY fg


--------------------------------------------------------------------------------

Sorting of sequential dataset by field group. 

LOOP AND ENDLOOP


--------------------------------------------------------------------------------

LOOP. 
AT *** 
...... 
.... 
ENDAT. 
AT *** 
..... 
.... 
ENDAT. 
ENDLOOP. *
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field-Groups&lt;/P&gt;&lt;P&gt;Internal tables are not the only way to sort and store a series of data.&lt;/P&gt;&lt;P&gt;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;Extracts allow you to store records with different fields in the same structure&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;Each record in an extract dataset must be prefixed by header information, which can also be a series of fields.&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;Header +General Info&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +General Info&lt;/P&gt;&lt;P&gt;Header +Detail&lt;/P&gt;&lt;P&gt;Header +Detail&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 (often in the INITIALIZATION event - see next page)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485251#M837948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: field group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485252#M837949</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;Please refer the docu below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIELD-GROUPS&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Basic form&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;FIELD-GROUPS fg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Effect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Defines a field group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A field group combines several existing fields together under one name. You use the INSERT statement to determine which fields belong to a field group 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;FIELD-GROUPS: HEADER, ORDER, PRODUCT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Neither defining a field group (statically) using FIELD-GROUPS nor filling a field group (dynamically) with INSERT generates more memory. Rather, there exists for each field group element a pointer to an (existing) field. &lt;/P&gt;&lt;P&gt;See You cannot define field groups in methods. &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;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-group/m-p/3485252#M837949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:47:08Z</dc:date>
    </item>
  </channel>
</rss>

