on 11-03-2023 6:30 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.