<?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 Declare Types using a custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482372#M1061230</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;I am creating a new structure in my program in ABAP Editor. The fields of this table will be all the fields in a custom table plus an additional field which is not a part of this table. The table has some 150 fields so I need to include it in my structure. I am using it in this way but its giving error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_struct,&lt;/P&gt;&lt;P&gt;             INCLUDE TYPE zcustom_table,&lt;/P&gt;&lt;P&gt;             zzfield      TYPE c,&lt;/P&gt;&lt;P&gt;             END OF t_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure is getting created but giving an error when I am creating a table of this type as:&lt;/P&gt;&lt;P&gt;DATA : i_tab  TYPE STANDARD TABLE OF t_struct WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how can get rid if this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 11:25:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T11:25:22Z</dc:date>
    <item>
      <title>Declare Types using a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482372#M1061230</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;I am creating a new structure in my program in ABAP Editor. The fields of this table will be all the fields in a custom table plus an additional field which is not a part of this table. The table has some 150 fields so I need to include it in my structure. I am using it in this way but its giving error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_struct,&lt;/P&gt;&lt;P&gt;             INCLUDE TYPE zcustom_table,&lt;/P&gt;&lt;P&gt;             zzfield      TYPE c,&lt;/P&gt;&lt;P&gt;             END OF t_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure is getting created but giving an error when I am creating a table of this type as:&lt;/P&gt;&lt;P&gt;DATA : i_tab  TYPE STANDARD TABLE OF t_struct WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how can get rid if this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482372#M1061230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Declare Types using a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482373#M1061231</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;you have to code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF t_struct.
INCLUDE STRUCTURE zcustom_table.
TYPES : zzfield TYPE c,
END OF t_struct.

work area:
DATA : gw_struct TYPE t_struct.

internal table:
DATA : gt_struct TYPE STANDARD TABLE of t_struct.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482373#M1061231</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-12T11:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Declare Types using a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482374#M1061232</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 syntax you declared is wrong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below code , it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: BEGIN OF t_struct.
INCLUDE TYPE zcustom_table.
types : zzfield TYPE c.
types : END OF t_struct.

DATA : i_tab TYPE STANDARD TABLE OF t_struct 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;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-types-using-a-custom-table/m-p/4482374#M1061232</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-09-12T11:30:26Z</dc:date>
    </item>
  </channel>
</rss>

