You are on page 1of 7

Diff... between ALE, IDOC, RFC, BAPI,...

Rakesh Behera 166 posts since Nov 30, 2006 Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 4:46 PM

Hi All

I am learning XI and the difference between " ALE, IDOC, RFC, BAPI, BADI " Not clear and when to use what and how in point of XI ?

Pl..clarify me

Adv..thanks and points --- Rakesh Behera

Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 4:49 PM

Hi This will expalin you every thing ...pl..go through

The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.

Generated by Jive on 2013-06-11+02:00 1

Diff... between ALE, IDOC, RFC, BAPI,...

IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.

While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario. The philosophical difference between EDI and ALE can be pinned as follows: If we send data to an external partner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trusting systems to store a redundant copy of the IDoc data. The difference is made clear, when we think of a purchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier will store the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3 system, then the receiving system will store the purchase order also as a purchase order.

I hope this will help you to understand the difference bet..those

regards --- prasad

Goradindla Sreerama Reddy 2,063 posts since Jun 18, 2005 Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 4:50 PM

IDOC-Intermediate documents BAPI-Business ApplicationProgramInterface

Generated by Jive on 2013-06-11+02:00 2

Diff... between ALE, IDOC, RFC, BAPI,...

BADI-Bsuiness Addins RFC-Remote Function call ALE-Application liniking and enabling

The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.

IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an

Generated by Jive on 2013-06-11+02:00 3

Diff... between ALE, IDOC, RFC, BAPI,...

asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.

While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.

Rakesh Behera 166 posts since Nov 30, 2006 Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 4:56 PM

Hi

Thanks and but what is the difference when we go for " XI"

When to use what ?

regards rakesh

Goradindla Sreerama Reddy 2,063 posts since Jun 18, 2005

Generated by Jive on 2013-06-11+02:00 4

Diff... between ALE, IDOC, RFC, BAPI,...

Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 5:00 PM

rakesh

IDocs <---(reprocessing,great error handling and all in standard)

Proxies (from which you can call bapis) <-- (you need to code the error handling youself)

don't use BAPIs if you have proxies...

Also refer Ravi's weblog /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-withsap-systems

XI Customer Polling 2006 # Summary of Results /people/swen.conrad/blog/2007/01/26/xi-customer-polling-2006-150-summary-of-results Regards Sreeram.G.Reddy

Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 5:08 PM

Hi

In " XI"

Generated by Jive on 2013-06-11+02:00 5

Diff... between ALE, IDOC, RFC, BAPI,...

IDOC ---> Will be used to sending data in Async mode ... It is very standard and for better performance Async case

RFC --- > Function module and general will be used to make call to function sending the function (XI has RFC adapter)

BAPI ---> Other version of RFC (Objected oriented) mostly we will use for Sync calls (Mostly in XI using proxies we will call BAPI's)

regards --- prasad

Chandra Sekhar Chilla 2,959 posts since Jan 22, 2006 Re: Diff... between ALE, IDOC, RFC, BAPI, BADI --- Not clear and clarify Mar 6, 2007 5:08 PM

HI, As explained above.. IDoc : Intermediate Document. When you are integration with SAP Systems then it is better to use IDocs RFC: Remote function Call When you are invoking some function on R3 System ,and get result from R3 then it is better to use RFC,BAPI.

Generated by Jive on 2013-06-11+02:00 6

Diff... between ALE, IDOC, RFC, BAPI,...

Please see the below links ALE/ IDOC http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/ content.htm http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419 http://www.netweaverguru.com/EDI/HTML/IDocBook.htm http://www.sapgenie.com/sapedi/index.htm http://www.sappoint.com/abap/ale.pdf http://www.sappoint.com/abap/ale2.pdf http://www.sapgenie.com/sapedi/idoc_abap.htm http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/ frameset.htm http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/ frameset.htm http://www.allsaplinks.com/idoc_sample.html http://www.sappoint.com/abap.html

Regards Chilla.. <i>Points rewarded if it is helpful..</i>

Generated by Jive on 2013-06-11+02:00 7