<?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 concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597080#M268145</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 table is a table that u declare in ur program of some standard or ur own table ttype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how u declare an internal table without header line of type tab le MARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how u declare a work area of type MARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab type MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS is how u declare a table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF MARA with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happens if there is no header line?&lt;/P&gt;&lt;P&gt;if u dont  declare a table without header line then u need to explicitly declare a work area , if u need to do some display or calculations. u cannot use in this case the internal table to display.&lt;/P&gt;&lt;P&gt;u cannot read the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have a internal  table with header line then no need to have an explict work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2007 10:49:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-18T10:49:56Z</dc:date>
    <item>
      <title>internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597065#M268130</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;I m confused abt internal table concept.  &lt;/P&gt;&lt;P&gt;how to define internal table &amp;amp; wa separately?&lt;/P&gt;&lt;P&gt;how to use wa &amp;amp; internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to define internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the diff b/w header line &amp;amp; without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my knowledge header line i.e. wa. It can hold only one record at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597065#M268130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597066#M268131</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;It_vbak is an internal table with header line,&lt;/P&gt;&lt;P&gt;it_vbak1 is internal table without header line,&lt;/P&gt;&lt;P&gt;wa_vbak is a workarea which is having a similar structure of it_vbak internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

types : begin of t_vbak,
          vbeln like vbak-vbeln,
          vbtyp like vbak-vbtyp,
          aurat like vbak-auart,
        end of t_vbak.

data: it_vbak type standard table of t_vbak with header line,
      it_vbak1 type table of t_vbak,
      wa_vbak type t_vbak.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create internal table with header  line, a default work area is created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while creating internal table without header line, we need to create explicit work  area to work with it. When we need to nest the tables with in  tables, we need to use this type of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are still many ways of declaring internal tables with and without header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597066#M268131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597067#M268132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The header line is used to hold one line when reading the table.  For example, for an internal table with a header line you can simply loop or read it and the current row will be read into the "header line" of the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: itab type table of string with header line.

loop at itab.
  write:/ itab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you don't use a header line, you must use a work area, because you need a place to read the data into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: itab type table of string .
data: wa type string.

loop at itab into wa.
  write:/ wa.
endloop.&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;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597067#M268132</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-05T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597068#M268133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) To define itab and wa separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of lfa1.&lt;/P&gt;&lt;P&gt;data: wa type lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write:/ wa-lifnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between an internal table with and a/o header is the header line itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in short :&lt;/P&gt;&lt;P&gt;work area + itab without header line = itab with header line.&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>Thu, 05 Oct 2006 12:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597068#M268133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597069#M268134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to define internal table &amp;amp; wa separately?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*INTERNAL TABLE&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;         matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*WORK AREA&lt;/P&gt;&lt;P&gt;data : wa_itab like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to use wa &amp;amp; internal table?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Each internal table is looped and that record is passes to workarea and that workarea is used inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;  write : / wa_itab-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the diff b/w header line &amp;amp; without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if there is header line , for every loop the data will be retreived to header line and this is used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if the internal table is without header line , then each internal table record is looped and stored in workarea and this workarea is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597069#M268134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597070#M268135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salil,&lt;/P&gt;&lt;P&gt;  How to Define an Internal Table and WA?&lt;/P&gt;&lt;P&gt;    DATA: ITAB like standard table of &amp;lt;DBTAB/STRUCT NAME/Line type&amp;gt;.&lt;/P&gt;&lt;P&gt;    DATA: WA_ITAB type &amp;lt;DBTAB/STRUCT NAME/Line type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Now this WA_ITAB is the Work Area of ITAB.&lt;/P&gt;&lt;P&gt;     If you are populating values to this internal table ITAB and i fyou would like to read values from it then you hav eto move to the WorkArea defined for it i.e., WA_ITAB.&lt;/P&gt;&lt;P&gt;     For example.&lt;/P&gt;&lt;P&gt;     Read,&lt;/P&gt;&lt;P&gt;       read table itab into wa_itab with key .....&lt;/P&gt;&lt;P&gt;     Loop,&lt;/P&gt;&lt;P&gt;       loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     This is because you are using internal table without a header line.&lt;/P&gt;&lt;P&gt;     if you are using internal table with header line(i.e., ITAB addition with header line.) then the table itab is itself an WA and you need not have to move i tto WA i.e.,&lt;/P&gt;&lt;P&gt;     While Reading ITAB,&lt;/P&gt;&lt;P&gt;          Read table ITAB with key .......&lt;/P&gt;&lt;P&gt;     While Looping,&lt;/P&gt;&lt;P&gt;          Loop at itab.&lt;/P&gt;&lt;P&gt;          Endloop.&lt;/P&gt;&lt;P&gt;     defining Internal Table with header line?&lt;/P&gt;&lt;P&gt;     DATA: ITAB Like standard table of &amp;lt;DBTAB/STRUCT NAME/Line type&amp;gt; with header line.&lt;/P&gt;&lt;P&gt;     or&lt;/P&gt;&lt;P&gt;     DATA: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;           end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Hope this would have bought some light!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597070#M268135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597071#M268136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur good reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will u tell me the different ways of defining internal table with header line &amp;amp; without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; how to read the data from wa to body, how to move etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need ur help. Plz help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597071#M268136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597072#M268137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following.  Notice that the WITH HEADER LINE extension is obselete and shouldn't be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb367a358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb367a358411d1829f0000e829fbfe/frameset.htm&lt;/A&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597072#M268137</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-05T12:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597073#M268138</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa_vbak1 like wa_vbak,
      
      wa_vbak2 like line of it_vbak,
      
      it_vbak2 like table of wa_vbak with header line,
      
      it_vbak3 like table of it_vbak2 with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 12:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597073#M268138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597074#M268139</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;It's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will u just tell me what is the difference b/w&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like table of kna1.&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;data: itab type table of kna1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597074#M268139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597075#M268140</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;Here, the LIKE addition refers to an existing table object in the same program. The TYPE addition can refer to an internal type in the program declared using the TYPES statement, or a table type in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must ensure that you only refer to tables that are fully typed. Referring to generic table types (ANY TABLE, INDEX TABLE) or not specifying the key fully is not allowed (for exceptions, refer to Special Features of Standard Tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597075#M268140</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-05T13:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597076#M268141</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;&amp;lt;b&amp;gt; TYPES and DATA will be having different namespaces.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So, we can declare 2 variables with the same name but one should be declared using DATA statement and other using TYPES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types : v_var type c.
data: v_var type i.

data: v_new like v_var,
      v_next type v_var.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_new is of type integer, and v_next will be of type character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring v_new, as you specified like, it checks for those varaibles which are declared using &amp;lt;b&amp;gt;DATA &amp;lt;/b&amp;gt;statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of V_MEXT, it checks for variables that are declared using &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597076#M268141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597077#M268142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Salil &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is only one point that has not been mentioned yet:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DO NOT USE HEADER LINES!!!!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itabs with header lines mess up any ABAP coding and they are a nightmare with regards to maintainability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I so opposed to itabs having header lines?&lt;/P&gt;&lt;P&gt;(1) The same variable has two completely different meanings (either it is the body of the itab or the single header line).&lt;/P&gt;&lt;P&gt;(2) If the header line is filled with data can we work on that data or did somebody simply miss to initialize the header line correctly?&lt;/P&gt;&lt;P&gt;(3) When it comes to ABAP-OO (and we should exclusively program in ABAP-OO and leave the classical ABAP behind us) we cannot use header lines anymore because SAP has abandoned them from ABAP-OO (luckily!!!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have maintained lots of programs from other developers and one of the very first things I did was to get rid of all header lines. Even if you think I am a bit weird about this topic I repeat myself:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DO NOT USE HEADER LINES!!!!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 20:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597077#M268142</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-10-05T20:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597078#M268143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe, I did mentioned it above, but obviously it has been overlooked.  Thanks for the additional point of view.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 20:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597078#M268143</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-05T20:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597079#M268144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link,to know the Difference betwen TYPE and LIKE&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="136455"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the same concept also applies to internal table definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 20:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597079#M268144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T20:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal table concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597080#M268145</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 table is a table that u declare in ur program of some standard or ur own table ttype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how u declare an internal table without header line of type tab le MARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how u declare a work area of type MARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab type MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS is how u declare a table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab TYPE TABLE OF MARA with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happens if there is no header line?&lt;/P&gt;&lt;P&gt;if u dont  declare a table without header line then u need to explicitly declare a work area , if u need to do some display or calculations. u cannot use in this case the internal table to display.&lt;/P&gt;&lt;P&gt;u cannot read the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have a internal  table with header line then no need to have an explict work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 10:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-concept/m-p/1597080#M268145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T10:49:56Z</dc:date>
    </item>
  </channel>
</rss>

