cancel
Showing results for 
Search instead for 
Did you mean: 

When and Why we use BAPI, RFC and IDOC.. in XI

former_member185856
Participant
0 Kudos

Hi,

Could any one tell me why we some time use BAPI, and some times use RFC and some times use IDOC while communicating with the SAP systems.

Is there any differences while using the same.

regards,

Sunil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sunil,

RFC and BAPI are same as per the technical point of view both are remote enabled function module..

BAPI is provided by SAP while RFC is created by a developer..

IDoc is another proprietary technology of SAP for exchnaging messages .

Difference lies here :

1. For RFC/BAPI you need to use RFc adapter

while for IDoc you need to use IDoc adapter..

2. For RFC you need to create RFC destinations not for Idoc

3. For Idoc you also need to manage Partners Profiles..inn R3..

These are few differences in using RFC/BAPI and Idoc...not the only ones..

Feel free for any clarification..

Regards,

Answers (4)

Answers (4)

former_member185856
Participant
0 Kudos

<b>Hi Experts!,

Thnx a lot for giving info on the same, Now I clearly know Why we use RFC/BAPI, IDOC in XI while communicating with SAP systems.

Now I knew that to use BAPI/RFC or IDOC WAS is not the concern.

I have rewarded the points for all the people who tried to help me on the same, Thnx a lot once again.

Thanks and regards,

Sunil</b>

Former Member
0 Kudos

RFCs are used when the caller and the called function module run in the same system.

In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between an SAP system and an external system.We get information in response to RFC no functional acknowledgement will b received.

IDOC is jus a predefined structure like where in u would post them to your peer in distributed environment.As a response u can get functional acknowledgement for the IDOC which is being sent.

BAPI:http://help.sap.com/saphelp_nw04/helpdata/en/7c/3ce38765ba11d395fe00a0c94260a5/frameset.htm

Thanks

prabhu_s2
Active Contributor
0 Kudos

for sync communication u use RFC/BAPI. idoc comm is async and is used when u wanna to transfer data as idocs. also check this blog:

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

Former Member
0 Kudos

HI,

RFC is used when we need to get the details from the Rs system.

For example you have a company number coming from the file and you need to get the company information from R3 system for that company number that time you use the RFC. SO you send a request to R3 system and you get the response back from R3 system to XI.

As said IDOC is async its intermidiate doucments which has the predetrmined strucutre and which holds data for transfer between systems.

Thnx

Chirag

vikas_agarwal
Contributor
0 Kudos

Hi Sunil,

<b>Bapi and RFC</b> are one of the same things for XI, and we use <b>BAPI/RFC for Synchronous communication</b> While <b>Idoc is used for Asyncronous communication</b>,

Thanks