<?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/1455888#M215524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;don't use OCCURS addition while creating internal table.&lt;/P&gt;&lt;P&gt;Internal tables with header lines are oldest form of internal table and it wont be&lt;/P&gt;&lt;P&gt;allowed in OO Context.&lt;/P&gt;&lt;P&gt;So i would advice you to create internal table without header.&lt;/P&gt;&lt;P&gt;It also gives you clear understanding of what you are doing in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oldform: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       col1 type i,&lt;/P&gt;&lt;P&gt;       col2 type i,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa,&lt;/P&gt;&lt;P&gt;       col1 type i,&lt;/P&gt;&lt;P&gt;       col2 type i,&lt;/P&gt;&lt;P&gt;      end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2006 08:18:14 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-07-20T08:18:14Z</dc:date>
    <item>
      <title>Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455881#M215517</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;I have small doubts on internal tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Which is better method to create a internal table &lt;/P&gt;&lt;P&gt;using  and How &lt;/P&gt;&lt;P&gt;1. Occurs  statement &lt;/P&gt;&lt;P&gt;2. type table of &amp;lt;structurename&amp;gt;&lt;/P&gt;&lt;P&gt;pls any one explain me in detail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We can create internal tables with header line or  with work area. Which one is better and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking u in advance&lt;/P&gt;&lt;P&gt;Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455881#M215517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:04: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/1455882#M215518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. TYPE TABLE of is better.&lt;/P&gt;&lt;P&gt;2. Explicit work area is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both the reason is same. OO ABAP does not work with OCCURS parameter or default header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It needs a STANDARD / SORTED / HASHED table type with a explicti work area or a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455882#M215518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455883#M215519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u  get    answer by ravi...&lt;/P&gt;&lt;P&gt;for   completw  refrense  refer...&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3646358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3646358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455883#M215519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455884#M215520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard way is.......&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;&lt;/P&gt;&lt;P&gt;In this way u did not need to specify work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to include whole structure of a table then u have to use.....for example mara&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;data: begin of itab,&lt;/P&gt;&lt;P&gt;include structure mara.&lt;/P&gt;&lt;P&gt;data:end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455884#M215520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455885#M215521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;Which is better method to create a internal table &lt;/P&gt;&lt;P&gt;using and How &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would personallly prefer&lt;/P&gt;&lt;P&gt;   OCCURS concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (bcos the syntax is simple &amp;amp; easy,&lt;/P&gt;&lt;P&gt;  and no need to do in 2 steps, ie. first define types,  and then define data for the same)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.We can create internal tables with header line or with work area. Which one is better and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per documentataion,&lt;/P&gt;&lt;P&gt;table with header line is a little slower than&lt;/P&gt;&lt;P&gt;table with work area concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, however,&lt;/P&gt;&lt;P&gt;We do not write all programs,&lt;/P&gt;&lt;P&gt;which processs lakhs of records everytime,&lt;/P&gt;&lt;P&gt;so, i personally prefer&lt;/P&gt;&lt;P&gt;to use table with header line,&lt;/P&gt;&lt;P&gt;bcos the syntax is simple and cleaner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455885#M215521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455886#M215522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  check the following link &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3646358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3646358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455886#M215522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455887#M215523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to create an Internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Declare a structure using &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF str_mara,
        matnr TYPE mara-matnr,
        mtart TYPE mara-mtart,
        END OF str_mara.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Decalre the Internal Table referring the structure created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : it_mara TYPE STANDARD TABLE OF str_mara,  "Internal Table
       wa_mara TYPE str_mara.                    "Work Area 
&lt;/CODE&gt;&lt;/PRE&gt;&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;P&gt;&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Dont use header line, instead use work areas(Int table declaration with header line is &amp;lt;b&amp;gt;forbidden&amp;lt;/b&amp;gt; in &amp;lt;b&amp;gt;ABAP Objects&amp;lt;/b&amp;gt; so is the case with &amp;lt;i&amp;gt;Occurs 0&amp;lt;/i&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="https://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca"&amp;gt;Guide to Obsolete Abap Constructs&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455887#M215523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455888#M215524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;don't use OCCURS addition while creating internal table.&lt;/P&gt;&lt;P&gt;Internal tables with header lines are oldest form of internal table and it wont be&lt;/P&gt;&lt;P&gt;allowed in OO Context.&lt;/P&gt;&lt;P&gt;So i would advice you to create internal table without header.&lt;/P&gt;&lt;P&gt;It also gives you clear understanding of what you are doing in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oldform: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       col1 type i,&lt;/P&gt;&lt;P&gt;       col2 type i,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa,&lt;/P&gt;&lt;P&gt;       col1 type i,&lt;/P&gt;&lt;P&gt;       col2 type i,&lt;/P&gt;&lt;P&gt;      end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455888#M215524</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-20T08:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455889#M215525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look the code below. It is better to declare a structure then an itab for that structure and a seperate work area or field-symbols. Because when you want to program using ABAP Objects, it will not allow you to use header lines and the statement OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structures                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_final,&lt;/P&gt;&lt;P&gt;        bukrs LIKE bsik-bukrs,     "Company Code&lt;/P&gt;&lt;P&gt;        lifnr LIKE bsik-lifnr,     "Account number of vendor or creditor&lt;/P&gt;&lt;P&gt;        hkont LIKE bsik-hkont,     "General ledger account&lt;/P&gt;&lt;P&gt;        belnr LIKE bsik-belnr,     "Accounting document number&lt;/P&gt;&lt;P&gt;        gjahr LIKE bsik-gjahr,     "Fiscal year&lt;/P&gt;&lt;P&gt;        shkzg LIKE bsik-shkzg,     "Debit/credit indicator&lt;/P&gt;&lt;P&gt;        dmbtr LIKE bsik-dmbtr,     "Amount in local currency&lt;/P&gt;&lt;P&gt;        sgtxt LIKE bsik-sgtxt,     "Item Text&lt;/P&gt;&lt;P&gt;        buzei LIKE bsik-buzei,     "Number of Line Item&lt;/P&gt;&lt;P&gt;        budat LIKE bkpf-budat,     "Posting date in the document&lt;/P&gt;&lt;P&gt;        bldat LIKE bkpf-bldat,     "Document date in document&lt;/P&gt;&lt;P&gt;        xblnr LIKE bkpf-xblnr,     "Reference document number&lt;/P&gt;&lt;P&gt;        bktxt LIKE bkpf-bktxt,     "Document header text&lt;/P&gt;&lt;P&gt;        name1 LIKE lfa1-name1,     "Vendor name&lt;/P&gt;&lt;P&gt;        s_dat(10) TYPE c,          "Start date(from long text)&lt;/P&gt;&lt;P&gt;        e_dat(10) TYPE c,          "End date(from long text)&lt;/P&gt;&lt;P&gt;        amount1 LIKE bsik-dmbtr,   "If 30 days and below&lt;/P&gt;&lt;P&gt;        amount2 LIKE bsik-dmbtr,   "If &amp;gt; 30  and &amp;lt; 60 days&lt;/P&gt;&lt;P&gt;        amount3 LIKE bsik-dmbtr,   "If &amp;gt; 60  and &amp;lt; 90 days&lt;/P&gt;&lt;P&gt;        amount4 LIKE bsik-dmbtr,   "If &amp;gt; 90  and &amp;lt; 120 days&lt;/P&gt;&lt;P&gt;        amount5 LIKE bsik-dmbtr,   "If &amp;gt; 120 and &amp;lt; 180 days&lt;/P&gt;&lt;P&gt;        amount6 LIKE bsik-dmbtr,   "If &amp;gt; 180 days&lt;/P&gt;&lt;P&gt;      END OF t_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal tables                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_final TYPE STANDARD TABLE OF t_final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*field-symbols&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_final&amp;gt; LIKE LINE OF it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points for useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455889#M215525</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-07-20T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455890#M215526</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: &lt;/P&gt;&lt;P&gt;Cannot Use OCCURS with Declarative Statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, you cannot define internal tables using the OCCURS addition in the TYPES or DATA statements (or any other declarative statement).&lt;/P&gt;&lt;P&gt;In ABAP Objects, the following statements cause an error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES|DATA: BEGIN OF itab OCCURS n, &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;  fi ..., &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;END OF itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES|DATA itab TYPE|LIKE line_type OCCURS n. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES|DATA: BEGIN OF line_type, &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;  fi ..., &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;END OF line_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES itab TYPE|LIKE STANDARD TABLE OF line_type &lt;/P&gt;&lt;P&gt;                     WITH NON-UNIQUE DEFAULT KEY &lt;/P&gt;&lt;P&gt;                     [INITIAL SIZE n]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE|LIKE [STANDARD] TABLE OF line_type &lt;/P&gt;&lt;P&gt;                    [INITIAL SIZE n]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE|LIKE TABLE OF, the new additions of the DATA and TYPES statements, make the OCCURS addition superfluous in table declarations. If necessary, you can define the initial main memory requirement using the INITIAL SIZE addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system automatically updates the short form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE|LIKE TABLE of line_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE|LIKE STANDARD TABLE OF line_type &lt;/P&gt;&lt;P&gt;                    WITH NON-UNIQUE DEFAULT KEY &lt;/P&gt;&lt;P&gt;                    INITIAL SIZE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that you can use the former. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system automatically updates the short form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES itab TYPE|LIKE STANDARD TABLE of line_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES itab TYPE|LIKE STANDARD TABLE of line_type &lt;/P&gt;&lt;P&gt;                     INITIAL SIZE 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and defines a standard table type with a generic key that can be used to type interface parameters and field symbols.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot Use Headers in Tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, you can only declare tables without headers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, the following statement causes an error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE|LIKE TABLE OF ... WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE|LIKE TABLE OF ... , &lt;/P&gt;&lt;P&gt;        wa LIKE LINE OF itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the statement, the system may access tables with a header either by accessing the table body, or by accessing the header itself. The table name should signify the table unambiguously. This makes programs easier to read. Tables with headers do not offer any performance advantages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call external procedures (subroutines and function modules) that are contained in the parameter interface TABLES parameter, be aware that this TABLES parameter always contains both a table body and a header. When a table without a header is transferred, the header of the TABLES parameter remains blank. When calling these procedres in methods, you must check to see whether the procedure expects to receive and evaluate the header. If necessary, adapt or rewrite the procedure. Method interfaces do not have TABLESparameters.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incompatible Work Area when Processing Control Levels: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area must be compatible with the table line type when you process control levels in an internal table in ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, the following statement causes an error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab LIKE TABLE OF line, &lt;/P&gt;&lt;P&gt;      wa(255) TYPE x. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab by col1. &lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  AT NEW col1. &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;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab LIKE TABLE OF line, &lt;/P&gt;&lt;P&gt;      wa   LIKE LINE OF itab. &lt;/P&gt;&lt;P&gt;SORT itab by col1. &lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  AT NEW col1. &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;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control level processing is based on the line structure of the internal table. The system evaluates the work area when it wants to change the control level, which means that the work are must have the same structure as the line of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot Declare a Superfluous Work Area:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, you cannot declare a work area as an addition to the READ TABLE statement, if you are also using the TRANSPORTING NO FIELDS addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP Objects, the following statement causes an error message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX i INTO wa TRANSPORTING NO FIELDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX i TRANSPORTING NO FIELDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring INTO wa is superfluous. The work area has no effect in the statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 10:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1455890#M215526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T10:39:52Z</dc:date>
    </item>
  </channel>
</rss>

