<?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: Calling Instance Method in a Global Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690042#M1102435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the global class attributes in SE24.  It probably has instantiation set to "private".  Look at the methods of the class.  There's probably a method called FACTORY, or CREATE.  These are what you should use to instantiate the class - not the CREATE OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Nov 2008 14:19:56 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-11-01T14:19:56Z</dc:date>
    <item>
      <title>Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690041#M1102434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you tell me how to call a instance method created in a global class in different program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code which I have written, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_cl type ref to &amp;lt;global class&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method g_cl -&amp;gt; &amp;lt;method name&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to create Create object &amp;lt;object&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is throwing the error message " Instance class cannot be called outside...." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anybody help me.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Text deleted by moderator*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sushmitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 10:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690041#M1102434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-01T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690042#M1102435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the global class attributes in SE24.  It probably has instantiation set to "private".  Look at the methods of the class.  There's probably a method called FACTORY, or CREATE.  These are what you should use to instantiate the class - not the CREATE OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 14:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690042#M1102435</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-01T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690043#M1102436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the global class....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 15:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690043#M1102436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-01T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690044#M1102437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi susmitha,&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;data: g_cl type ref to &amp;lt;global class&amp;gt;.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt; Create object &amp;lt;object&amp;gt;.&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;call method g_cl -&amp;gt; &amp;lt;method name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still you are getting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then first check that method &lt;STRONG&gt;level&lt;/STRONG&gt; and &lt;STRONG&gt;visibility&lt;/STRONG&gt; in se24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.if  level is static you can not call it threw object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if visibility is &lt;STRONG&gt;protected or private&lt;/STRONG&gt; then you can not  call it directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still you are facing same problem please paste the in this thread so that i can help you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Punit Singh on Nov 3, 2008 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 09:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690044#M1102437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690045#M1102438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 11:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690045#M1102438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T11:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Instance Method in a Global Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690046#M1102439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar scenario in which i have to call a instance method from the class 'CL_HRECM00_BUDGET_EE_SRV', in which the instantiation is set to 'Private' but there is no such methods by name 'FACTORY' or CREATE. How shall i call a instance method in my case. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sarathy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 09:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-instance-method-in-a-global-class/m-p/4690046#M1102439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T09:55:41Z</dc:date>
    </item>
  </channel>
</rss>

