Application Development 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: 

call transaction Vs BAPI

Former Member
0 Kudos

why we go for BAPI instead of call transaction ?

6 REPLIES 6

Former Member
0 Kudos

Hi,

BAPI is a higher end usage for tranfering the data from SAP to non-SAP and vice-versa. for ex: if we are using VB application,where in that we want to connect to SAP and retireve the data,and then change and update the data in SAP for that purpose we can use that.Apart from that, we can also use it for

Uploading/Downloading the data from SAP to Non-SAP like call transaction, provided we have an existing BAPI for that.BAPI function modules will also do all the checks required for data integrity like Transactions for call transaction.

There is one more advantage using BAPI instead of call transaction. When we go for upgradation, there might be pozzibility to change the screen elements for transactions depending on the requirement. In that case,our call transaction pgm may or may not work (depending on the screen changes they have made). Unless and until we prepare new call transaction we cant use the old call transaction pgm. But in BAPI, SAP promises that they are going to keep the old BAPI and for new functionality they will provide an upgraded BAPI. Until we write a new BAPI pgm, we can use the exisitng BAPI pgm.

********please reward points if the information is helpful to you**********

Former Member
0 Kudos

Hi

For the Transactions like ME21N, VL01N type <b>ENJOY transactions</b> you can't upload data using the BDC Call transaction, for them you have to use the BAPI's only.

Reward points for useful Answers

Regards

Anji

0 Kudos

Hi

"Enjoy" won't work...

Moreover, in some cases during the transaction unwanted screens can appear, they won't be handle by your BDC but will be handle via the BAPI.

BAPI is a std process and will continu working even after an SAP upgrade (for BDC, not sure at all ! )

Hope this helps,

Erwan

former_member404244
Active Contributor
0 Kudos

hI,

Bdc is not recomended for ENJOY transactions for them you have to use the BAPI's only.

PLZ GO THROUGH THE below links

http://www.karakas-online.de/forum/viewtopic.php?t=6083

http://www.geekinterview.com/question_details/17527

Regards,

Nagaraj

Former Member
0 Kudos

Hi,

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

Major difference is that a BAPI call is not screen dependent, so when the screen sequence changes, it does not effect when using BAPIs.

BAPIs are function modules that are well documented and are RFC enabled. THey also usually perform some specificy business action, such as "Create Purchase ORder".

<b>Reward points</b>

Regards

Former Member
0 Kudos

HI.

BaPi is a functional module,it s already code done by someone so no need to creat new code for that but BDC you need to write all code.

if you upload records in PO conversion it little bit difficult in BDC ,because we need to pass value header and line item ,both are diffrent screen ,so i need to more code.bapi is easy for Po conversion.it s not depending on Screens while uploading datas.

BDC slow update,BAPI very update because direct database update.

Reward all helpfull answers.

Regards.

Jay