cancel
Showing results for 
Search instead for 
Did you mean: 

How to create employee via Odata?

fceylan_hs
Participant

Problem 1)

There is a lot of ODATA API for ByDesign https://blogs.sap.com/2019/02/27/sap-business-bydesign-api-usage-sample But we couldn't find any Post operation for creating/updating Employee. Is there any Odata Api available for creating employees? We tried to implement our custom Odata Service but it doesn't allow us to Create/Update fields. Problem 2)

We tried to implement interface Personnel Administration - Hire an employee https://api.sap.com/api/PSM_ISI_R_II_MANAGE_PERS_HIRING_IN/overview but this service only shows system fields. We cannot access extension fields created via SDK or UI Designer. How can we achieve this?

Note: we are developing Sap ByDesing only. We don't have Success Factors/HCM module.

Accepted Solutions (0)

Answers (4)

Answers (4)

HarshalVakil
Active Contributor

Hello,

The Custom ODATA Service that you have found from the blog can be modified to create employee from existing busines partner.

Also in the same blog (and from Github) you can find ODATA service also to create the business partner.

I hope this will answer your question.

Regards,

Harshal

eascuntar_23
Member

Hi,

Via OData not possible, maybe you could use the Web service to create new employee- ManagePersonnelHiringIn

Some more you may need:

ManageEmployeeIn:- Change employee general data, biographical data and address data. The service cannot be used to create/hire employees, but to change employee data only.

ManagePersonnelHiringIn:- Hire an employee.

ManagePersonnelRehireIn:- Rehire an employee.

ManagePersonnelTransferIn:- Transfer an employee to another organisational center or job.

ManagePersonnelLeavingIn:- Terminate an employee contract.

Please read this Documentation

fceylan_hs
Participant
0 Kudos

Hi eascuntar_23 ,

We created web service on SDK but it does not work as expected; since we are trying to import Employee data from third party system it does not have auto/timer trigger. Could you suggest any solution on this?

omeryamak
Explorer

Hi,

I have same problem. I'm creating odata services but i cant choose create and/or update checkbox. Because thats are coming disabled.

ThiagoSarmento
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello fceylan_hs,

You mentioned that the webservice ManagePersonnelHiringIn is missing your SDK fields.
Have you created a process extension scenario in order to add the fields to this service interface?

Best regards,
Thiago

fceylan_hs
Participant
0 Kudos

Hi Thiago,

Well we tried but employee process extension scenario has too many services and it's not clear which fields added with our selection.

I checked all available selections one by one in any case but still wasn't able to see extension fields on webservice call.

But maybe as @eascuntar_23 mentioned, we should use 2 seperate web service to create then update an emloyee. which is so unusual for me. I just couldn't explain our customer this situation. It shouldn't be complicated that much.