‎2006 Aug 18 2:45 PM
Hi all
can any one tell me when to go with BDC and when to BAPI
rewards are expected
‎2006 Aug 18 2:49 PM
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
‎2006 Aug 18 2:47 PM
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
‎2006 Aug 18 2:48 PM
‎2006 Aug 18 2:49 PM
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
‎2006 Aug 18 2:49 PM
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
‎2006 Aug 18 2:50 PM