<?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 how to handle an error while using classes. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381829#M1042412</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;           when i tried to copy the code from function module into report and execute it, it is giving some error message as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: components of classes declared using u201CCLASSLCL_TREE_EVENT_HANDLER&lt;/P&gt;&lt;P&gt;DEFINITION DEFERREDu201D can only be accessed after you have defined the class&lt;/P&gt;&lt;P&gt;(CLASS LCL_TREE_EVENT_HANDLER DEFINITION)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i included the declarations include and forms include which are standards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i copied the function module 'HR_CH_PERS_FILE'  to get the employee infotype details in tree structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2008 07:44:34 GMT</pubDate>
    <dc:creator>giridhar_padaraju</dc:creator>
    <dc:date>2008-09-02T07:44:34Z</dc:date>
    <item>
      <title>how to handle an error while using classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381829#M1042412</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;           when i tried to copy the code from function module into report and execute it, it is giving some error message as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: components of classes declared using u201CCLASSLCL_TREE_EVENT_HANDLER&lt;/P&gt;&lt;P&gt;DEFINITION DEFERREDu201D can only be accessed after you have defined the class&lt;/P&gt;&lt;P&gt;(CLASS LCL_TREE_EVENT_HANDLER DEFINITION)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i included the declarations include and forms include which are standards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i copied the function module 'HR_CH_PERS_FILE'  to get the employee infotype details in tree structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 07:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381829#M1042412</guid>
      <dc:creator>giridhar_padaraju</dc:creator>
      <dc:date>2008-09-02T07:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle an error while using classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381830#M1042413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You must put the INCLUDE that contains the class object instantiation code (CREATE OBJECT) after the INCLUDE which contains the CLASS DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is coming due to the fact the your program is trying to create an instance of the class whose definition is not found at the time of the instantiation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is &lt;/P&gt;&lt;P&gt;Before you write &lt;/P&gt;&lt;P&gt;DATA obj TYPE REF TO cl_XXXxx.&lt;/P&gt;&lt;P&gt;CREATE OBJECT obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_XXXxx DEFINITION.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 07:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381830#M1042413</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2008-09-02T07:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to handle an error while using classes.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381831#M1042414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 08:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-handle-an-error-while-using-classes/m-p/4381831#M1042414</guid>
      <dc:creator>giridhar_padaraju</dc:creator>
      <dc:date>2008-09-19T08:25:45Z</dc:date>
    </item>
  </channel>
</rss>

