<?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: Not able to call a method from a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032059#M963647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks. i missed the constructor paramters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 11:26:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T11:26:38Z</dc:date>
    <item>
      <title>Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032050#M963638</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 want to use a method which is part of global calss in my custom program. But I am not able to create object to use the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class Name : CL_SA_TAB_PROJECTDOCU&lt;/P&gt;&lt;P&gt;Method        : UPDATE_NEW_DOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one explain me how to call it from custom program and what are the constrains to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advacne.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;avis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032050#M963638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T03:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032051#M963639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be class or method is abstract. and you should implement that class&lt;/P&gt;&lt;P&gt;or it's method.&lt;/P&gt;&lt;P&gt;another reason is method you want call defined as private or protected method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032051#M963639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T03:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032052#M963640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create an object of the class and then try to call the method..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032052#M963640</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-17T03:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032053#M963641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The class is public and method is instantiated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032053#M963641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T03:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032054#M963642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i am declaring for create object, i am getting the error as obligatory parameter "TAB_VIS_REF" had no value assigned to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032054#M963642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T03:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032055#M963643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you instantiate object? if not, write following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data o type ref to  CL_SA_TAB_PROJECTDOCU.
create object o.
call method o-&amp;gt;UPDATE_NEW_DOC
"importing 
".......
"exporting
"............
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if that method is static method you can call it without instantiating object of class:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call method CL_SA_TAB_PROJECTDOCU-&amp;gt;UPDATE_NEW_DOC
"importing 
".......
"exporting
"............
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 03:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032055#M963643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T03:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032056#M963644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fill that parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 04:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032056#M963644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T04:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032057#M963645</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;Please check if the class CL_SA_TAB_PROJECTDOCU has a method called "constructor" or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then there is a possibility that the constructor may have some parameters that needs to be passed. &lt;/P&gt;&lt;P&gt;Just for your info:&lt;/P&gt;&lt;P&gt;Constructor is a method that is called by default while creating the object of the class. If this method has a parameter then that needs to be passed when you create the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no, &lt;/P&gt;&lt;P&gt;then as already mentioned, you have to check if the method has some obligatory parameter that needs to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But looking at you update it seems you are getting an error while creating the object. So I guess it is related to the constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032057#M963645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T06:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032058#M963646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dude its simple...&lt;/P&gt;&lt;P&gt;the way you are creating object of the class in not correct.&lt;/P&gt;&lt;P&gt;the constructor of the class is expecting some parameter and you have not passed it. Pass all the obligatory parameters and job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference  read the article &lt;STRONG&gt;Constructors&lt;/STRONG&gt; in chapter &lt;STRONG&gt;Object Oriented ABAP&lt;/STRONG&gt; on the site  &lt;/P&gt;&lt;P&gt;[www.abaplearning.com|www.abaplearning.com]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;direct link: &lt;A href="http://www.abaplearning.com/index.php?option=com_content&amp;amp;view=section&amp;amp;id=1&amp;amp;Itemid=5" target="test_blank"&gt;http://www.abaplearning.com/index.php?option=com_content&amp;amp;view=section&amp;amp;id=1&amp;amp;Itemid=5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to log in on the site to see the examples and tutorials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Keep Learning &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032058#M963646</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2008-06-17T06:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to call a method from a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032059#M963647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks. i missed the constructor paramters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-call-a-method-from-a-program/m-p/4032059#M963647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:26:38Z</dc:date>
    </item>
  </channel>
</rss>

