<?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 methods from the Business Object BUS2032 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728813#M633338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marvin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at &amp;lt;b&amp;gt;BUS2012 &amp;lt;/b&amp;gt;(&amp;lt;i&amp;gt;Purchase order&amp;lt;/i&amp;gt;) its methods are implemented by BAPI_PO_... BAPIs.&lt;/P&gt;&lt;P&gt;The corresponding classes (available &amp;gt;= 6.20) are &amp;lt;b&amp;gt;CL_PO_HEADER_HANDLE_MM&amp;lt;/b&amp;gt; (Header) and &amp;lt;b&amp;gt;CL_PO_ITEM_HANDLE_MM&amp;lt;/b&amp;gt; (Item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2007 18:57:18 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-09-13T18:57:18Z</dc:date>
    <item>
      <title>Calling methods from the Business Object BUS2032</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728811#M633336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is it possible to call methods from the Business Object BUS2032.&lt;/P&gt;&lt;P&gt;If so, how can it be done?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 17:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728811#M633336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling methods from the Business Object BUS2032</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728812#M633337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marvin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Methods" of business objects are no class methods in technical terms. They are just  semantic definitions.&lt;/P&gt;&lt;P&gt;If you call transaction SWO1 and display your business "object" (which is no object in the OO-sense) BUS2032 then you see "method" &amp;lt;b&amp;gt;SalesOrder.ChangeFromData&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Double-click on the method name and switch to the tabstrip &amp;lt;b&amp;gt;ABAP&amp;lt;/b&amp;gt;. There you see that this "method" is implemented by the BAPI&amp;lt;b&amp;gt; BAPI_SALESORDER_CHANGE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 18:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728812#M633337</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-09-13T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling methods from the Business Object BUS2032</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728813#M633338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marvin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at &amp;lt;b&amp;gt;BUS2012 &amp;lt;/b&amp;gt;(&amp;lt;i&amp;gt;Purchase order&amp;lt;/i&amp;gt;) its methods are implemented by BAPI_PO_... BAPIs.&lt;/P&gt;&lt;P&gt;The corresponding classes (available &amp;gt;= 6.20) are &amp;lt;b&amp;gt;CL_PO_HEADER_HANDLE_MM&amp;lt;/b&amp;gt; (Header) and &amp;lt;b&amp;gt;CL_PO_ITEM_HANDLE_MM&amp;lt;/b&amp;gt; (Item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 18:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728813#M633338</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-09-13T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling methods from the Business Object BUS2032</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728814#M633339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you sure can. Here is an extract from the SAP Help. I found it at &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/c5/e4ad71453d11d189430000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Programmed Method Call&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call (fictitious) method Print of object type VBAK (sales document). The method receives the parameters Paperformat and Printertype as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Call method Print of object type VBAK
***************************************************

* Data declarations
***************************************************
DATA: VBAK_REF TYPE SWC_OBJECT.
SWC_CONTAINER CONTAINER.
* Create object reference to sales document
*************************************************
SWC_CREATE_OBJECT VBAK_REF 'VBAK' &amp;lt;KeySalesDoc&amp;gt;
* Fill input parameters
***************************************************
SWC_CREATE_CONTAINER CONTAINER.
SWC_SET_ELEMENT CONTAINER 'Paperformat' 'A4'.
SWC_SET_ELEMENT CONTAINER 'Printertype' 'Lineprinter'.

* Call Print method
***************************************************
SWC_CALL_METHOD VBAK_REF 'Print' CONTAINER.
* Error handling
IF SY-SUBRC NE 0.
   ..... 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 23:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728814#M633339</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-09-13T23:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling methods from the Business Object BUS2032</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728815#M633340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there --this is of course technically correct -- however I would where possible try and avoid the use of BO's. If you can find (or create) a genuine class then you can  then use "proper" OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept of a BO was to allow for some limited type of "pseudo object" coding before ABAP supported a relatively powerful and full OO set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 12:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-methods-from-the-business-object-bus2032/m-p/2728815#M633340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T12:55:18Z</dc:date>
    </item>
  </channel>
</rss>

