<?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: internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397394#M815775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soorya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A work area mentioned explicitly in the append statement is known as an explicit work area. Any field string having the same structure as a row of the internal table can be used as an explicit work area. If a work area is not mentioned, the implicit work area (the header line) is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From performance point of view:&lt;/P&gt;&lt;P&gt;Avoid unnecessary assignments to the header line when using internal tables with a header line. &lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;"APPEND wa TO itab." &lt;/P&gt;&lt;P&gt;is approximately twice as fast as &lt;/P&gt;&lt;P&gt;"itab = wa. APPEND itab.&amp;#148; &lt;/P&gt;&lt;P&gt;The same applies to COLLECT and INSERT. &lt;/P&gt;&lt;P&gt;Whenever possible, use statements that have an explicit work area.&lt;/P&gt;&lt;P&gt;APPEND workarea TO itable.&lt;/P&gt;&lt;P&gt;INSERT workarea INTO itable.&lt;/P&gt;&lt;P&gt;COLLECT workarea INTO itable.&lt;/P&gt;&lt;P&gt;MODIFY itable FROM workarea.&lt;/P&gt;&lt;P&gt;READ TABLE itable INTO workarea.&lt;/P&gt;&lt;P&gt;LOOP AT itable INTO workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 06:24:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-08T06:24:22Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397389#M815770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;difference between implicit and exlicit work area, in performance point of view&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397389#M815770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397390#M815771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look to the Tips &amp;amp; Tricks of SE30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for performance and internal table works, the better is the field-symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397390#M815771</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2008-02-08T06:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397391#M815772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well if u create implicit work area then u cannot use it while dealing with other itab of same structures. so it is always preffered to have itab without headerline that is explicit work area.&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397391#M815772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397392#M815773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP recomends to use work areas than header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397392#M815773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397393#M815774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If we consider performance issue,better to declare the work area explicitly.&lt;/P&gt;&lt;P&gt;Follow the steps to define the internal table&lt;/P&gt;&lt;P&gt;1.Define the structure.&lt;/P&gt;&lt;P&gt;2.Define the internal table of Structure type.&lt;/P&gt;&lt;P&gt;3.Declare work area based on this structure.&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF T_VBAK,&lt;/P&gt;&lt;P&gt;      VBELN TYPE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;      ERDAT TYPE VBAK-ERDAT,&lt;/P&gt;&lt;P&gt;      ERNAM TYPE VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;      AUDAT TYPE VBAK-AUDAT,&lt;/P&gt;&lt;P&gt;      VBTYP TYPE VBAK-VBTYP,&lt;/P&gt;&lt;P&gt;      NETWR TYPE VBAK-NETWR,&lt;/P&gt;&lt;P&gt;      VKORG TYPE VBAK-VKORG,&lt;/P&gt;&lt;P&gt;      VKGRP TYPE VBAK-VKGRP,&lt;/P&gt;&lt;P&gt;      VBKLT TYPE VBAK-VBKLT,&lt;/P&gt;&lt;P&gt;      LINE_COLOR(4) TYPE C,&lt;/P&gt;&lt;P&gt;      END OF T_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      WA_VBAK TYPE T_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points,if it is useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397393#M815774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397394#M815775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soorya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A work area mentioned explicitly in the append statement is known as an explicit work area. Any field string having the same structure as a row of the internal table can be used as an explicit work area. If a work area is not mentioned, the implicit work area (the header line) is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From performance point of view:&lt;/P&gt;&lt;P&gt;Avoid unnecessary assignments to the header line when using internal tables with a header line. &lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;"APPEND wa TO itab." &lt;/P&gt;&lt;P&gt;is approximately twice as fast as &lt;/P&gt;&lt;P&gt;"itab = wa. APPEND itab.&amp;#148; &lt;/P&gt;&lt;P&gt;The same applies to COLLECT and INSERT. &lt;/P&gt;&lt;P&gt;Whenever possible, use statements that have an explicit work area.&lt;/P&gt;&lt;P&gt;APPEND workarea TO itable.&lt;/P&gt;&lt;P&gt;INSERT workarea INTO itable.&lt;/P&gt;&lt;P&gt;COLLECT workarea INTO itable.&lt;/P&gt;&lt;P&gt;MODIFY itable FROM workarea.&lt;/P&gt;&lt;P&gt;READ TABLE itable INTO workarea.&lt;/P&gt;&lt;P&gt;LOOP AT itable INTO workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3397394#M815775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:24:22Z</dc:date>
    </item>
  </channel>
</rss>

