cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc and RFC

former_member207019
Participant
0 Kudos

Hello,

When do we go for Idoc and When do we go for RFC.

Give some differences in real time.

thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

idoc is nothing but the intermediate document .

whcich is used for data transfer from one system to the another system

idoc is asynchronous .

RFC is nothing but the Remote function call

which is used to call the function which is in another system

the rfc is synchronous

if you are using the two machine one system call the function which is store in another machine this fuction call remotely

IDoc (for intermediate document) is a standard data structure for electronic data interchange (EDI) between application programs written for the popular SAP business system or between an SAP application and an external program. IDocs serve as the vehicle for data transfer in SAP's Application Link Enabling (ALE) system.

IDocs are used for asynchronous transactions: Each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database.

Another SAP mechanism, the Business Application Programming Interface (BAPI) is used for synchronous transactions.

A large enterprise's networked computing environment is likely to connect many geographically distributed computers to the main database. These computers are likely to use different hardware and/or operating system platforms. An IDoc encapsulates data so that it can be exchanged between different systems without conversion from one format to another.

IDoc types define different categories of data, such as purchase orders or invoices, which may then be broken down into more specific categories called message types. Greater specificity means that an IDoc type is capable of storing only the data required for a particular transaction, which increases efficiency and decreases resource demands.

An IDoc can be generated at any point in a transaction process. For example, during a shipping transaction process, an IDoc may be generated that includes the data fields required to print a shipping manifest. After a user performs an SAP transaction, one or more IDocs are generated in the sending database and passed to the ALE communication layer. The communication

layer performs a Remote Function Call (RFC), using the port definition and RFC destination specified by the customer model.

The IDoc is transmitted to the receiver, which may be an R/3, R/2, or some external system

RFC

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.

Plz refer this link

/people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

Answers (4)

Answers (4)

Former Member
0 Kudos

Please close the thread if you get the required answer.

former_member859847
Active Contributor
0 Kudos

Hi,

When we have standard idoc and RFC to meet

particular business requiredmnt.

then plan for those.

generally, idoc are used for asynchronous mode communication.

where as RFC;s used for synchrous mode of communication.

warm regards

mahesh.

Former Member
0 Kudos

Hi,

We choose IDOC in case of Async communication

We choose RFC in case of Sync communication

And also take a look at this on which adapter is to choose while dealing with SAP Systems

/people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

Regards

Seshagiri

Former Member
0 Kudos

This will give you the better idea...

/people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

Former Member
0 Kudos

HI,

IDOC: when u wanted to send sales order,order ack,delivery, invoice so sap has provided std IDOC for all the above functionality hence it is easily to go for IDOC when u have the above specific requirement.

RFC: RFC is used to for synchronous response when u want to get some response from the SAP system. suppose for example u r getting customer no from legacy system and u need the customer information for that customer no then u go for RFC. again SAP has provided all the std RFC for the business requirement u need to use the correct RFC for the same.

chirag