‎2008 Jun 14 5:04 AM
Hi All I have a doubt in BAPI.
I have created a function module which is remote enabled module. I didnu2019t create any BAPI using Tcode SWO1 or BAPI. Am using this function module in my VB code to get the data from SAP, Its working fine am getting all data from SAP database.
My Question is since we can use sap Function module (which is remote enabled module) with out creating BAPI. Then what is the use of creating BAPI.?
If we click on radio button Remote enabled module is that function module act as BAPI?
Please help me.
Regards
Prajwal K.
‎2008 Jun 14 5:15 AM
Hi Prajwal,
BAPIs are RFCs, the only difference is that BAPIs usually encapulate some complete business object.
For example, creating a sales order, the BAPI would do all of the steps required to create a sales order.
Regards
Kiran Sure
‎2008 Jun 14 5:31 AM
Hi kiran
Please tell me what is the difference between a remote enabled function module and a BAPI.
Regards
Prajwal K.
‎2008 Jun 14 7:01 AM
Hello Prajwal,
It would not be wrong to say that * ' EveryBAPI is an RFC but not every RFC is a BAPI' * . BAPI as Said Encapsulates Buisness objects like Customer, Sales Order . Also for released BAPIs SAP promises not to make interface changes (changes in Importing, Exporting parameter etc). Also as a programming practice BAPI parameters are always Optional (Same may not apply to All RFCs).
/community [original link is broken]
http://www.sap-abap4.com/netweaver/13-13/
Regards
Saket Sharma
‎2008 Jun 14 7:15 AM
Hi Prajwal,
Please check this link
RFC and BAPI Interfaces to SAP Systems
http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.
Best regards,
raam
‎2008 Jun 14 8:00 AM
Hi,
Search the forum before posting question There are lot of theards are available in SDN,
However look below theards
https://forums.sdn.sap.com/click.jspa?searchID=12896578&messageID=5237619
https://forums.sdn.sap.com/click.jspa?searchID=12896578&messageID=5135164
Regards
Kiran Sure
‎2008 Jun 14 11:54 AM
Hi prajwal,
technically, there is no difference between a remote enabled function module and a BAPI. But BAPIs are better integrated in SAP, they are based on business objects.
Regards,
Clemens
‎2008 Jun 14 7:13 AM
Hi Prajwal,
BAPI's are Remote enabled Function Modules with return values.
Means BAPI's are synchronous.
RFC's are also remote enabled function modules but without return values. Means RFC's are asynchronous.
When we use BAPI we do get a return value whereas for RFC we donot get any return value.
This is the major difference.
Reward points if you are satisfied with answer.
Regards,
Pavan Kumar