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

BAPI for create new employee

Former Member
0 Likes
5,812

Hi,

There is any BAPI for create a new employee (transaction pa40)?

Basically a bapi that create employee number and assign personnel area, EE group,...

I suppose that BAPI_PARTNEREMPLOYEE_CREATE is for external customer users... not the bapi that we are looking for...

Regards.Thanks.

Hi,

There is any BAPI for create a new employee (transaction pa40)?

Basically a bapi that create employee number and assign personnel area, EE group,...

I suppose that BAPI_PARTNEREMPLOYEE_CREATE is for external customer users... not the bapi that we are looking for...

Regards.Thanks.

5 REPLIES 5
Read only

b_deterd2
Active Contributor
0 Likes
2,910

Hi,

Try using FM HR_INFOTYPE_OPERATION. It is a frequently used fm for HR .

Reg,

Bert

Read only

Former Member
0 Likes
2,910

I dont think you can create new employee's using HR_INFOTYPE_OPERATION. HR_INFOTYPE_OPERATION is only for creating or updating infotypes for existing employees. IF you have to create new employees, you might have to either make a Z FM for HR_INFOTYPE_Operation to avoid the Existence Check or try to Use HR_MAINTAIN_MASTERDATA.

Read only

Former Member
0 Likes
2,910

hii

for creating employee you can use FM

BAPI_PERSDATA_CREATE

and HR_MAINTAIN_MASTERDATA

regards

twinkal

Read only

Former Member
0 Likes
2,910

Thank you by the answers... Its extrange but i cannot find that (HR_MAINTAIN_MASTERDATA) in my sap system.

I have HR_MASTERDATA_DIALOG that request parameters P_ACTIVITY, P_INFTY, P_PERNR, P_SKIP and P_SUBTY...

Any idea?

Read only

2,910

Hi Garcia,

The FM calls the transaction PA30/PA20 based on your activity whether to create/display.

If you do not have the FM HR_MAINTAIN_MASTERDATA

You can use even BDC to create the employee data.

Fill all the required data for an employee and call the transaction PA30 for each infotype.

Also HR_INFOTYPE_OPERATION implicitely calls the HR_MAINTAIN_MASTERDATA .

search for the same ..and also look for the include LHRMMU03.

Check for Function group HRMM which has these FM's