Application Development 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: 

difference About bapi transaction mode

former_member294729
Participant
0 Kudos
161

Hi everyone,

Reference by sap online help,

1)there are two kinds of bapis:synchronous and asynchronous;

2)there are two kinds of bapi transaction model,one is with commit,another is without commit,

who can tell me what concrete difference ?

ths

Best regrads

1 REPLY 1

FredericGirod
Active Contributor
0 Kudos
78

Hi,

synchronous : you will have the action directly.

Asynchronous : the action will be done in background.

with commit : when the BAPI return 0, all the change are made.

without commit : you need to run a BAPI_TRANSACTION_COMMIT after the BAPI to save the change.

there is also: BAPI online, that launch the BAPI like a transaction.

better the sap documentation :

http://help.sap.com/saphelp_erp2005/helpdata/en/08/bef2dddb5311d1ad10080009b0fb56/frameset.htm

"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.

"

Rgd

Frédéric

Message was edited by: Frédéric Girod