<?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: table type in oops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767618#M906523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab.
         include structure z_t_tabtyp. (instead of the table type use the line type)
data:  fields like table-field,
         end of itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error occurs because z_t_tabtyp is a table type, try using the line type, not the table type. (Just use the line type declared in the table type z_t_tabtyp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2008 17:51:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T17:51:07Z</dc:date>
    <item>
      <title>table type in oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767617#M906522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;suppose we have a table type created in abap ddic.&lt;/P&gt;&lt;P&gt;say z_t_tabtyp and it has a line type say z_l_lintyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my oops program i have declared say&lt;/P&gt;&lt;P&gt;data: g_itab type z_t_tabtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this I will achieve an internal table without a header line.&lt;/P&gt;&lt;P&gt;&lt;U&gt;The problem&lt;/U&gt;: If i want to add a few more fields to this internal table &lt;STRONG&gt;WITHOUT&lt;/STRONG&gt; changing the table type z_t_tabtyp which is a global structrure. How can i do that.&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab.
         include structure z_t_tabtyp
data:  fields like table-field,
         end of itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it gives me an error saying  z_t_tabtyp must be a flat structure.&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;Thanks a lot for looking.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767617#M906522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: table type in oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767618#M906523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab.
         include structure z_t_tabtyp. (instead of the table type use the line type)
data:  fields like table-field,
         end of itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error occurs because z_t_tabtyp is a table type, try using the line type, not the table type. (Just use the line type declared in the table type z_t_tabtyp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767618#M906523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: table type in oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767619#M906524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i achieved the desired result by the following code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF gt_char_typ.
         INCLUDE TYPE ZU7_S_HBR_SALES_REPORT_CHAR.
TYPES:   vbelv LIKE vbfa-vbelv,
       END OF gt_char_typ.
DATA: gt_char TYPE TABLE OF gt_char_typ.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all other suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for looking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767619#M906524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: table type in oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767620#M906525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David&lt;/P&gt;&lt;P&gt;I figred that out,&lt;/P&gt;&lt;P&gt;full points for u though &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767620#M906525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: table type in oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767621#M906526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome and thank you Sameer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 17:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type-in-oops/m-p/3767621#M906526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T17:58:48Z</dc:date>
    </item>
  </channel>
</rss>

