Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

query regarding BAPI'S ?

Former Member
0 Likes
343

Hello everyone,

could any one tell me on what basis a particular BAPI fn. module is used ?

although we have n no. of fn. modules for the same functionality, we use BAPI_CREATE_FROMDAT2 ?

on what basis , we need to select a fn. module.

will be rewarded.

thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
316

Hi

If u want to update a particular transaction which contain multiple table then we will go for bapiu2019s. Updating the transaction will affect more than one table, at that time we use bapi's to refflect all the tables.

In case if BDC won't work for a particular transaction, we should use bapi's.

BAPIs can be used for the following types of integration:

1. Connecting SAP Systems to the Internet using the SAP Business Connector or Internet Application Components (IACs)

2. The standard SAP interfaces and all BAPIs are published centrally in the XML-based Interface Repository (IFR). They are stored as XML schema, which means that they are directly available for use in integration scenarios where multiple components communicate with one another using the Internet. You can access the Interface Repository in the Internet using the following address: http://ifr.sap.com.

3. Creating true component software, by enabling standardized communication between SAP components. The aim is to encapsulate the functions of the SAP system in independent business components that are integrated through a common interface (the BAPIs).

4. Connections to third-party software and legacy systems

5. Implementing distributed scenarios with asynchronous connections using Application Link Enabling (ALE)

6. Using PC programs as frontends to SAP Systems.

Regards,

Sowmya

Edited by: Sowmya Sahadevan on Jul 7, 2008 10:27 AM

Read only

vinod_vemuru2
Active Contributor
0 Likes
316

Hi,

Basically BAPI is replacement for BDC. How to select a BAPI is...

eg: If u want to create sales orders by uploading data from flat file, tradionally we will code BDC for VA01 transaction. As BDC is obsolete we will use BAPIs where ever we can use them. In the above example we can use any of below BAPIs.

BAPI_SALESDOCU_CREATEFROMDATA

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

BAPI_SALESORDER_CREATEFROMDATA

How to select one is based on parameters available in the

BAPI interface(TABLES,IMPORTINg and EXPORTING).

We have to look at our requirement i.e what are all the things we can pass and what we are expecting back. If both exist in one BAPI then we can use it.

How to search???

SE37=> Give BAPI_salesorder*=>F4.

Similarly based on application give the search string. If not able to find SDN is always there to help us out:-)

Another thing BAPI is always RFC enabled so u call from another system also.(SAP/NonSAP).

Hope it is clear.

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Jul 7, 2008 2:03 PM