<?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: Call an instance method inside another method of class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473795#M1743869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don 't have the class /sapsrm/if_pdo_msg_provider in my SAP system, but basically you need either to instantiate an object by creating a variable reference to the class and instantiate it by calling the create method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, the class probably has a static method get_reference_by_handler or something similar e.g. get_instance, since you are receiving back a handle (a reference) to the class instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that one to get a refernce to the instance and call the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: gr_msg_provider type ref to /sapsrm/if_pdo_msg_provider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gr_msg_provider = call mehod /sapsrm/if_pdo_msg_provider=&amp;gt;get_reference.&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;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD gr_msg_provider&lt;/SPAN&gt;-&amp;gt;DELETE_ALL_MESSAGES&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 11:04:28 GMT</pubDate>
    <dc:creator>PeterJonker</dc:creator>
    <dc:date>2013-05-16T11:04:28Z</dc:date>
    <item>
      <title>Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473793#M1743867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide me how to call an instance method inside a other class method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am already using the static method from same class. Pls refer the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;/sapsrm/cl_pdo_msg&lt;SPAN class="L0S70"&gt;=&amp;gt;/&lt;/SPAN&gt;&lt;STRONG&gt;sapsrm/if_pdo_msg_provider&lt;/STRONG&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;add_message_static&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_messages&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_messages_tend&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHANGING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; co_message_handler &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;co_message_handler&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;In the above code &lt;STRONG&gt;/sapsrm/if_pdo_msg_provider &lt;/STRONG&gt;is the class where add_message_static is a static method.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;But i want to call method DELETE_ALL_MESSAGES which is an instance method in same class /sapsrm/if_pdo_msg_provider.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Kindly guide me how to call the instance method of the class.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thank &amp;amp; Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Arun.K.P&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 10:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473793#M1743867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473794#M1743868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To call an instance method of a class you have to create an object of that class. In your case it is &lt;STRONG&gt;/sapsrm/if_pdo_msg_provider .&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 10:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473794#M1743868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T10:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473795#M1743869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don 't have the class /sapsrm/if_pdo_msg_provider in my SAP system, but basically you need either to instantiate an object by creating a variable reference to the class and instantiate it by calling the create method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, the class probably has a static method get_reference_by_handler or something similar e.g. get_instance, since you are receiving back a handle (a reference) to the class instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that one to get a refernce to the instance and call the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: gr_msg_provider type ref to /sapsrm/if_pdo_msg_provider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gr_msg_provider = call mehod /sapsrm/if_pdo_msg_provider=&amp;gt;get_reference.&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;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD gr_msg_provider&lt;/SPAN&gt;-&amp;gt;DELETE_ALL_MESSAGES&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 11:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473795#M1743869</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2013-05-16T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473796#M1743870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should first create or get an instance in order to access the instance method.&lt;/P&gt;&lt;P&gt;Do you have get_instance( ) method for the class &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so then do the following:&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lr_msg_provider TYPE REF TO &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_msg_provider = &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;=&amp;gt;get_instance( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no get_instance method, the do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA lr_msg_provider.&lt;/P&gt;&lt;P&gt;IF lr_msg_provider IS BOUND.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD lr_msg_provider-&amp;gt;delete_all_messages( ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The get instance method will create an instance if the instance in not created before, it the instance is created then it return the existing instance, so that the data can be preserved, you wont be having different set of data's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 11:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473796#M1743870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T11:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473797#M1743871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For using instance methods you must instantiate the class. Its not readily available as static methods. Do a CREATE OBJECT or TYPE REF TO and create a instance. Check the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b5f54f411d194a60000e8353423/content.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b5f54f411d194a60000e8353423/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b5f54f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473797#M1743871</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-16T12:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473798#M1743872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter and Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the responses. I tried both the solutions but i am getting same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"/SAPSRM/IF_PDO_MSG_PROVIDER=&amp;gt;GET_INSTANCE(", a field, a function or&amp;nbsp; "(" expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Arun.K.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473798#M1743872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473799#M1743873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the get_instance method if it expects any input value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473799#M1743873</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-16T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473800#M1743874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think get_instance( ) method is taking some importing parameters, check the get_instance( ) method and pass the proper values for getting the instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473800#M1743874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T12:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473801#M1743875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the pattern function to create the call to the method. Then you know which parameters you need to supply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473801#M1743875</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2013-05-16T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473802#M1743876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish and Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked that i dont have any instance_method here.. pls correct me if i am wrong and i dont have any parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Arun.K.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473802#M1743876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473803#M1743877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you should create an reference manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DATA:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; lr_msg_provider TYPE REF TO &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;CREATE DATA lr_msg_provider.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IF lr_msg_provider IS BOUND.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD lr_msg_provider-&amp;gt;delete_all_messages( ).&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any can you explain your business scenario so that we can understand you proper requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473803#M1743877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473804#M1743878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the class in SE24. I dont have system access now you must be having constructor then CREATE OBJECT should create an instance of the class. Also a quick way would be to do a where used list of the class and check its usage in system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473804#M1743878</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-16T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473805#M1743879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I done what you have suggested but i am getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only types of the form "REF TO value_type" are permitted in "CREATE&amp;nbsp; DATA".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473805#M1743879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T13:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473806#M1743880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DATA:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; lr_msg_provider TYPE REF TO &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT lr_msg_provider.&lt;/P&gt;&lt;P&gt;IF lr_msg_provider IS BOUND.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL METHOD lr_msg_provider-&amp;gt;delete_all_messages( ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont know the parameters then, use "Pattern", select ABAP Objects Pattern,&lt;/P&gt;&lt;P&gt;Provide the following information:&lt;/P&gt;&lt;P&gt;Instance: lr_msg_provider&lt;/P&gt;&lt;P&gt;Class/Interface: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Method: Constructor&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 16:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473806#M1743880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Call an instance method inside another method of class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473807#M1743881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to call the instance method using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lr_msg_provider &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;type ref to &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/sapsrm/if_pdo_msg_provider&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;CALL METHOD &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lr_msg_provider&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;DELETE_ALL_MESSAGES&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you for your guidance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Arun.K.P&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-an-instance-method-inside-another-method-of-class/m-p/9473807#M1743881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:50:52Z</dc:date>
    </item>
  </channel>
</rss>

