Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI vs BDC

Former Member
0 Likes
785

Can anybody tell me why bapi is advantageous over BDC, or vice versa.

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
716

Hi Rajan,

Welcome to SDN.

A BAPI is faster because it is updating the DB "directly" through ABAP code.

A BDC with call transaction goes through the whole screen sequence like any user would do, simply put, it is filling screens.

Regards,

Ferry Lianto

6 REPLIES 6
Read only

Former Member
0 Likes
716

Hi,

BDC is traditional way of coding the transactions for uploading the legacy data, Sap is changing all transactions to Object oriented programming. Since BAPI is Object based and supports all the new transactions it is preffered over BDC. More over BAPI's process data faster than BDC.

Hope this helps.

Read only

Former Member
0 Likes
716

BAPI is a SAP-supplied function module with a defined interface, which allows you to interact with various business objects. SAP guarantees the integrity of your database for anything updated using a BAPI. BDC is a method of driving screens programatically, for updating SAP data. BAPIs are generally faster than BDCs.

A BAPI is faster because it is updating the DB "directly". Whereas BDC with call

transaction goes through the whole screen sequence like any user would do, simply put, fills screens.

Regards,

PRakash.

Read only

ferry_lianto
Active Contributor
0 Likes
717

Hi Rajan,

Welcome to SDN.

A BAPI is faster because it is updating the DB "directly" through ABAP code.

A BDC with call transaction goes through the whole screen sequence like any user would do, simply put, it is filling screens.

Regards,

Ferry Lianto

Read only

0 Likes
716

Ferry,

Nice job stealing Prakash's second paragraph and adding a blank line and a few extra words.

Read only

Former Member
0 Likes
716

However - there is not always a BAPI for a particular transaction and not all functions that are performed by a transaction can be done by a BAPI. BDCs produce error sessions which can be processed by the user, while BAPIs don't.

Having said that, not all transactions support batch input.

But SAP is going the way of BAPIS. So it's best to use them whenever possible.

Rob

Read only

Former Member
0 Likes
716

Hi,

BAPI has more advantages over BDC as stated above , but we need to use BDC whenever an application has been enhanced( i.e a field is added), if i am wrong plz let me know.

Regards

Syed