Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between BAPI and RFC?

Answer Posted / firdoos

I like to describe BAPIs as "Dialog without dialog". What does this mean?

BAPIs do the same validations like in the corresponding dialog transaction, e.g. BAPI_USER_CREATE1 and SU01.
Underneath a BAPI you may find RFC-enabled function modules which may also provide the BAPI functionality (e.g. create a SAP user) yet they do not care much about validations.

Example:
BAPI_USER_CREATE1 eventually uses fm SUSR_BAPI_USER_CREATE to create a SAP user.
The function module may allow you to create the SAP user with a wrong title whereas the BAPI won't. The wrong title will cause problems in the dialog transaction (SU01).

Another important aspect is that BAPIs never raise exceptions but return the AEX-messages in a RETURN parameter (e.g. of type BAPIRET2).
Last but not least a BAPI should never do the COMMIT WORK itself but you have to do it after a successful BAPI call (e.g. by calling BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK).

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

2083


In events, start-of-selection is a default event. When we have to use this event explicitly? Why?

1039


How to combine multiple order in one Delivery ( Step by Step)?

2405


What are the function of the transport system and workbench organiser? : abap data dictionary

987


In sap script how to print bar code in vertical manner

3949


What is an on”*-input filed” statement?

1152


Explain the properties of selection screen?

1155


What is the use of the statement leave to list-processing?

994


What is the difference of update types in call transaction method ? : abap bdc

1165


How can we upload a text file having delimiters in to legacy system? : abap bdc

1111


Differentiate between static and dynamic step loops?

1074


Explain open dataset in sap abap?

1315


What is ps structure? : abap hr

1375


Suppose the client wants me the vacancy to be displayed on a website as well as ess. How should I do it? : sap abap hr

971


What is read line in abap?

1124