Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:36 PM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 12:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:38 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 12:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 12:41 PM

    <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>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.