Application Development 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: 

Create a new employee - BAPI/RFC/Idoc

Former Member
0 Kudos

Hi Experts,

I am not a SAP Expert. I want to create employee records in the SAP system using Biztalk WCF SAP adapter. I was trying to create a record using BAPI_PERSDATA_CREATE while passing u201Cemployeenumberu201D as empty as employee number should be generated by the the system. Help document says I need to use BAPI_EMPLOYEE_ENQUEUE before calling the CREATE . But I need to pass EmployeeID for this.

So It seems that I am marching to the wrong direction. Could anyone help me to identify the correct BAPI/RFC or IDOC that I need to use for creating a new employee ? Your help will be greatly appreciated!!!

Thank you

Nandika

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos

Please read below link:

[;

4 REPLIES 4

krishnendu_laha
Active Contributor
0 Kudos

Please read below link:

[;

0 Kudos

Thank you for your link. But this BAPI creates business partners . I need to create employees in the HR system and also want to return back the system created personal Id(empoyee ID).

Can any one help me please ?

Nandika

krishnendu_laha
Active Contributor
0 Kudos

You can use BAPI_BUPA_CREATE_FROM_DATA for creating employee, please check program CRMHRALE_CENTRAL_PERSON for example...

You can get employee number in importing parameter businesspartner of the BAPI

0 Kudos

Thank you for your help. But this API will add BA role to the employee. I really want to create employees not BA s in to the system.

So I need to find a proper way for this. I have not found a way yet.

Really Appriciate If I can get SAP Community help for this. Is there anyway to write API using C# ?

Nandika