<?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: How to call a method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920189#M382357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create  Object &amp;lt;OBJ&amp;gt; TYPE REF TO &amp;lt;Class&amp;gt;&lt;/P&gt;&lt;P&gt; Use that  object name &amp;lt;OBJ&amp;gt; after call method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 11:51:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-01T11:51:43Z</dc:date>
    <item>
      <title>How to call a method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920188#M382356</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;I need to know how i can call this method: STATUS_PROFILE_CHANGE that is inside this class: CL_CGPL_STATUS_MANAGEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm inside this badi: ZCRM_MKTPL, and i want to put the method STATUS_PROFILE_CHANGE inside these method: IF_EX_CRM_MKTPL~SET_ATTRIBUTES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my basic question is how i can call methods??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing like this:&lt;/P&gt;&lt;P&gt;call method ?????????-&amp;gt;STATUS_PROFILE_CHANGE&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;im_stsma = cm_stsma&lt;/P&gt;&lt;P&gt;im_update_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know what can i put after call method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920188#M382356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920189#M382357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create  Object &amp;lt;OBJ&amp;gt; TYPE REF TO &amp;lt;Class&amp;gt;&lt;/P&gt;&lt;P&gt; Use that  object name &amp;lt;OBJ&amp;gt; after call method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920189#M382357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920190#M382358</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;lt;b&amp;gt;Calling Methods&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call a method, use the following statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD &amp;lt;meth&amp;gt; EXPORTING... &amp;lt;ii&amp;gt; =.&amp;lt;f i&amp;gt;... 
                   IMPORTING... &amp;lt;ei&amp;gt; =.&amp;lt;g i&amp;gt;... 
                   CHANGING ... &amp;lt;ci&amp;gt; =.&amp;lt;f i&amp;gt;... 
                   RECEIVING         r = h 
                   EXCEPTIONS... &amp;lt;ei&amp;gt; = rc i...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The way in which you address the method &amp;lt;method&amp;gt; depends on the method itself and from where you are calling it. Within the implementation part of a class, you can call the methods of the same class directly using their name &amp;lt;meth&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD &amp;lt;meth&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside the class, the visibility of the method depends on whether you can call it at all. Visible instance methods can be called from outside the class using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD &amp;lt;ref&amp;gt;-&amp;gt;&amp;lt;meth&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;ref&amp;gt; is a reference variable whose value points to an instance of the class. Visible instance methods can be called from outside the class using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD &amp;lt;class&amp;gt;=&amp;gt;&amp;lt;meth&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;class&amp;gt; is the name of the relevant class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920190#M382358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920191#M382359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all! Problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920191#M382359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920192#M382360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;just call like this 

CALL METHOD CL_CGPL_STATUS_MANAGEMENT=&amp;gt;STATUS_PROFILE_CHANGE
  EXPORTING
    IM_GUID  =
    IM_STSMA =
*  EXCEPTIONS
*    FAILED   = 1
*    others   = 2
        .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method/m-p/1920192#M382360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:58:29Z</dc:date>
    </item>
  </channel>
</rss>

