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

lsmw-bapi and normal bapi

Former Member
0 Likes
369

Hii,

I would like to know the difference in approach used between the normal bapi and the lsmw-bapi.

In the material master, i.e material save data, we can use both the approach, so why these two had been built.

What is the exact difference in them?.

Thanks,

shekar

1 REPLY 1
Read only

Former Member
0 Likes
352

Hi,

BAPIs are normally called synchronously in order to get feedback immediately.A synchronous call will only work if the system we want to access is up and running.For some purposes like data transfer, SAP wanted BAPIs to invoke asynchronously so that the calling application could proceed even if the remote system was currently unavailable.

Hence these BAPIs are linked to ALE (Application Linking and Enabling),an asynchronous message passing mechanism with guaranteed delivery.ALE uses Idocs as the containers for messages. Idocs are instances of Idocs types, which in turn are associated ALE message types.

Inorder to work with LSMW , we need BAPIs for async processing.

AP has provided a generator which takes a BAPI and generates an appropriate ALE message type and an associated Idoc type.

Thanks and regards.