<?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: Error in class method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474150#M1253497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better approach wuld be to use methods instead of forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the methods should ideally be in Private Visibility (Chose the option Private for Visibility field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 13:39:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T13:39:08Z</dc:date>
    <item>
      <title>Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474149#M1253496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing one problem while preparing code in proxy class method. i need to use same code so many places in my class method for that purpose  i was trying to use perform statements but system is giving syntax error 'Forms can not be defined in a class pool For this reason, there are no perform statements for internal FORM'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With out perform statements how to handle the repetative logic in same program. Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474149#M1253496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474150#M1253497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better approach wuld be to use methods instead of forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the methods should ideally be in Private Visibility (Chose the option Private for Visibility field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474150#M1253497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474151#M1253498</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;Thanks for your reply.  Can you pl tell me how to use methods with one example. Do you mean to say we need to create methods separetly for each reusable logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474151#M1253498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474152#M1253499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Babji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create private methods for each subroutine you have at the moment in the same CLASS where you are creating the public methods. Then instead of calling the subroutines .... call the private methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474152#M1253499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474153#M1253500</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;The best way is Create a private method with the repetative code in the same class and call that method in other methods of that calss wherever you need.You call that method any no. of times from any method in that class.&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>Wed, 15 Apr 2009 13:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474153#M1253500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474154#M1253501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are talking about global classes,&lt;/P&gt;&lt;P&gt;then go to SE24 and create your class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the class go to Methods tab, give a name to your method, Define it as a static method, if you want the values to be persisted and not specific to the instances that are created based on your class.&lt;/P&gt;&lt;P&gt;Give the visibility as private, becuase you want these private methods only to be called in your class only.&lt;/P&gt;&lt;P&gt;Then click on parameters and define your exporting and importing parameters.&lt;/P&gt;&lt;P&gt;Double click on the method name and have your repetitive code there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can call this method in other methods of the class using&lt;/P&gt;&lt;P&gt;call method &amp;lt;method name&amp;gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-class-method/m-p/5474154#M1253501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T14:00:28Z</dc:date>
    </item>
  </channel>
</rss>

