<?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 Types in Class Builder in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908535#M56588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Internal table type.

TYPES: ty_t_my_type type standard table of mara.

* Structure type.

TYPES: begin of ty_my_struc,
         field1(4) type c,
         field2    type i,
       end of ty_my_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_my_table type ty_t_my_table,
      wa_my_struc type ty_my_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 May 2005 02:58:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-15T02:58:19Z</dc:date>
    <item>
      <title>Internal Types in Class Builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908534#M56587</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;&lt;/P&gt;&lt;P&gt;In am trying to add an internal type to a standard class in &amp;lt;b&amp;gt;Class Builder&amp;lt;/b&amp;gt;. I have created a type with Ctrl + F5, But am not sure what to do next. Could any one plz explain me what are all the steps involved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2005 18:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908534#M56587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-14T18:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Types in Class Builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908535#M56588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Internal table type.

TYPES: ty_t_my_type type standard table of mara.

* Structure type.

TYPES: begin of ty_my_struc,
         field1(4) type c,
         field2    type i,
       end of ty_my_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_my_table type ty_t_my_table,
      wa_my_struc type ty_my_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2005 02:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908535#M56588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-15T02:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Types in Class Builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908536#M56589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahesh,&lt;/P&gt;&lt;P&gt;I assume you try to add a new type definition. The possibilties there depend on the release of your system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In release 4.x - 6.20 you can only define types in the protected and private section. Any definition can be used within any method coding. The use of these types within member or method declaration is of course limitied to private or protected ones. You can refer to the types by their name (like to types defined in forms).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With release 6.40 or higher you can also define types in interfaces and the public section of classes. So they are part of the API of the class and can be also used outside. This can be done by following syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: test_Data type cl_My_Class=&amp;gt;ty_Char_40.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So in effect you may use an interface definition as a new kind of type-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2005 15:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908536#M56589</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2005-05-15T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Types in Class Builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908537#M56590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Direct type entry' option was disabled when I tried to create a new type for a standard SAP class. But it was enabled after Switching off Modfication assistant and I have created a direct type entry :-). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2005 16:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-types-in-class-builder/m-p/908537#M56590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-15T16:24:44Z</dc:date>
    </item>
  </channel>
</rss>

