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

Synchronous and Asynchronous BAPI

Former Member
0 Likes
3,253

Hi All,

Like BDC do we have any options to update the database using BAPI synchronously or asynchronously? In BAPI which approach do we go for and is there a way that we can specify these update modes in BAPI like call transaction.

Please help.

Regards,

MD.

3 REPLIES 3
Read only

former_member761936
Active Participant
0 Likes
1,493

Hi,

Please read the following para.

BAPI is both synchronous and Asynchronous.

Support of synchronous and asynchronous communication

BAPIs can be used for both the synchronous and for the asynchronous call to an SAP component. If the call is synchronous, the BAPI is called as a remote function call (RFC). For details about how to use the BAPI with the RFC, see the BAPI User Guide in the SAP Library under CA-BFA.

ALE inbound processing is used to enable asynchronous communication with BAPIs. When the BAPI is called in the sender system, an IDoc is generated and dispatched to the receiver system. When the IDoc reaches the receiver, the parameters of the corresponding BAPI are automatically filled with the IDoc data, and the BAPI is called synchronously. For details on the asynchronous use of BAPIs, please refer to Using ALE Services.

FOr more details on BAPI please go throug this link

help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

Read only

Former Member
0 Likes
1,493

Hi

Synchronous BAPIs

Synchronous BAPIs are generally used to read data from a remote logical system, for example to display a customer list.

Before calling the BAPI, it is therefore necessary to determine the RFC destination of the remote system or the BAPI server. The application developer has access to an API for determining the RFC destination of the BAPI.

Asynchronous BAPIs

Asynchronous BAPIs are generally used for replicating data on one or more logical systems, for example to distribute article master data.

To implement an asynchronous data transfer with a BAPI, an ALE IDoc interface must be generated. This interface controls all of the data communication between logical systems using IDoc technology. The application then calls the generated ALE IDoc interface locally instead of the BAPIs.

As with synchronous BAPIs, the corresponding logical systems of the BAPI must be determined before you call the ALE-IDoc interface. These are transferred to the ALE-IDoc interface as input parameters.

http://help.sap.com/saphelp_nw04/helpdata/en/5a/ccb4cb808311d396b40004ac96334b/frameset.htm

With Regards

Nikunj Shah

Edited by: Nikunj Shah on Jul 14, 2008 1:26 PM

Read only

Former Member
0 Likes
1,493

Thanks for your help,

Regards,

MD