<?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 declaration - clarification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494635#M229749</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;  if you have already declared the itab_wa and if you want to use the work area in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ITAB LIKE ITAB_WA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works..  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Aug 2006 21:13:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-26T21:13:22Z</dc:date>
    <item>
      <title>Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494629#M229743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help in declaring internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared my internal table as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : itab_wa type ZRESULT_LINE,
       itab type ZRESUULT_ROW.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where ZRESULT_LINE is a structure with FIELD1, FIELD2 and FIELD3. Now I want to add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TCOLOR TYPE SLIS_T_SPECIALCOL_ALV,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my internal table declaration so that it has the declaration similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF itab OCCURS 0,
      FIELD1,
      FIELD2,
      FIELD3,
  &amp;lt;b&amp;gt;    TCOLOR TYPE SLIS_T_SPECIALCOL_ALV,&amp;lt;/b&amp;gt; 
      END OF itab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this please help. I have to use the structure ZRESULT_LINE in my internal table. Waiting....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 18:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494629#M229743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T18:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494630#M229744</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 itab OCCURS 0.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE ZRESULT_LINE.&lt;/P&gt;&lt;P&gt;DATA: TCOLOR TYPE SLIS_T_SPECIALCOL_ALV, &lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 18:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494630#M229744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494631#M229745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;      FIELD1,&lt;/P&gt;&lt;P&gt;      FIELD2,&lt;/P&gt;&lt;P&gt;      FIELD3,&lt;/P&gt;&lt;P&gt;DATA: TCOLOR TYPE SLIS_T_SPECIALCOL_ALV, &lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 18:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494631#M229745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T18:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494632#M229746</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 ZRESULT_LINE is a structure then your internal table declaration is wrong.&lt;/P&gt;&lt;P&gt;it should be  like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data itab like table of zresult_line&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you wanna add additional field then you could add the same to your structure ZRESULT_LINE by going into SE11 if the structure created thru ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;      include structure zresult_line.&lt;/P&gt;&lt;P&gt;data: tcolor type slis_t_specialcol_alv,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that internal table with header lines are oldest forms of internal table and it wont be supported in OO Context..&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>Sat, 26 Aug 2006 18:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494632#M229746</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-08-26T18:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494633#M229747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I already used &amp;lt;b&amp;gt;itab_wa&amp;lt;/b&amp;gt; (work area) and &amp;lt;b&amp;gt;itab&amp;lt;/b&amp;gt; (body) so I dont want to change my code as I have many lines of code. Can you change your sample declaration so that it has &amp;lt;b&amp;gt;itab_wa&amp;lt;/b&amp;gt; (work area) and &amp;lt;b&amp;gt;itab&amp;lt;/b&amp;gt; (body). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 18:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494633#M229747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T18:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494634#M229748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab_wa.&lt;/P&gt;&lt;P&gt;      include structure zresult_line.&lt;/P&gt;&lt;P&gt;data: tcolor type slis_t_specialcol_alv,&lt;/P&gt;&lt;P&gt;      end of itab_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like table of itab_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>Sat, 26 Aug 2006 19:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494634#M229748</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-08-26T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494635#M229749</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;  if you have already declared the itab_wa and if you want to use the work area in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ITAB LIKE ITAB_WA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works..  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 21:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494635#M229749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-26T21:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table declaration - clarification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494636#M229750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's how I would define the structure (of course never using header lines which are only a soure of errors):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: begin of ty_s_line.
  INCLUDE TYPE zresult_line.
  INCLUDE TYPE slis_t_specialcol_alv AS tcolor.
TYPES: end of ty_s_line.
TYPES: ty_t_itab   TYPE STANDARD TABLE of ty_s_line
                   WITH STANDARD KEY.
DATA:
  gt_itab   TYPE ty_t_itab,
  gs_line   TYPE ty_s_line.
&lt;/CODE&gt;&lt;/PRE&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>Sun, 27 Aug 2006 07:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-declaration-clarification/m-p/1494636#M229750</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-27T07:21:32Z</dc:date>
    </item>
  </channel>
</rss>

