on 04-27-2023 10:40 AM
Hi!
Normally timesheets are approved through the app My Inbox.
Is it possible to approve timesheets in another way, for example with an API? We want to be able to approve times from a side-by-side App.
The Workforce Timesheet API: https://api.sap.com/api/API_MANAGE_WORKFORCE_TIMESHEET/overview works for creating new timesheets, but if the approval workflow is defined using BADI, there seems to be no way to create or change a timesheet so it has the TimeSheetStatus 30 (Approved).
Through the My Inbox app the approval process is using the service HCM_CATS_MYINBOXAPPROVAL, but this is not exposed to the outside and cannot be called.
Is it possible to make these APIs usable somehow, or maybe there is some other way to do this?
Kind regards,
/ Kristofer
If you are on a 3 SL landscape and have a Dev system with an ABAP workbench you can try to develop your own API using the same object that is used to approve a timesheet in your Inbox. This link will get help you get started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristofer,
This link should be helpful:
Best Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Owen!
Unfortunately when you have set up a workflow which requires some timesheets to be approved by the manager (for particular overtime categories for example), these timesheets cannot be approved with this API. You can push them into the workflow using the ReleasedOnSave = True field, but any timesheet that is put into status TimeSheetStatus 20 (Sent for approval) this way can't be out into TimeSheetStatus 30 (Approved).
This is the problem we are facing.
Kind regards
Kristofer
User | Count |
---|---|
106 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.