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

diffrence between BDC and BAPI's

Former Member
0 Likes
1,360

Hi all

can any one tell me when to go with BDC and when to BAPI

rewards are expected

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,329

If there is a BAPI available, always use this over BDC. Why? Because BAPIs are standard interfaces, the signature will never change. Doing recordings over transactions using BDC, you run the risk of the transaction screens changing from release to release. So you would have to re-record. Using BAPIs, there are no screens, and the interface doesn't change.

REgards

Rich Heilman

5 REPLIES 5
Read only

Former Member
0 Likes
1,329

Hi Sai,

> QUESTION POSED ON: 13 July 2005

What is the difference between LSMW, BAPI and BDC? What advantages do they have on one another?

> EXPERT RESPONSE

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. LSMW is a tool which uses BAPI and BDC to load data into SAP -- it performs the Extract Transform and Load functions. BAPIs are generally faster than BDCs.

Cheers

VJ

Read only

Former Member
0 Likes
1,329

sai,

Check

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,330

If there is a BAPI available, always use this over BDC. Why? Because BAPIs are standard interfaces, the signature will never change. Doing recordings over transactions using BDC, you run the risk of the transaction screens changing from release to release. So you would have to re-record. Using BAPIs, there are no screens, and the interface doesn't change.

REgards

Rich Heilman

Read only

Former Member
0 Likes
1,329

Hai Sai

Check the following Differences B/W BDC and BAPI

The steps to be followed are :

1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).

[for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]

2. Create a Z program and call the BAPi (same as a Funtion module call).

2. Now, if you see this BAPi, it has

-> Importing structures.

eg: SALESDOCUMENT: this will take the Sales order header data as input.

-> Tables parameters:

eg: ORDER_ITEM_IN: this will take the line item data as input.

Note :

Only specify fields that should be changed

Select these fields by entering an X in the checkboxes

Enter a U in the UPDATEFLAG field

Always specify key fields when changing the data, including in the checkboxes

The configuration is an exception here. If this needs to be changed, you need to complete it again fully.

Maintain quantities and dates in the schedule line data

Possible UPDATEFLAGS:

U = change

D = delete

I = add

Example

1. Delete the whole order

2. Delete order items

3. Change the order

4. Change the configuration

Notes

1. Minimum entry:

You must enter the order number in the SALESDOCUMENT structure.

You must always enter key fields for changes.

You must always specify the update indicator in the ORDER_HEADER_INX.

2. Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

For further details... refer to the Function Module documentation for the BAPi.

Regards

Sreeni

Read only

Former Member
0 Likes
1,329

Hi Sai,

Have a Look at this thread too