<?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: ABAP Objects : calling one method from another class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523218#M1262271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mehul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you should create an object of the IF_WORKFLOW_TASK implementing class i.e. CL_WORKFLOW_TASK. &lt;/P&gt;&lt;P&gt;then you can call the close method with this object. Isn't it? Because interface mehods are always public and will be visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 08:05:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-21T08:05:12Z</dc:date>
    <item>
      <title>ABAP Objects : calling one method from another class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523216#M1262269</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;Can you please tell me how to call method from one class or interfce to another class.The scenario is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one class CL_WORKFLOW_TASK, this class have interface IF_WORKFLOW_TASK &amp;amp; this interface have method IF_WORKFLOW_TASK~CLOSE. Now my requirement is ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another class CL_WORKFLOW_CHAIN ,this class have interface IF_WORKFLOW_CHAIN &amp;amp; this interface have method IF_WORKFLOW_CHAIN&lt;SUB&gt;CLOSE_ALL_PREDECESSORS. Now i have to write my code in this method but i have to use IF_WORKFLOW_TASK&lt;/SUB&gt;CLOSE method for closing the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me the code for the above .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please waiting for reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 06:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523216#M1262269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T06:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects : calling one method from another class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523217#M1262270</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;You can use the concept of INHERITANCE  in this scenario.By using this concept, you can call all the public and protected  methods of class CL_WORKFLOW_TASK  in the required calss CL_WORKFLOW_CHAIN as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the  Introdctory(INHERITANCE) programming from this SAPHELP link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/1d/df5f57127111d3b9390000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/1d/df5f57127111d3b9390000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope, it will help in you inresolving your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;Prasad GVK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 07:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523217#M1262270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects : calling one method from another class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523218#M1262271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mehul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you should create an object of the IF_WORKFLOW_TASK implementing class i.e. CL_WORKFLOW_TASK. &lt;/P&gt;&lt;P&gt;then you can call the close method with this object. Isn't it? Because interface mehods are always public and will be visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-calling-one-method-from-another-class/m-p/5523218#M1262271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:05:12Z</dc:date>
    </item>
  </channel>
</rss>

