<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: difference b/w idoc and bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793079#M912284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many differences between IDOCs and BAPIs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idoc and BAPI are both are SAP-objects.&lt;/P&gt;&lt;P&gt;Idoc adapter used for ASync- communication.&lt;/P&gt;&lt;P&gt;Rfc adapter used for sync-async communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs in 3.1 are synchronous; in 4.+ they can be asynchronous (and I &lt;/P&gt;&lt;P&gt;believe they then drive certain ALE/IDOCs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are called from the outside-in. That is, an external program &lt;/P&gt;&lt;P&gt;invokes a BAPI that gets data from SAP to display or updates data in &lt;/P&gt;&lt;P&gt;SAP. The BAPI concept does not include an event concept -- you cannot &lt;/P&gt;&lt;P&gt;tell SAP that when certain events happen to a "business object", to fire &lt;/P&gt;&lt;P&gt;a message or a file to an external system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are invokable from Java or C/C++ or Visual Basic (and I think some &lt;/P&gt;&lt;P&gt;people are using Delphi). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 3.1x there are very few BAPIs to use. In 4.+ SAP has added a large &lt;/P&gt;&lt;P&gt;number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are not totally immune to upgrades but if they are to be retired &lt;/P&gt;&lt;P&gt;you supposedly will have them supported for two releases. Whether those &lt;/P&gt;&lt;P&gt;are point or letter releases, I don't know. I believe that IDOCs may &lt;/P&gt;&lt;P&gt;be more changable from release to release. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are reasonably well documented and there is a common place to look &lt;/P&gt;&lt;P&gt;to see what is available. IDOCs -- I have heard -- are poorly &lt;/P&gt;&lt;P&gt;documented in terms of finding them, and IDOCs were done differently by &lt;/P&gt;&lt;P&gt;different groups in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the link&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/2007/08/difference-between-idocs-and-bapi.html" target="test_blank"&gt;http://abapprogramming.blogspot.com/2007/08/difference-between-idocs-and-bapi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 11:30:09 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-05-16T11:30:09Z</dc:date>
    <item>
      <title>difference b/w idoc and bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793076#M912281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me the difference between idoc and bapi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793076#M912281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w idoc and bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793077#M912282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The basic difference between a BAPI and IDOC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. BAPI is a function module whereas an IDOC is a &lt;/P&gt;&lt;P&gt;structure containing number of segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. BAPI is developed in SE37 transaction whereas IDOC &lt;/P&gt;&lt;P&gt;related development can be done through the WEDI &lt;/P&gt;&lt;P&gt;transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11870920&amp;amp;messageID=4821322" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11870920&amp;amp;messageID=4821322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793077#M912282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w idoc and bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793078#M912283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;ALE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE provides intelligent mechanisms where by clients can achieve integration as well as distribution of applications and data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE technology facilitates rapid application prototyping and application interface development, thus reducing implementation time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALE components are inherently integrated with SAP applications and are robust, leading to a highly reliable system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE comes with application distribution/integration scenarios as well as a set of tools, programs, data definitions, and methodologies that you can easily configure to get an interface up and running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs provide a stable, standardized method for third-party applications and components to integrate into the Business Framework. These interfaces are being specified as part of SAP's initiative with customers, partners and leading standards organizations. Also, SAP has implemented the emerging Object Application Group (OAG) specifications with BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pros and Cons for both BAPI and Call Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the big plusses for BAPIs is that the interface and function are not supposed to change. This is a big plus when you do upgrades or hot packs because the transaction can change (format, required inputs etc) which means you then need to update the call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the BAPIs are better documented and easier to use than others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You usually need to perform the BAPI that actually does the COMMIT after you call your BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Program coding for calling a BAPI is usually cleaner than setting up the screen flow etc for the Call Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to worry about special data circumstances interrupting the normal data flow of the screens and causing errors because of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs probably have better performance since they don't do the screen flow processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general if the BAPI exists for the transaction you want to perform and you can figure out how to use it the BAPI is probably the best way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just from my experience working with both BAPI and Call Transaction. I have had some very good successes with BAPIs, but very occasionally found that I could not get the BAPI to perform the update I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpfull,&lt;/P&gt;&lt;P&gt; Nraresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793078#M912283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w idoc and bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793079#M912284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many differences between IDOCs and BAPIs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idoc and BAPI are both are SAP-objects.&lt;/P&gt;&lt;P&gt;Idoc adapter used for ASync- communication.&lt;/P&gt;&lt;P&gt;Rfc adapter used for sync-async communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs in 3.1 are synchronous; in 4.+ they can be asynchronous (and I &lt;/P&gt;&lt;P&gt;believe they then drive certain ALE/IDOCs). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are called from the outside-in. That is, an external program &lt;/P&gt;&lt;P&gt;invokes a BAPI that gets data from SAP to display or updates data in &lt;/P&gt;&lt;P&gt;SAP. The BAPI concept does not include an event concept -- you cannot &lt;/P&gt;&lt;P&gt;tell SAP that when certain events happen to a "business object", to fire &lt;/P&gt;&lt;P&gt;a message or a file to an external system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are invokable from Java or C/C++ or Visual Basic (and I think some &lt;/P&gt;&lt;P&gt;people are using Delphi). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 3.1x there are very few BAPIs to use. In 4.+ SAP has added a large &lt;/P&gt;&lt;P&gt;number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are not totally immune to upgrades but if they are to be retired &lt;/P&gt;&lt;P&gt;you supposedly will have them supported for two releases. Whether those &lt;/P&gt;&lt;P&gt;are point or letter releases, I don't know. I believe that IDOCs may &lt;/P&gt;&lt;P&gt;be more changable from release to release. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs are reasonably well documented and there is a common place to look &lt;/P&gt;&lt;P&gt;to see what is available. IDOCs -- I have heard -- are poorly &lt;/P&gt;&lt;P&gt;documented in terms of finding them, and IDOCs were done differently by &lt;/P&gt;&lt;P&gt;different groups in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the link&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/2007/08/difference-between-idocs-and-bapi.html" target="test_blank"&gt;http://abapprogramming.blogspot.com/2007/08/difference-between-idocs-and-bapi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793079#M912284</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-16T11:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w idoc and bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793080#M912285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A BAPI exchanges information with R/3 in a similar way to IDocs, but the BAPI can call a program directly in the call system. IDocs, on the other hand, communicates asynchronously and stores the data it receives before it can process the data. This means you get an established protocol for exchanging data between R/3 and an external system, while BAPIs can't write a protocol unless the application itself does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-idoc-and-bapi/m-p/3793080#M912285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:32:46Z</dc:date>
    </item>
  </channel>
</rss>

