‎2006 Jan 18 10:01 PM
hi folks,
can anyone explain as how to create custom BAPI from scratch? In HR there are a lot of standard BAPIs available - Is there any scenario of creating custom BAPI from scratch in HR module.
If any info on this.. it would really help.
Thanks
Vinu
‎2006 Jan 18 10:06 PM
Hi Vinu,
BAPI is nothing but a function module. Function modules are procedures that are defined in function groups (special ABAP programs with type F) .
you can create them by using T/code SE37.
Lanka
‎2006 Jan 18 10:11 PM
I know that, but looking for custom BAPI in HR module Is there scenarios available for that.
thanks
vinu
‎2006 Jan 18 10:13 PM
Hi vinu,
Custom BAPI for HR module?
Can you please clarify your requirement?
Lanka
‎2006 Jan 18 10:18 PM
Like I am looking for an example where a custom BAPI has been created from scratch in the HR module to perform some function related to HR activity like in Payroll or Time Management.
Vinu
‎2006 Jan 19 4:19 AM
Hi,
Create the Function module, and make it RFC enabled, and use BAPIRETURN table parameters in the Function module,
and any errors/success store them in the BAPIRETURN Table.Implement the logic inside the FM.
Regards
vijay
‎2006 Jan 19 2:26 AM
hi, you should create a ZBAPI_XXX in se37.
And also pay attention to some restriction on BAPI function rule. You should follow them if you want to create a FM as BAPI. E.G. as a BAPI , it should be a RFC enable.
And after that, create a BO in SWO1 (O, not zero).
hang the BAPI you create formerly under this BO.
Only after you realse it, you BO and BAPI will appear in BAPI explorer.
You can find the details in tcode BAPI, in 'Project' tab, it has a guide on how to create customize BAPI.
thanks