<?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: Define structure with table type fields using keyword &amp;quot;TYPES&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770132#M645435</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;    TYPES:&lt;BR /&gt;      BEGIN OF ty_equipments  .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      type             TYPE string&lt;BR /&gt;      .&lt;BR /&gt;    TYPES: END OF ty_equipments .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      tt_equipments   TYPE STANDARD TABLE OF ty_equipments WITH DEFAULT KEY.&lt;BR /&gt;    TYPES:&lt;BR /&gt;      BEGIN OF data1  .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      id             TYPE string,&lt;BR /&gt;      status         TYPE string,&lt;BR /&gt;      reject_reason  TYPE string,&lt;BR /&gt;      mileage        TYPE string,&lt;BR /&gt;      suggested_mode TYPE string,&lt;BR /&gt;      equipments     TYPE tt_equipments&lt;BR /&gt;      .&lt;BR /&gt;    TYPES: END OF data1 .&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Jul 2022 11:30:07 GMT</pubDate>
    <dc:creator>suresh_muthusamy</dc:creator>
    <dc:date>2022-07-16T11:30:07Z</dc:date>
    <item>
      <title>Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770123#M645426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using keyword "TYPES", I want to define a structure in which there is a field must be table type. It seems not allowed. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES tt_items TYPE TABLE OF sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES: BEGIN OF str,&lt;/P&gt;&lt;P&gt;      field1 TYPE i,&lt;/P&gt;&lt;P&gt;      field_tabl TYPE tt_items.&lt;/P&gt;&lt;P&gt;    TYPES:  END OF str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I got a syntax error:&lt;/P&gt;&lt;P&gt;"TT_ITEMS" is a generic type. Use of this type is only possible for	typing field symbols and formal parameters. -	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do if I want to have a table type field in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 02:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770123#M645426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T02:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770124#M645427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you have to do it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: tt_items TYPE sflight OCCURS 0.

TYPES: BEGIN OF str,
       field1 TYPE i,
       field_tabl TYPE  tt_items,
       END OF str.

&lt;/CODE&gt;&lt;/PRE&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, 30 Aug 2007 03:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770124#M645427</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-30T03:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770125#M645428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ty_ekko.
INCLUDE  TYPE ekko.
TYPES : chk(1) TYPE c.
TYPES : END OF ty_ekko.

DATA : it_ekko TYPE STANDARD TABLE OF ty_ekko,
       is_ekko TYPE ty_ekko.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 03:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770125#M645428</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-08-30T03:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770126#M645429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heilman, thanks. But I have to put my types in a class, and "OCCURS" is not allowed in OO context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 03:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770126#M645429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T03:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770127#M645430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi, I don't understand. How did you define type "ekko"? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 03:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770127#M645430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T03:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770128#M645431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;include type EKKO includes the whole strucutre of EKKO.&lt;/P&gt;&lt;P&gt;if you see the structure in debug mode, it_ekko contains the fields of EKKO as well as the field CHK of type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you can do this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF str.
INCLUDE TYPE sflight.  " includes whole structure of SFLIGHT
TYPES : field1 TYPE i. " include the field1 of type I
TYPES: END OF str.

DATA : it_str TYPE TABLE OF str, " internal table
       is_str TYPE str.          " work area
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 03:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770128#M645431</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-08-30T03:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770129#M645432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this very much..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES tt_items TYPE TABLE OF sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF str,&lt;/P&gt;&lt;P&gt;   field1 TYPE i,&lt;/P&gt;&lt;P&gt;   field_tabl TYPE LINE OF tt_items.  "Component with a structurebased on table type&lt;/P&gt;&lt;P&gt;TYPES: END OF str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 07:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770129#M645432</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-30T07:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770130#M645433</link>
      <description>&lt;P&gt;OO how？class&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 05:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770130#M645433</guid>
      <dc:creator>janewar</dc:creator>
      <dc:date>2020-11-03T05:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770131#M645434</link>
      <description>&lt;P&gt;Hi Heilman, thanks. But I have to put my types in a class, and "OCCURS" is not allowed in OO context.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 05:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770131#M645434</guid>
      <dc:creator>janewar</dc:creator>
      <dc:date>2020-11-03T05:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770132#M645435</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;    TYPES:&lt;BR /&gt;      BEGIN OF ty_equipments  .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      type             TYPE string&lt;BR /&gt;      .&lt;BR /&gt;    TYPES: END OF ty_equipments .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      tt_equipments   TYPE STANDARD TABLE OF ty_equipments WITH DEFAULT KEY.&lt;BR /&gt;    TYPES:&lt;BR /&gt;      BEGIN OF data1  .&lt;BR /&gt;    TYPES:&lt;BR /&gt;      id             TYPE string,&lt;BR /&gt;      status         TYPE string,&lt;BR /&gt;      reject_reason  TYPE string,&lt;BR /&gt;      mileage        TYPE string,&lt;BR /&gt;      suggested_mode TYPE string,&lt;BR /&gt;      equipments     TYPE tt_equipments&lt;BR /&gt;      .&lt;BR /&gt;    TYPES: END OF data1 .&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jul 2022 11:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770132#M645435</guid>
      <dc:creator>suresh_muthusamy</dc:creator>
      <dc:date>2022-07-16T11:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define structure with table type fields using keyword "TYPES"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770133#M645436</link>
      <description>&lt;P&gt;You have to use with DEFAULT Key when you declare a type of internal table.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 11:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-structure-with-table-type-fields-using-keyword-quot-types-quot/m-p/2770133#M645436</guid>
      <dc:creator>suresh_muthusamy</dc:creator>
      <dc:date>2022-07-16T11:30:41Z</dc:date>
    </item>
  </channel>
</rss>

