‎2008 Jun 20 1:41 PM
HI everybody
can anybody tell me difference between lsmw using BAPI & lsmw using IDOC?
‎2008 Jun 20 1:43 PM
the main diffrence is:
BAPI is synchoruns i.e it will return the message whther success or not.
in IDOC, it is asynchronus, ie system doesn't wait for response.
revrt back if anyissues.
regards,
Naveen
‎2008 Jun 20 1:43 PM
the main diffrence is:
BAPI is synchoruns i.e it will return the message whther success or not.
in IDOC, it is asynchronus, ie system doesn't wait for response.
revrt back if anyissues.
regards,
Naveen
‎2008 Jun 20 1:44 PM
The main difference is that an Idoc procsessing function module is triggered in the case of LSMW using IDOC, and a BAPI gets triggered in case of LSMW using BAPI.
The Idoc processing function module may in turn call the BAPI only.
See the below links:
LSMW using BAPI: http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm
LSMW Using IDOC:
http://www.saptechnical.com/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
Regards,
Ravi
‎2008 Jun 20 2:00 PM
Hi,
BAPIs are synchronous while IDOCS are Async.
BAPIs are configure with ALE and message types in LSMW in order to make them Asynchronous.
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.
Hope this is clear
Thanks and regards.
‎2008 Jun 20 2:03 PM
IDocs and BAPI are very different, so it should be easy to choose between them depending on your requirements.
IDOCS
Advantages
System can work even if target system not always online. The IDoc will be created and sending will just continue once you get connected to the other system.
No additional programming required. You just need to set up the configuration.
Disadvantages
Receipt/processing on the target system may not be immediate.
The sending system has no way to know whether the target system actually received what you sent (unless you use ALE).
If there is no SAP standard IDoc available for your requirement, it's harder to create a customized IDoc than a customized BAPI.
BAPIS
Advantages
You can tell if your sending was successful or not
Sending to/processing on the other side is immediate
Easier to create your own BAPI than your own IDoc
Disadvantages
Will only work if you have an active online connection.
Some programming required to call the BAPI.
Others interface methods you might also want to consider are ALE and RFCs.