<?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 table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750553#M325423</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 u declare with the data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;    this will create the internal table with the header line&lt;/P&gt;&lt;P&gt;    and takes structure from standard.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    if u declare with the types u are creating the strucutre in your&lt;/P&gt;&lt;P&gt;      program and using that structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Dec 2006 06:03:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-27T06:03:04Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750540#M325410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;      what is the difference between bothe the types of declararion i mean to say technical point of view.&lt;/P&gt;&lt;P&gt;    1)   DATA : BEGIN OF ITAB 0CCURS 0,&lt;/P&gt;&lt;P&gt;         MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;         ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;         END OF ITAB.&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;  TYPES : BEGIN OF T_TAB,&lt;/P&gt;&lt;P&gt;          MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;          ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;          END OF T_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data it_tab type table of t_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Thnking u all.&lt;/P&gt;&lt;P&gt;                                                                  regards,&lt;/P&gt;&lt;P&gt;                                                                   satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750540#M325410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750541#M325411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) it_tab will not have a Header line where as itab will have one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750541#M325411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750542#M325412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;OCCURS 0 declares an internal table with work area whereas the second declration dont have an header .&lt;/P&gt;&lt;P&gt;We should always use the second type declaration ans declare an explicit work area like data : wa type it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750542#M325412</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-12-27T05:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750543#M325413</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;In the first case, your internal table has a header line &amp;amp; the second doesn't have it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750543#M325413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750544#M325414</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;chk this u will get the idea.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTYPES                                                      *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
REPORT  ZTYPES                                                  .

* Table declaration (old method)
DATA: BEGIN OF tab_ekpo OCCURS 0,             "itab with header line
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
 END OF tab_ekpo.

*Table declaration (new method)     "USE THIS WAY!!!
TYPES: BEGIN OF t_ekpo,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
 END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab
      wa_ekpo TYPE t_ekpo.                    "work area (header line)

* Build internal table and work area from existing internal table
DATA: it_datatab LIKE tab_ekpo OCCURS 0,      "old method
      wa_datatab LIKE LINE OF tab_ekpo.

* Build internal table and work area from existing internal table,
* adding additional fields
TYPES: BEGIN OF t_repdata.
        INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!
TYPES: bukrs  TYPE ekpo-werks,
       bstyp  TYPE ekpo-bukrs.
TYPES: END OF t_repdata.
DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab
      wa_repdata TYPE t_repdata.                 "work area (header line)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750544#M325414</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-27T05:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750545#M325415</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;First type of decleration hold WA &amp;amp; body of table&lt;/P&gt;&lt;P&gt;Second decleration hold only body of table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750545#M325415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750546#M325416</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;           Thnk u for ur replies.&lt;/P&gt;&lt;P&gt;           suppose i m declaring the second declaration as&lt;/P&gt;&lt;P&gt;           data it_tab type table of t_tab with header line.&lt;/P&gt;&lt;P&gt;            Then wht is the difference now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                                   regards,&lt;/P&gt;&lt;P&gt;                                                                   satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750546#M325416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750547#M325417</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;DATA: BEGIN OF &amp;lt;itab&amp;gt; OCCURS &amp;lt;n&amp;gt;,&lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;        &amp;lt;fi&amp;gt; ...&lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;  END OF &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement declared an internal table &amp;lt;itab&amp;gt; with the line type defined following the OCCURS addition. Furthermore, all internal tables had header lines. &lt;/P&gt;&lt;P&gt;The number &amp;lt;n&amp;gt; in the OCCURS addition had the same meaning as in the INITIAL SIZE addition from Release 4.0. Entering &amp;#145;0&amp;#146; had the same effect as omitting the INITIAL SIZE addition. In this case, the initial size of the table is determined by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is still possible in Release 4.0, and has roughly the same function as the following statements: &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF &amp;lt;itab&amp;gt;,&lt;/P&gt;&lt;P&gt;         ...&lt;/P&gt;&lt;P&gt;         &amp;lt;fi&amp;gt; ..., &lt;/P&gt;&lt;P&gt;         ...&lt;/P&gt;&lt;P&gt;       END OF &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE STANDARD TABLE OF &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;                 WITH NON-UNIQUE DEFAULT KEY&lt;/P&gt;&lt;P&gt;                 INITIAL SIZE &amp;lt;n&amp;gt;&lt;/P&gt;&lt;P&gt;                 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;In the original statement, no independent data type &amp;lt;itab&amp;gt; is created. Instead, the line type only exists as an attribute of the data object &amp;lt;itab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Release 3.0, it has been possible to create table types using &lt;/P&gt;&lt;P&gt;TYPES &amp;lt;t&amp;gt; TYPE|LIKE &amp;lt;linetype&amp;gt; OCCURS &amp;lt;n&amp;gt;.&lt;/P&gt;&lt;P&gt;and table objects using&lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE|LIKE &amp;lt;linetype&amp;gt; OCCURS &amp;lt;n&amp;gt; [WITH HEADER LINE].&lt;/P&gt;&lt;P&gt;The effect of the OCCURS addition is to construct a standard table with the data type &amp;lt;linetype&amp;gt;. The line type can be any data type. The number &amp;lt;n&amp;gt; in the OCCURS addition has the same meaning as before Release 3.0. Before Release 4.0, the key of an internal table was always the default key, that is, all non-numeric fields that were not themselves internal tables. &lt;/P&gt;&lt;P&gt;The above statements are still possible in Release 4.0, and have the same function as the following statements: &lt;/P&gt;&lt;P&gt;TYPES|DATA &amp;lt;itab&amp;gt; TYPE|LIKE STANDARD TABLE OF &amp;lt;linetype&amp;gt; &lt;/P&gt;&lt;P&gt;                            WITH NON-UNIQUE DEFAULT KEY&lt;/P&gt;&lt;P&gt;                            INITIAL SIZE &amp;lt;n&amp;gt;&lt;/P&gt;&lt;P&gt;                            [WITH HEADER LINE].&lt;/P&gt;&lt;P&gt;They can also be replaced by the following statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a standard table, you can use the following forms of the TYPES and DATA statements. The addition INITIAL SIZE is also possible in all of the statements. The addition WITH HEADER LINE is possible in the DATA statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic Standard Table Type:&lt;/P&gt;&lt;P&gt;TYPES &amp;lt;itab&amp;gt; TYPE|LIKE [STANDARD] TABLE OF &amp;lt;linetype&amp;gt;.&lt;/P&gt;&lt;P&gt;The table key is not defined. &lt;/P&gt;&lt;P&gt;Fully-Specified Standard Table Type:&lt;/P&gt;&lt;P&gt;TYPES &amp;lt;itab&amp;gt; TYPE|LIKE [STANDARD] TABLE OF &amp;lt;linetype&amp;gt; &lt;/P&gt;&lt;P&gt;                       WITH [NON-UNIQUE] &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;The key of a fully-specified standard table is always non-unique. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Forms of the DATA Statement :&lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE|LIKE [STANDARD] TABLE OF &amp;lt;linetype&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE|LIKE [STANDARD] TABLE OF &amp;lt;linetype&amp;gt; &lt;/P&gt;&lt;P&gt;                      WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;Both of these DATA statements are automatically completed by the system as follows: &lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE|LIKE STANDARD TABLE OF &amp;lt;linetype&amp;gt; &lt;/P&gt;&lt;P&gt;                      WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;The purpose of the shortened forms of the DATA statement is to keep the declaration of standard tables, which are compatible with internal tables from previous releases, as simple as possible. When you declare a standard table with reference to the above type, the system automatically adopts the default key as the table key. &lt;/P&gt;&lt;P&gt;Fully-Specified Standard Tables: &lt;/P&gt;&lt;P&gt;DATA &amp;lt;itab&amp;gt; TYPE|LIKE [STANDARD] TABLE OF &amp;lt;linetype&amp;gt; &lt;/P&gt;&lt;P&gt;                       WITH [NON-UNIQUE] &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;The key of a standard table is always non-unique. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750547#M325417</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-12-27T05:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750548#M325418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750548#M325418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750549#M325419</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;PRE&gt;&lt;CODE&gt;* Build internal table and work area from existing internal table,
* adding additional fields
TYPES: BEGIN OF t_repdata.
        INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!
TYPES: bukrs  TYPE ekpo-werks,
       bstyp  TYPE ekpo-bukrs.
TYPES: END OF t_repdata.

DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab
      wa_repdata TYPE t_repdata.                 "work area (header line)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750549#M325419</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-27T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750550#M325420</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;In this type of declaration also the table it_itab will have header line so just declaration style is different in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750550#M325420</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2006-12-27T05:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750551#M325421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in first example a internal table of name itab will be created directly. in second example u need to use data statement to create internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB 0CCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this type of coding is used when structure u create is going to be used only once.&lt;/P&gt;&lt;P&gt;a internal table Itba will be created.&lt;/P&gt;&lt;P&gt;memeory area will be allocated for ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF T_TAB,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;END OF T_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data it_tab type table of t_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is used to create many internal table of T_TAB structure type.&lt;/P&gt;&lt;P&gt;here data statement is required to create internal table.&lt;/P&gt;&lt;P&gt;no memory area will be created until u use data statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750551#M325421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750552#M325422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vickram,&lt;/P&gt;&lt;P&gt;                  once we give data statement then memory will be allocated then will there be any diff between the two.&lt;/P&gt;&lt;P&gt;                                                   regards,&lt;/P&gt;&lt;P&gt;                                                    satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 05:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750552#M325422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T05:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750553#M325423</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 u declare with the data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;    this will create the internal table with the header line&lt;/P&gt;&lt;P&gt;    and takes structure from standard.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    if u declare with the types u are creating the strucutre in your&lt;/P&gt;&lt;P&gt;      program and using that structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 06:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750553#M325423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T06:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750554#M325424</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 learnt from a book that if we declare like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : BEGIN OF ITAB 0CCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will take 8kb of memory initially . whereas &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF T_TAB,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt;END OF T_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : it_tab type table of t_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this type it will take 30 bytes (18 + 12) of memory initially . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 06:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750554#M325424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T06:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750555#M325425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;OCCURS 0 declares an internal table with work area whereas the second declration dont have an header .&lt;/P&gt;&lt;P&gt;We should always use the second type declaration ans declare an explicit work area like data : wa type it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 06:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750555#M325425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T06:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750556#M325426</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 main difference is in "Header Line".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first case, there will be a header line by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second case, you are creating a type declaration, with the necessary fields and then creating an internal table of that 'type'.  So this will not have any header line.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is always advisable to use the second option i.e. first create a type declaration and then decalre an internal table of that type.  Also create an expilcit Work Area of the same type declaration.  This is the "Best Practice" used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never use header line as the performance of the code comes down.  Always use explicit Work Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: If this answer is useful, plz provide Reward Points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 06:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750556#M325426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T06:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750557#M325427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basic difference would be ....the first declaration of internal table will have a Header where as the type declaration will not have a header...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...morover if u have declared using "type"... while looping at the internal table u will have to loop into a wor areak to read and access it for computation....as for the first its not needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 08:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1750557#M325427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T08:20:26Z</dc:date>
    </item>
  </channel>
</rss>

