<?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 BAPI &amp; ABAP Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-abap-objects/m-p/3096052#M734476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to call BAPIs via classes/methods in abap objects or is it still common to use them as function modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already searched in online help and found only this &amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/de/dd/5009660aa411d2ad1b080009b0fb56/content.htm"&amp;gt;old example&amp;lt;/a&amp;gt; (unchanged since 4.6), is it still up to date?&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;alfons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 11:39:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T11:39:47Z</dc:date>
    <item>
      <title>BAPI &amp; ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-abap-objects/m-p/3096052#M734476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to call BAPIs via classes/methods in abap objects or is it still common to use them as function modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already searched in online help and found only this &amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/de/dd/5009660aa411d2ad1b080009b0fb56/content.htm"&amp;gt;old example&amp;lt;/a&amp;gt; (unchanged since 4.6), is it still up to date?&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;alfons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 11:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-abap-objects/m-p/3096052#M734476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T11:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI &amp; ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-abap-objects/m-p/3096053#M734477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just call them as function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use this technique for calling the method of a business object described at &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4acef453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4acef453d11d189430000e829fbbd/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 Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 19:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-abap-objects/m-p/3096053#M734477</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-11-28T19:35:12Z</dc:date>
    </item>
  </channel>
</rss>

