‎2008 Mar 01 11:28 AM
Hi
can anybody explain me about how BAPIS are used for interfacing and cant we use BDC's for interfacing?
‎2008 Mar 01 1:30 PM
Hi Radhika,
The process of the creation of BAPI is pretty simple..
Firstly you need to create a Function module through SE37 with properties set as RFC(Processing Type).
Later you activate the function module and release it so that you can assign to the BAPI.
Now, you go to SWO1, business oject builder, there you create a business object. It will ask you to give some business object type. If you know any predefined business object types just type it, if not give a new name so that the new business object type is created.
Next step is to add a method to your business object. Click the add option in the application tool bar and add the method.
When you add the method it asks you to enter the Function module and enter the FM name and press OK.
This will create an parameters for your method which are nothing but the interfaces to your FM.
Finally release the method as well as the business object.
Once they are released your BAPI, the method u created is Released in BOR - Business Object Repository.
You can check the BAPI using BAPI transactioncode.
Usage of BAPI.
If you want non SAP system to call some functionality which is present in your ABAP program, you will call the BAPI from the non-SAP system, say VC++ or win32 program.
Abt BDC, and BAPI.
Yes you can try to write a report program which calls you BAPI and implements some function.
A call to the BAPI in ABAP will be a call to the RFC function module you have created.
Once you are done with the report program which implements BAPI, assign a transaction code to the program.
Now go to SHDB, Transaction Recorder. Record the transaction and copy the program in to some custom program.
This is how you can use both BAPI and BDC together..
I hope this will give some idea what BAPI and BDC's are.
Any doubts you can ask me, and Reward if useful.
Thanks and happy weekend