<?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: FILED GROUPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603909#M596626</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;the following link will be helpful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43f3455611d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43f3455611d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward points for useful ans&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Aarti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jul 2007 12:34:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-28T12:34:53Z</dc:date>
    <item>
      <title>FILED GROUPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603908#M596625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anybody tell me what is the use of feild groups? where can we use these field groups?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 12:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603908#M596625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: FILED GROUPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603909#M596626</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;the following link will be helpful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43f3455611d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43f3455611d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward points for useful ans&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Aarti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 12:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603909#M596626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: FILED GROUPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603910#M596627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note on the Use of Field Groups&lt;/P&gt;&lt;P&gt;Because field-groups write their data to paging space (rather than storing it in memory), they are appropriate only for processing lists with lots (like 50,000 or more) of records. If you expect your programs to be handling tens of thousands of records, you should: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;analyze the expected size of your lists. For instance, if your system has 512M of main memory, you may decide that you don't want any report to use more than 15M of memory for its lists. In that program, you may have a list: &lt;/P&gt;&lt;P&gt;begin of mylist occurs XXX, &lt;/P&gt;&lt;P&gt;dat1(100) type c, &lt;/P&gt;&lt;P&gt;dat2(50) type c, &lt;/P&gt;&lt;P&gt;dat3(10) type c, &lt;/P&gt;&lt;P&gt;end of list. &lt;/P&gt;&lt;P&gt;Then each record takes up approximately 160 bytes; so every 6 records take up approximately 1K. For this list structure, it would take about 90,000 records to use up 15M RAM. &lt;/P&gt;&lt;P&gt;decide the maximum amount of memory you want your program to use &lt;/P&gt;&lt;P&gt;decide whether to use field-groups or something else (like internal tables). If you expect the size of your list to be greater than the amount of memory you want your program to use, then use field-groups (actually, if you use internal tables, and the number of records exceeds the number of records in your OCCURS statement, the system just writes those extra records to the paging space. So is there really any difference between just using an internal table with an OCCURS 0 statement-- which would write the entire table to paging space-- and using field-groups? According to Gareth M. de Bruyn and Robert Lyfareff in Introduction to ABAP/4 Programming for SAP, field-groups are stored more efficiently, and have better performance. They recommend field-groups for lists of 100,000 or more records). &lt;/P&gt;&lt;P&gt;Field-Groups Sample Code &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;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSPFLI                                                      *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSPFLI  LINE-SIZE 132 LINE-COUNT 65(3)&lt;/P&gt;&lt;P&gt;                                             NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;TABLES:SPFLI,SCARR, SFLIGHT, SBOOK.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: MYCARRID FOR SPFLI-CARRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-GROUPS: HEADER, SPFLI_FG, SFLIGHT_FG, SBOOK_FG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT:&lt;/P&gt;&lt;P&gt;        SPFLI-CARRID&lt;/P&gt;&lt;P&gt;        SPFLI-CONNID&lt;/P&gt;&lt;P&gt;        SFLIGHT-FLDATE&lt;/P&gt;&lt;P&gt;        SBOOK-BOOKID&lt;/P&gt;&lt;P&gt;       INTO HEADER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SPFLI-CARRID&lt;/P&gt;&lt;P&gt;        SPFLI-CONNID&lt;/P&gt;&lt;P&gt;        SPFLI-CITYFROM&lt;/P&gt;&lt;P&gt;        SPFLI-AIRPFROM&lt;/P&gt;&lt;P&gt;        SPFLI-CITYTO&lt;/P&gt;&lt;P&gt;        SPFLI-AIRPTO&lt;/P&gt;&lt;P&gt;        SPFLI-DEPTIME&lt;/P&gt;&lt;P&gt;        SCARR-CARRNAME&lt;/P&gt;&lt;P&gt;      INTO SPFLI_FG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SFLIGHT-FLDATE&lt;/P&gt;&lt;P&gt;        SFLIGHT-SEATSMAX&lt;/P&gt;&lt;P&gt;        SFLIGHT-SEATSOCC&lt;/P&gt;&lt;P&gt;        SFLIGHT-PRICE&lt;/P&gt;&lt;P&gt;      INTO SFLIGHT_FG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SBOOK-BOOKID&lt;/P&gt;&lt;P&gt;        SBOOK-CUSTOMID&lt;/P&gt;&lt;P&gt;        SBOOK-CUSTTYPE&lt;/P&gt;&lt;P&gt;        SBOOK-SMOKER&lt;/P&gt;&lt;P&gt;       INTO SBOOK_FG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM SPFLI WHERE CARRID IN MYCARRID.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM SCARR WHERE CARRID = SPFLI-CARRID.&lt;/P&gt;&lt;P&gt;  EXTRACT SPFLI_FG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM SFLIGHT&lt;/P&gt;&lt;P&gt;   WHERE CARRID = SPFLI-CARRID AND  CONNID = SPFLI-CONNID.&lt;/P&gt;&lt;P&gt;    EXTRACT SFLIGHT_FG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM SBOOK&lt;/P&gt;&lt;P&gt;           WHERE CARRID = SFLIGHT-CARRID AND&lt;/P&gt;&lt;P&gt;           CONNID = SFLIGHT-CONNID AND FLDATE = SFLIGHT-FLDATE.&lt;/P&gt;&lt;P&gt;      EXTRACT SBOOK_FG.&lt;/P&gt;&lt;P&gt;      CLEAR SBOOK.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;    CLEAR SFLIGHT.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  CLEAR SPFLI.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT.&lt;/P&gt;&lt;P&gt;LOOP.&lt;/P&gt;&lt;P&gt;  AT SPFLI_FG.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;    WRITE: / SCARR-CARRNAME,&lt;/P&gt;&lt;P&gt;             SPFLI-CONNID, SPFLI-CITYFROM,&lt;/P&gt;&lt;P&gt;             SPFLI-AIRPFROM, SPFLI-CITYTO, SPFLI-AIRPTO, SPFLI-DEPTIME.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT SFLIGHT_FG.&lt;/P&gt;&lt;P&gt;    WRITE: /15 SFLIGHT-FLDATE, SFLIGHT-PRICE, SFLIGHT-SEATSMAX,&lt;/P&gt;&lt;P&gt;               SFLIGHT-SEATSOCC.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT SBOOK_FG.&lt;/P&gt;&lt;P&gt;    WRITE: /30 SBOOK-BOOKID, SBOOK-CUSTOMID,&lt;/P&gt;&lt;P&gt;                 SBOOK-CUSTTYPE, SBOOK-SMOKER.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      END OF REPORT                                                  *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 13:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filed-groups/m-p/2603910#M596627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T13:04:18Z</dc:date>
    </item>
  </channel>
</rss>

