Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

custom Bapi

Former Member
0 Likes
744

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

6 REPLIES 6
Read only

Former Member
0 Likes
698

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

Read only

0 Likes
698

I know that, but looking for custom BAPI in HR module Is there scenarios available for that.

thanks

vinu

Read only

0 Likes
698

Hi vinu,

Custom BAPI for HR module?

Can you please clarify your requirement?

Lanka

Read only

0 Likes
698

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

Read only

0 Likes
698

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

Read only

Former Member
0 Likes
698

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