<?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 Programming with Object-&amp;gt;method(s) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326728#M167266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me, I have the Purchase Requisition number and I want to create an object for the requisition. I need to use the methods IS_ACTIVE, GET_DATA, GET_ITEMS, GET_ACTIVITY in the program rather than using SELECT from EBAN. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2006 14:15:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-27T14:15:01Z</dc:date>
    <item>
      <title>Programming with Object-&gt;method(s)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326728#M167266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me, I have the Purchase Requisition number and I want to create an object for the requisition. I need to use the methods IS_ACTIVE, GET_DATA, GET_ITEMS, GET_ACTIVITY in the program rather than using SELECT from EBAN. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326728#M167266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Programming with Object-&gt;method(s)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326729#M167267</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 idea is pretty good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a class in SE24 (ZPURCHASE_REQ), the parameter for the constructor of the class, could be your Purchase Req, you can also store this in the class attribute. This will be instantiated class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now define methods as you want - IS_ACTIVE, GET_DATA, GET_ITEMS, GET_ACTIVITY and define them with appropriate import and export parameters. The export parameters will give you the values for you. You will have to define the table types for the parameters where you are expecting tables back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, define exceptions and raise them appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you looking for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOte :Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326729#M167267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Programming with Object-&gt;method(s)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326730#M167268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Follow the follwing step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) declare object&lt;/P&gt;&lt;P&gt;  DATA  : o_object  TYPE REF TO class_name.&lt;/P&gt;&lt;P&gt;2) Create object for ur class with the key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Creating object Instance&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CREATE OBJECT o_object&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          Key       = value_of_key "... It can be any vale &lt;/P&gt;&lt;P&gt;        EXCEPTIONS &lt;/P&gt;&lt;P&gt;          OTHERS            = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use pattern button to do the same like when u call function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Call the method which u want like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD o_object-&amp;gt;method_name&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass values for the corresponding exporting, changing parameter etc.&lt;/P&gt;&lt;P&gt;Use pattern button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Call the save method of the object to save the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark Helpfull answers &amp;amp; close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326730#M167268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Programming with Object-&gt;method(s)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326731#M167269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. I was wondering if any of the SAP provided classes couldn't be used for this than having to create a z_class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purchase requisition transactions have used many classes and I don't know which of these classes would be the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have guessed, I am newbie in OO programming, and any help, suggestion is most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Sard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326731#M167269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programming with Object-&gt;method(s)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326732#M167270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some standard classes that SAP uses, but I am not sure which one of them we can use, as there is no official documentation for the same. I have seen some classes, but have not played around with the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Officially its still BAPI, which is the safer route. You can look into the BAPI transaction for the Purchase Req. object and call that inside your method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean while, if I find any classes that can be used, I will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programming-with-object-gt-method-s/m-p/1326732#M167270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:39:17Z</dc:date>
    </item>
  </channel>
</rss>

