<?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/4210447#M1006149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define internal tables either with (WITH HEADER LINE addition) or without header lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An internal table with header line consists of a work area (header line) and the actual table body. You address both objects &lt;/P&gt;&lt;P&gt;using the same name. The way in which the system interprets the name depends on the context. For example, the MOVE statement applies to the header line, but the SEARCH statement applies to the body of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid confusion, you are recommended to use internal tables without header lines. This is particularly important when you use nested tables. However, internal tables with header line do offer a shorter syntax in several statements &lt;/P&gt;&lt;P&gt;( APPEND, INSERT, MODIFY, COLLECT, DELETE, READ, LOOP ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within ABAP Objects, you can only use internal tables without a header line. You can always address the body of an internal table &amp;lt;itab&amp;gt; explicitly by using the following syntax: &amp;lt;itab&amp;gt;[].  This syntax is always valid, whether the internal table has a header line or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 05:37:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T05:37:57Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210441#M1006143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know the difference and the advantages of declaring the internal tables for the following methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;Method : 1&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:  BEGIN OF I_EKKO,&lt;/P&gt;&lt;P&gt;              EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;              AEDAT LIKE EKKO-AEDAT,&lt;/P&gt;&lt;P&gt;              BUKRS LIKE EKKO-BUKRS,&lt;/P&gt;&lt;P&gt;              BSART LIKE EKKO-BSART,&lt;/P&gt;&lt;P&gt;              LIFNR LIKE EKKO-LIFNR,&lt;/P&gt;&lt;P&gt;              END OF I_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:    IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;              WA_EKKO TYPE I_EKKO.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method : 2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  BEGIN OF IT_EKKO OCCURS 0,&lt;/P&gt;&lt;P&gt;              EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;              AEDAT LIKE EKKO-AEDAT,&lt;/P&gt;&lt;P&gt;              BUKRS LIKE EKKO-BUKRS,&lt;/P&gt;&lt;P&gt;              BSART LIKE EKKO-BSART,&lt;/P&gt;&lt;P&gt;              LIFNR LIKE EKKO-LIFNR,&lt;/P&gt;&lt;P&gt;              END OF IT_EKKO.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210441#M1006143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:25: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/4210442#M1006144</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;there is no differenence in working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210442#M1006144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210443#M1006145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the frst example,an  internal table without header line is declared  while in  the second example an internal table with header line is declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an internal table is declared with a header line an aurtomatic work area gets created implicitly.However, if we decalre the internal table without header line then we have to decalare a work area explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OCCURS 0&lt;/STRONG&gt; - Normally we declare with header line internal table with ocurs 0 specification. if we declare internal table with &lt;/P&gt;&lt;P&gt;occurs 0 then it will initially get 8 kilo bytes memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Note:-&lt;/U&gt; Though an implicit work area gets created in case of internal table with header line but still it is recommended that we should create internal table without header line as it is convenient to use &amp;amp; accessing data is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap04/sld012.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap04/sld012.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck.&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210443#M1006145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:31: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/4210444#M1006146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my understanding there is no difference but basis ver. 6.10 onwards 'occurs 0' addition is obsolete..so u should avoid method 2 for declaring internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210444#M1006146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:32: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/4210445#M1006147</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 internal table declared in method 1 is without header line n second one is with header line which is now obsolet in ECC.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210445#M1006147</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-07-22T05:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210446#M1006148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declaring Types is performance wise good and The new style of definition of internal tables usually doesn't include a header area for the internal table. Furthermore, ABAP Objects will not allow internal tables with header lines. For added performance, instead of declaring a work area--use a field symbol. The work area concept and header line format both require data to be moved from the internal table to the work area or header area. A field symbol is just a pointer that will point to the proper line of the itab. With field symbols, no data needs to be moved. The field symbol just stores the proper memory address to point at the right line. The field symbol can have structure and be made up of fields similar to a work area or header line. Because no data needs to be copied, processing is much faster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keys to the usage are:&lt;/P&gt;&lt;P&gt;1) Defining the table records and the field symbol in a similar type.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;just an ordinary standard table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF it_vbak_line,&lt;/P&gt;&lt;P&gt;vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;vkorg LIKE vbak-vkorg,&lt;/P&gt;&lt;P&gt;vtweg LIKE vbak-vtweg,&lt;/P&gt;&lt;P&gt;spart LIKE vbak-spart,&lt;/P&gt;&lt;P&gt;kunnr LIKE vbak-kunnr,&lt;/P&gt;&lt;P&gt;END OF it_vbak_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_vbak TYPE TABLE OF it_vbak_line.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;it_vbak_line&amp;gt; TYPE it_vbak_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;or as a screaming fast hash table for keyed reads&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF it_vbpa_line,&lt;/P&gt;&lt;P&gt;vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;kunnr LIKE vbak-kunnr,&lt;/P&gt;&lt;P&gt;END OF it_vbpa_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_vbpa TYPE HASHED TABLE OF it_vbpa_line&lt;/P&gt;&lt;P&gt;WITH UNIQUE KEY vbeln.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;it_vbpa_line&amp;gt; TYPE it_vbpa_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In ITAB processing, utilize the ASSIGNING command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;loop example &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT it_vbak ASSIGNING &amp;lt;it_vbak_line&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;look at records--populate it_zpartner&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read example &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE it_vbpa ASSIGNING &amp;lt;it_vbpa_line&amp;gt;&lt;/P&gt;&lt;P&gt;WITH TABLE KEY vbeln = &amp;lt;it_vbak_line&amp;gt;-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Refer to the field symbol's fields in the loop or after the read.&lt;/P&gt;&lt;P&gt;wa_zpartner-vkorg = &amp;lt;it_vbak_line&amp;gt;-vkorg.&lt;/P&gt;&lt;P&gt;wa_zpartner-vtweg = &amp;lt;it_vbak_line&amp;gt;-vtweg.&lt;/P&gt;&lt;P&gt;wa_zpartner-spart = &amp;lt;it_vbak_line&amp;gt;-spart.&lt;/P&gt;&lt;P&gt;wa_zpartner-kunag = &amp;lt;it_vbak_line&amp;gt;-kunnr.&lt;/P&gt;&lt;P&gt;wa_zpartner-kunwe = &amp;lt;it_vbpa_line&amp;gt;-kunnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210446#M1006148</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-07-22T05:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210447#M1006149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define internal tables either with (WITH HEADER LINE addition) or without header lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An internal table with header line consists of a work area (header line) and the actual table body. You address both objects &lt;/P&gt;&lt;P&gt;using the same name. The way in which the system interprets the name depends on the context. For example, the MOVE statement applies to the header line, but the SEARCH statement applies to the body of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid confusion, you are recommended to use internal tables without header lines. This is particularly important when you use nested tables. However, internal tables with header line do offer a shorter syntax in several statements &lt;/P&gt;&lt;P&gt;( APPEND, INSERT, MODIFY, COLLECT, DELETE, READ, LOOP ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within ABAP Objects, you can only use internal tables without a header line. You can always address the body of an internal table &amp;lt;itab&amp;gt; explicitly by using the following syntax: &amp;lt;itab&amp;gt;[].  This syntax is always valid, whether the internal table has a header line or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210447#M1006149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:37: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/4210448#M1006150</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;Both the method works in the same manner. But the first method is performance wise good. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210448#M1006150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:39: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/4210449#M1006151</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 both declarations are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first case ,the internal table is without header line, while in the second case the internal table is with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An internal table with headerline will have a workarea, but the internal table without headerline will not have, in this ace we need to explicitly create a workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the declaration with OCCURS 0 is Obsolete now , so need not use that instead we use internal table without headerline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even within ABAP Objects, you can only use internal tables without a header line. You can always address the body of an internal table &amp;lt;itab&amp;gt; explicitly by using the following syntax: &amp;lt;itab&amp;gt;[]. This syntax is always valid, whether the internal table has a header line or not.&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Jul 22, 2008 7:46 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Jul 22, 2008 7:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 05:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4210449#M1006151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T05:45:38Z</dc:date>
    </item>
  </channel>
</rss>

