<?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: doubt on internal table  with headerline in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488097#M561352</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;all ways declare internal table structure firt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of it_tab1,&lt;/P&gt;&lt;P&gt;        f1(20),&lt;/P&gt;&lt;P&gt;        f2(40),&lt;/P&gt;&lt;P&gt;        f3(20),&lt;/P&gt;&lt;P&gt;       end of it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab2 type it_tab1 occurs 1,&lt;/P&gt;&lt;P&gt;          wa_tab2 type it_tab1,&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the performance way this is good to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2007 10:17:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-13T10:17:32Z</dc:date>
    <item>
      <title>doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488092#M561347</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;can any one explain which will be better performance wise,&lt;/P&gt;&lt;P&gt;internal table with headerline or without headerline&lt;/P&gt;&lt;P&gt;and why?&lt;/P&gt;&lt;P&gt;any useful suggestion will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;cnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 04:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488092#M561347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T04:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488093#M561348</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 dont think there is any difference in performance in any of the case, but the extension with header line is not allowed in abap objects so it is adviced not to avoid using that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 05:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488093#M561348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T05:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488094#M561349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typo error , it is adviced to avoid using that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 05:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488094#M561349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T05:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488095#M561350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Internal tables without header lines are better performance wise, then internal table with header lines. That is why, now a days its not recomended to use internal table with header line. But a seprate work area can be made to work around with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this clears ur doubt..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 09:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488095#M561350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488096#M561351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for performance: use field symbols !!! This will greatly improve performance.&lt;/P&gt;&lt;P&gt;In general I'd discourage using itabs with header line as this is often ambigious such as in FORM myform TABLES ...&lt;/P&gt;&lt;P&gt;Besides, the outside world (such as java) doesn't know about itabs with header lines, so for future use in NetWeaver applications and the like this will cause headaches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 10:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488096#M561351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488097#M561352</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;all ways declare internal table structure firt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of it_tab1,&lt;/P&gt;&lt;P&gt;        f1(20),&lt;/P&gt;&lt;P&gt;        f2(40),&lt;/P&gt;&lt;P&gt;        f3(20),&lt;/P&gt;&lt;P&gt;       end of it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab2 type it_tab1 occurs 1,&lt;/P&gt;&lt;P&gt;          wa_tab2 type it_tab1,&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the performance way this is good to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 10:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488097#M561352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T10:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488098#M561353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any performance improvements by using header lines, work areas or field symbols is inconsequential. There are far bigger things to worry about first:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


REPORT ztest MESSAGE-ID 00.

DATA: BEGIN OF itab_old OCCURS 0,
        f1,
      END   OF itab_old.

TYPES: BEGIN OF data_area,
        f1,
      END OF data_area.

DATA: itab_and_wa TYPE TABLE OF data_area WITH HEADER LINE,
      itab_only   TYPE TABLE OF data_area,
      wa_only     TYPE data_area.

FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE data_area.

DATA: start TYPE i,
      end   TYPE i,
      dif   TYPE i.

* Fill the internal tables
DO 50 TIMES.
  APPEND INITIAL LINE TO: itab_and_wa,
                          itab_only,
                          itab_old.
ENDDO.

* Take a number of readings
DO 5 TIMES.
* First check the performance of various internal tables
  GET RUN TIME FIELD start.
  LOOP AT itab_old.
  ENDLOOP.
  GET RUN TIME FIELD end.
  dif = end - start.
  WRITE: /001 'Time to loop internal table with OCCURS   :',
                   dif, 'microseconds'.

  GET RUN TIME FIELD start.
  LOOP AT itab_and_wa.
  ENDLOOP.
  GET RUN TIME FIELD end.
  dif = end - start.
  WRITE: /001 'Time to loop internal table with header   :',
                       dif, 'microseconds'.

  GET RUN TIME FIELD start.
  LOOP AT itab_only INTO wa_only.
  ENDLOOP.
  GET RUN TIME FIELD end.
  dif = end - start.
  WRITE: /001 'Time to loop internal table without header:',
                       dif, 'microseconds'.

  GET RUN TIME FIELD start.
  LOOP AT itab_only ASSIGNING &amp;lt;fs&amp;gt;.
  ENDLOOP.
  GET RUN TIME FIELD end.
  dif = end - start.
  WRITE: /001 'Time to loop internal table with ASSIGNING:',
                       dif, 'microseconds'.

* Check the performance of nested loops
  GET RUN TIME FIELD start.
  LOOP AT itab_old.
    LOOP AT itab_and_wa.
      LOOP AT itab_only INTO wa_only.
        LOOP AT itab_only ASSIGNING &amp;lt;fs&amp;gt;.
        ENDLOOP.
      ENDLOOP.
    ENDLOOP.
  ENDLOOP.
  GET RUN TIME FIELD end.
  dif = end - start.
  WRITE: /001 'Time for nested loop over four tables     :',
                       dif, 'microseconds'.
  SKIP.

ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 19:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488098#M561353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T19:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488099#M561354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at any point of time use internal table without header line,it will be good performance as well OO ABAP will allow only internal table without header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use one simple example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create one simple program with header line,use get run time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create one simple program without header line,use get run time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the results ,here time will be micro seconds,so take 1000 records to internal table and do calculate the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 19:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488099#M561354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488100#M561355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seshu - that's exactly what the program I posted above does (except for the part about showing that internal tables without header lines are better for performance &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 19:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488100#M561355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T19:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488101#M561356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I opened thread and gave the answer,my writting skills is very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once i posted then i saw your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 19:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488101#M561356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488102#M561357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know what you mean - the forum is so sssllloooowwww lateley.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 20:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488102#M561357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T20:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table  with headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488103#M561358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use internal without header line, if possible , use field symbols !&lt;/P&gt;&lt;P&gt;it will imporve your code performance .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 03:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table-with-headerline/m-p/2488103#M561358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T03:10:26Z</dc:date>
    </item>
  </channel>
</rss>

