BAPI stands for BUSINESS APPLICATION PROGRAMMING INTERFACE
It is also called as B+API
BUSINESS OBJECT REPOSITARY (BOR) :
It is a Repository of Business objects or container of Business objects.
SWO1 is the tcode for Business objects
BUSINESS OBJECT(BO) :
It is an object which is similar to class, which is group of attributes methods, interfaces, key fields, events for a particular Business Application or Scenario.
SWO1 is the TCODE for Business Object Repository
Examples for Business objects are,
BUS1001 – Materials
BUS2012 – Purchase Order
Overview
BUS1001
Methods are :
BAPI_Material _Get detail
BAPI_Material_GETLIST
BUS2012
Methods are :
BAPI_PO_GETDETAIL
BAPI_PO_GETITEMS
BAPI:
It is also an Remote Enable function module which is used to communicate between SAP-SAP or SAP-NONSAP servers.
Basically BAPI uses RFC Technology
In the Initial stage it is a RFC Function module
Later, this RFC Function module will be inserted into a business object, Now it is converted into BAPI.
Differences between RFC & BAPI
Both are used to communicate between SAP-SAP & NONSAP-SAP.
Both are remote enabled FM
The difference is,
RFC’s are called as Standalone Function Modules.
BAPI’s are part of Business Objects which are used to communicate with other BAPI’s, events, Interfaces, attributes, Key fields etc., with in a single B.O.
This is not possible with RFC’s, because they are standalone FM’S
Overview
USAGE OF BAPI’S
BAPI’S are used in 3 scenarios.
1)Report generation using BAPI’S
2)Using standard or custom BAPI to communicate between SAP & NONSAP
3)Using BAPI’s for uploading data into SAP instead of BDC.
RULES FOR BAPI’S
Every BAPI should start with BAPI or ZBAPI.
All the Importing and Exporting parameters should be of Type structures, not the direct Data Types.
All the structures must start with BAPI or ZBAPI.
All the Parameters must be pass by Value because BAPI’S doesn’t support pass by reference.
Every BAPI should have a returning Parameter by Name RETURN or BAPIRET2, to display success or error messages.
If BAPI is a Success, we have to use another BAPI BAPI_TRANSACTION_COMMIT to Save the Data into Database Tables.
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
ConversionConversion EmoticonEmoticon