<?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: Global Object Attribute local type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332383#M1729430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I have attempted your described steps, however I recieve an error that ty_escal is not known.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached screenshots&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2013 14:20:24 GMT</pubDate>
    <dc:creator>FelixOrtiz</dc:creator>
    <dc:date>2013-03-22T14:20:24Z</dc:date>
    <item>
      <title>Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332379#M1729426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a local type in the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loc. Definitions/Implementations&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;types&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_escal&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urg&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; high&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; med&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;n&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_escal&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Now I want to create a private attribute of the class using this type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;I also would like to define a table type and create an private table of the same type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;What am I missing?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 21:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332379#M1729426</guid>
      <dc:creator>FelixOrtiz</dc:creator>
      <dc:date>2013-03-21T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332380#M1729427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felix,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the bewlo link.It will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm" title="http://help.sap.com/saphelp_40b/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm"&gt;http://help.sap.com/saphelp_40b/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLASS C_COUNTER DEFINITION.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PUBLIC SECTION.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHODS: SET_COUNTER IMPORTING VALUE(SET_VALUE) TYPE I,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCREMENT_COUNTER,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GET_COUNTER EXPORTING VALUE(GET_VALUE) TYPE I.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PRIVATE SECTION.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA COUNT TYPE I.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDCLASS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tarak&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message - How is your response relevant to the OP's query?&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 06:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332380#M1729427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-22T06:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332381#M1729428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Felix,&lt;/P&gt;&lt;P&gt;Please check the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLASS LCL_MONTH &lt;SPAN class="L0S52"&gt;DEFINITION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;PRIVATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SECTION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;TY_VBRK&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBELN &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VBELN_VF&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FKDAT &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;FKDAT&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BELNR &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BELNR_D&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KUNAG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;KUNAG&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSNR &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;POSNR_VF&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FKIMG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;FKIMG&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VRKME &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VRKME&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATNR &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;MATNR&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;TY_VBRK&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;IT_VBRK &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;TY_VBRK&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WA_VBRK &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;TY_VBRK&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;ENDCLASS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"LCL_MONTH DEFINITION&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 06:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332381#M1729428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-22T06:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332382#M1729429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have defined the type TY_ESCAL in the one the section of the class, not within the method. Types defined within the method implementation can only be used within the method itself, not an attribute to the calss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working with Global class in Class Editor SE24, Navigate to Attributes tab. Here you can simply use a name for your desired variable and use TY_ESCAL as the Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Internal table attribute, you should create a table type from your Type. So, in the same section where you have TY_ESCAL defined, define another type. Use this type to declare you ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: TT_ESCAL TYPE STANDARD TABLE OF TY_ESCAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 13:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332382#M1729429</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-03-22T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332383#M1729430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I have attempted your described steps, however I recieve an error that ty_escal is not known.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached screenshots&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332383#M1729430</guid>
      <dc:creator>FelixOrtiz</dc:creator>
      <dc:date>2013-03-22T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332384#M1729431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have defined your TYPE in wrong section. It should be defined in Type Tab rather than "Loc. Definitions/Implementations" section. If you open your class in SE24, you would find a tab called, Types. You need to create your type in this tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also directly create the TYPE by, menu Go To &amp;gt; Section &amp;gt; Private Section in SE24. Cut and paste your Type from section "Loc. Definitions/Implementations" to this Private Section. After that you should be able to use it for declaring an attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loc. Definitions/Implementations should be used for Local helper classes within the Global Class itself. They are hidden even from the Inheritance tree as well. You can read one of my article &lt;A href="http://zevolving.com/2012/01/when-to-use-local-class-and-when-not-to/" title="http://zevolving.com/2012/01/when-to-use-local-class-and-when-not-to/"&gt;When to use Local Class and when not to! | ABAP Help Blog&lt;/A&gt; on when to really use Local Helper class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332384#M1729431</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-03-22T14:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Global Object Attribute local type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332385#M1729432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, you are exactly correct.&amp;nbsp; I moved my types definition to the private section of the class in the source code based editor (7.02), just above my data statements for defining private attributes. Worked perfectly!&amp;nbsp; I was experimenting with exactly that when your post confirmed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-object-attribute-local-type/m-p/9332385#M1729432</guid>
      <dc:creator>FelixOrtiz</dc:creator>
      <dc:date>2013-03-22T14:50:22Z</dc:date>
    </item>
  </channel>
</rss>

