<?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-Groups ; How does it work with loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-groups-how-does-it-work-with-loops/m-p/8078509#M1614272</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;I had been with couple of examples on field groups but one thing i couldnt understand is how it is working with the loops and sort. is there any documentation you can help me with please? some of the post i really found it repetitive or being posted again b copying from other thread and no useful info provided....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 12:13:47 GMT</pubDate>
    <dc:creator>prabhu_s2</dc:creator>
    <dc:date>2011-07-15T12:13:47Z</dc:date>
    <item>
      <title>Field-Groups ; How does it work with loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-groups-how-does-it-work-with-loops/m-p/8078509#M1614272</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;I had been with couple of examples on field groups but one thing i couldnt understand is how it is working with the loops and sort. is there any documentation you can help me with please? some of the post i really found it repetitive or being posted again b copying from other thread and no useful info provided....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 12:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-groups-how-does-it-work-with-loops/m-p/8078509#M1614272</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2011-07-15T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field-Groups ; How does it work with loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-groups-how-does-it-work-with-loops/m-p/8078510#M1614273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a little summary of how work &lt;STRONG&gt;extracts&lt;/STRONG&gt; (that's the official name, field groups are one of the components):&lt;/P&gt;&lt;P&gt;- FIELD-GROUPS fieldGroupName defines the name of a field group. There's a special group named "header" that is important for sorting, all its fields will be implicitly part of all field groups.&lt;/P&gt;&lt;P&gt;- INSERT globvar1 globvar2 ... INTO fieldGroupName defines (once for each field group, at the top of the program) which global variables are assigned to a field group (see them as a transmission of their data references). Note that you may share the same global variables as the ones of the "header" field group, so that to sort them&lt;/P&gt;&lt;P&gt;- EXTRACT fieldGroupName writes one "line" to the extract dataset, which contains the field group name and the contents of all its assigned global variables&lt;/P&gt;&lt;P&gt;- The program must have generated the whole extract dataset first, so that to then be able to read it, once (EXTRACT after SORT will dump)&lt;/P&gt;&lt;P&gt;- SORT BY globvar1 ... sorts the extract dataset by these global variables which must belong to the "header" field group (must have been defined by INSERT)&lt;/P&gt;&lt;P&gt;- LOOP (without any keyword) starts reading the extract, one "line" at a time. That fills the global variables of the corresponding field group &lt;/P&gt;&lt;P&gt;- Within the loop, you may use AT fieldGroupName to process data based on the filled global variables, and you may also use AT globvar1 which have been defined in the SORT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to be clear enough.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;P&gt;PS: extracts are obsolete (but still widely used in R/3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi , 2 minutes later&lt;/P&gt;&lt;P&gt;Doc: [SAP Library: Extract|http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9ed135c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 19:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-groups-how-does-it-work-with-loops/m-p/8078510#M1614273</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-07-15T19:55:04Z</dc:date>
    </item>
  </channel>
</rss>

