‎2008 Apr 15 7:21 AM
hi all,
can u pls help me in this?
i have no idea abt bapi.can u pls explain the work functionality of bapi and difference between between bapi and function module.
and also explain
how to use this bapi to upload the data into cats BAPI_CATIMESHEETMGR_INSERT .
if possible send me the code also...
thanks & regards
rahul..
‎2008 Apr 15 7:34 AM
Hello Rahul
BAPIs enable you to access so-called business objects (like the CATS timesheet) in SAP from external systems.
In contrast to "normal" function modules BAPIs have a holistic approach of accessing the business object.
What does this mean? You may find a normal function module which enables you to insert records into timesheets, too. However, there is no guarantee that this fm takes care of all necessary consistency checks. The BAPI takes care of this.
Basically, think of a BAPI as a "Dialog with dialog". The BAPI does more or less the same like the corresponding transaction (here: CAT2). In order to understand the mandatory input for the BAPI you must understand transaction CAT2.
For sure you will find plenty of sample coding if you search the SDN for the BAPI name.
Regards
Uwe
‎2008 Apr 15 7:35 AM
Hi,
BAPI's are RFC enabled function modules.
We can directly access this BAPI function modules from non SAP system also.
to use this,
Call the BAPI function modules.
find the mandatory paramters and define internal tables with the type of export paramters.
populate that internel tables and export to the BAPI function modules.
It will update the data base.
If it contains any errors BAPI will return the return paramter you can easily find that by importing return parameter.
Reward if helpful
Regards,