<?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: Custom OO Class Error in Class-data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587419#M264747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kenneth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to define your own types (including itab's) you have to use the TYPES section of the class (push button "TYPES").&lt;/P&gt;&lt;P&gt;These types are, of course, private. Thus, you cannot use your private types with public class attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to define a table type having line structure ZBILOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 20:13:16 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2006-09-13T20:13:16Z</dc:date>
    <item>
      <title>Custom OO Class Error in Class-data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587418#M264746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a class I defined with some public class attributes.  I have an internal table defined.  When I go to test the class I get an error &lt;/P&gt;&lt;P&gt;"Syntax Error in test"&lt;/P&gt;&lt;P&gt;"Display Generated test environment?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I say yes it presents an ABAP program &lt;/P&gt;&lt;P&gt;"%_JJ_TESTFRAME_CLASS" that syntax checks with some error on code that is using my table name.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Class activates fine and as soon as I take out the reference to the table I can test again with no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know why an internal table defined in a public class would cause such an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type of "OBJECT-FAILED_STEPS" cannot be converted to the type of		&lt;/P&gt;&lt;P&gt;"ZCLDW_ALERTS2=&amp;gt;FAILED_STEPS".		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS ZCLDW_ALERTS2 DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

*"* public components of class ZCLDW_ALERTS2
*"* do not include other source files here!!!
  PUBLIC SECTION.

    CLASS-DATA STARTING_TIMESTAMP TYPE RSTIMESTMPL .
    CLASS-DATA FAILED_STEPS       TYPE STANDARD TABLE OF ZBILOG .

    CLASS-METHODS GET_LAST_TIME_STAMP
      IMPORTING
        VALUE(BEG_DATE) TYPE SYDATUM
        VALUE(BEG_TIME) TYPE SYUZEIT
      EXPORTING
        !STARTING_TIMESTAMP TYPE RSTIMESTMPL .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587418#M264746</guid>
      <dc:creator>sap_cohort</dc:creator>
      <dc:date>2006-09-13T20:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom OO Class Error in Class-data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587419#M264747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kenneth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to define your own types (including itab's) you have to use the TYPES section of the class (push button "TYPES").&lt;/P&gt;&lt;P&gt;These types are, of course, private. Thus, you cannot use your private types with public class attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to define a table type having line structure ZBILOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587419#M264747</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-13T20:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom OO Class Error in Class-data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587420#M264748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I would recommend to define a table type having line&lt;/P&gt;&lt;P&gt;&amp;gt; structure ZBILOG.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards&lt;/P&gt;&lt;P&gt;&amp;gt;    Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just wrong!  But it works... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 20:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-oo-class-error-in-class-data/m-p/1587420#M264748</guid>
      <dc:creator>sap_cohort</dc:creator>
      <dc:date>2006-09-13T20:31:01Z</dc:date>
    </item>
  </channel>
</rss>

