<?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: how to call BOR object-&amp;gt; method in custom program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588275#M863984</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;Please note that the business object model is only a &lt;EM&gt;semantic&lt;/EM&gt; model and has absolutely nothing in common with ABAP-OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you call transaction &lt;STRONG&gt;SWO1&lt;/STRONG&gt; with BOR object INSTLN on ECC 6.0 there is a single "method" implemented:&lt;/P&gt;&lt;P&gt;- UtilInstallation.ChangeFacts =&amp;gt; implemented by BAPI_UTILINSTALLATION_CHANFACT&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Mar 2008 17:17:05 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2008-03-29T17:17:05Z</dc:date>
    <item>
      <title>how to call BOR object-&gt; method in custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588274#M863983</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;&lt;/P&gt;&lt;P&gt;I have the following details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOR object : INSTLN&lt;/P&gt;&lt;P&gt;Method: createdirect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call the above method in my custom program.&lt;/P&gt;&lt;P&gt;I need to call it entirely. Means if it contains fn modules I dont want to call those fn modules seperately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 10:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588274#M863983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to call BOR object-&gt; method in custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588275#M863984</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;Please note that the business object model is only a &lt;EM&gt;semantic&lt;/EM&gt; model and has absolutely nothing in common with ABAP-OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you call transaction &lt;STRONG&gt;SWO1&lt;/STRONG&gt; with BOR object INSTLN on ECC 6.0 there is a single "method" implemented:&lt;/P&gt;&lt;P&gt;- UtilInstallation.ChangeFacts =&amp;gt; implemented by BAPI_UTILINSTALLATION_CHANFACT&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 17:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588275#M863984</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-03-29T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to call BOR object-&gt; method in custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588276#M863985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sammy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil Soady from SAP Australia provided me with this little gem a few years back. The actual documentation for this can be found somewhere in the workflow programming area, but I just looked and couldn't find it for you. Anyway, this is a sample program I built to show how to do this. In this example I call the Display method of the Sales Document BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INCLUDE &amp;lt;cntn02&amp;gt;.
INCLUDE &amp;lt;cntn03&amp;gt;.

FUNCTION zcallbomethod.
*"----------------------------------------------------------------------

*"*"Local interface:

*"----------------------------------------------------------------------

* Data declaration
***************************************************
  DATA: vbak_ref TYPE swc_object.

* Declare and initialise container
***************************************************
  swc_container container.
  swc_create_container container.

* Create object reference to sales document
*************************************************
  swc_create_object vbak_ref 'VBAK' '0000000009'. "Sales Document Number

* Call Display
***************************************************
  swc_call_method vbak_ref 'Display' container.

* Error handling

  IF sy-subrc NE 0.

    .....

  ENDIF.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 22:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-bor-object-gt-method-in-custom-program/m-p/3588276#M863985</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-03-29T22:16:14Z</dc:date>
    </item>
  </channel>
</rss>

