<?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 Performance with internal table and processing Records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720602#M895658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest some better ways to declare the internal table and effective statements to process the records in the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly send model reports with the above criteria.&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 and Regards&lt;/P&gt;&lt;P&gt;Arun Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 06:17:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T06:17:30Z</dc:date>
    <item>
      <title>Performance with internal table and processing Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720602#M895658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest some better ways to declare the internal table and effective statements to process the records in the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly send model reports with the above criteria.&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 and Regards&lt;/P&gt;&lt;P&gt;Arun Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720602#M895658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance with internal table and processing Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720603#M895659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you have to LOOP through an internal table or you have to READ from an internal table, use FIELD-SYMBOLS instead of usual workareas.&lt;/P&gt;&lt;P&gt;When READing from internal table, make shure that the table is sorted or hashed and that you declared a good key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720603#M895659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance with internal table and processing Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720604#M895660</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;Go through this for better insight :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table declaration (old method)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF tab_ekpo OCCURS 0,             "itab with header line&lt;/P&gt;&lt;P&gt;  ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;  ebelp TYPE ekpo-ebelp,&lt;/P&gt;&lt;P&gt; END OF tab_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Table declaration (new method n  better)    &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ekpo,&lt;/P&gt;&lt;P&gt;  ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;  ebelp TYPE ekpo-ebelp,&lt;/P&gt;&lt;P&gt; END OF t_ekpo.&lt;/P&gt;&lt;P&gt;DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab&lt;/P&gt;&lt;P&gt;      wa_ekpo TYPE t_ekpo.                    "work area (header line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build internal table and work area from existing internal table (obsolete now)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: it_datatab LIKE tab_ekpo OCCURS 0,      &lt;/P&gt;&lt;P&gt;      wa_datatab LIKE LINE OF tab_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build internal table and work area from existing internal table,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;adding additional fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF t_repdata.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!&lt;/P&gt;&lt;P&gt;TYPES: bukrs  TYPE ekpo-werks,&lt;/P&gt;&lt;P&gt;       bstyp  TYPE ekpo-bukrs.&lt;/P&gt;&lt;P&gt;TYPES: END OF t_repdata.&lt;/P&gt;&lt;P&gt;DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab&lt;/P&gt;&lt;P&gt;      wa_repdata TYPE t_repdata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720604#M895660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance with internal table and processing Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720605#M895661</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;&lt;/P&gt;&lt;P&gt; Can you suggest me some better ways to process the internal table records??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean to say read table,collect, etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Arun Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 07:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720605#M895661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T07:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance with internal table and processing Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720606#M895662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Avoid nested loop, if possible.&lt;/P&gt;&lt;P&gt;if the internal table is large use binary search to read the entries otherwise u can read the entries directly.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; for processing huge internal tables use parallel cursor concept.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2bcode%2bfor%2bparallel%2bcursor%2b-%2bloop%2bprocessing" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2bcode%2bfor%2bparallel%2bcursor%2b-%2bloop%2bprocessing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) sort the internal table based on ur requirement. this will help u in faster retrieval of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) With COLLECT lines with identical key are aggregated to one line, all numeric fields are summed up automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) u can use "transporting" with READ statement if the internal table has more fields and required fields for processing are less.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) u can use field-symbols for direct accessing of the internal table instead of populating the header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) avoid Selects in the Loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 08:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-with-internal-table-and-processing-records/m-p/3720606#M895662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T08:04:20Z</dc:date>
    </item>
  </channel>
</rss>

