cancel
Showing results for 
Search instead for 
Did you mean: 

API_MANAGE_WF_AVAILABILITY

Guillaume_Dube1
Participant
0 Kudos

Hi Everyone,

I've been trying to find a more efficient solution to add availability information to the S/4 HANA system for our internal company (we are not using SAP SuccessFactors Employee Central). I only found this API for a solution. However, it only allow me to post availability information PER EMPLOYEE and PER DAY. Do you know a faster way I can post availability information for ALL MY EMPLOYEE (basically 8h/working day for everyone) and post it for a RANGE OF DATE (ex. 2019/01/01 to 2019/12/31). 

Thank you

*For your info, here is the link to the API and the code line.

Link : https://api.sap.com/api/API_MANAGE_WF_AVAILABILITY/resource 

Code line : 

{
  "Personworkagreementexternalid": "string",
  "Companycode": "string",
  "Personworkagreement": "Unknown Type: string,null",
  "Calendardate": "/Date(1492098664000)/",
  "Plannedworkinghours": 999.99,
  "Plannedstarttime": "PT15H51M04S",
  "Plannedendtime": "PT15H51M04S",
  "Publicholidayclass": "Unknown Type: string,null",
  "Isnonworkingday": "Unknown Type: boolean,null",
  "Absencehours": 999.99,
  "Attendancehours": 999.99,
  "Overtimehours": 999.99
}

Accepted Solutions (1)

Accepted Solutions (1)

JZijderveld
Active Participant
0 Kudos

Hi Guillaume,

Yes you're right it is designed to post per employee per day. We've made simple CPI flow that reads a csv/Excel and calls the API for each line in the csv.

We were thinking to create a custom app based on this API on SCP or Mendix (side-by-side) but we didn't get around to that yet.

regards,

Jeroen

Guillaume_Dube1
Participant
0 Kudos

Hi Jeroen,

Thank you for your response.

Do you know if there is a way to avoid this API and authorize someone else to record time for an employee even if he is not available ?

We are doing some tests and we want to go further without the constrain of always posting availability with the API to staff and record time.

Thank you,

Guillaume

JZijderveld
Active Participant
0 Kudos

Yes, the 'line-manager' as defined in the employee record can post hours 'on-behalf of' the employee when the line manager use the app 'Team utilization' . If you have SF EC connected the line managers will be populated from there. If you use the upload function for employee you can assign the line manager from there. In this last case you could also investigate to assign a BackOffice user because in S4HC the line manager is only used for this functionality and some workflows.

Posting hours 'on-behalf of' is also possible for the project manager when he uses the app 'Monitor Missing Time Notifications'.

To enter availability there's no way around the API as far as I know.

Guillaume_Dube1
Participant
0 Kudos

Perfect, thank you Jeroen,

Regards,

Guillaume

Answers (1)

Answers (1)

former_member306668
Participant
0 Kudos

Same here, we have created a SCP app to define a typical working week for the employee, e.g. 5 days or part-time employee. We also created a public holiday calendar in the background and then use a iflow to generate the employees availability.

Regards

Thomas