<?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: Calling a method to a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510842#M1654885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;You can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:lr_object type ref to CLASS (NAME of your class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.lr_object-&amp;gt;z_vendor = vendor no.&lt;/P&gt;&lt;P&gt;2. call method lr_object-&amp;gt;method name (in Importing parameter pass the vendor bank account no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the method your vendor no and bank account will be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 20:15:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-09T20:15:21Z</dc:date>
    <item>
      <title>Calling a method to a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510841#M1654884</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;I have a requirement that I am working on, I need to create a program that will have vendor number and vendor bank account number on the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I need to do is I need to call a method from a class that will do some kind of validation, method name is  'validation'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem here is that method validation has only vendor bank account number as a parameter. Vendor number is defined as an attribute in the class, let's say z_vendor, and in the method we are using Z_vendor as a vendor number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how can I set the value of the attribute to the one that the user will enter using a FM and then how to call the method validation in to my program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not make any change the way class has been declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute z_vendor is defined as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Level - Instance Attribute&lt;/P&gt;&lt;P&gt;2. Visibility - Public &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to OOPS.. so any help will be really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510841#M1654884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a method to a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510842#M1654885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;You can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:lr_object type ref to CLASS (NAME of your class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.lr_object-&amp;gt;z_vendor = vendor no.&lt;/P&gt;&lt;P&gt;2. call method lr_object-&amp;gt;method name (in Importing parameter pass the vendor bank account no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the method your vendor no and bank account will be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 20:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510842#M1654885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a method to a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510843#M1654886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Useless...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 03:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-method-to-a-program/m-p/8510843#M1654886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T03:21:05Z</dc:date>
    </item>
  </channel>
</rss>

