on 07-19-2012 3:58 AM
Client has implemented work flow for leave approval and process is done through ESS/MSS.
I am creating an RFC to access the universal worklist of a manager that will be sent to manager's mobile. I need your help in writing the RFC.
I believe I can use the function SAP_WAPI_WORKLIST_CREATE to get work flow id for a manger. Please corrrect me here.
But I am not able to get the leave details for which this work flow was triggered. I mean details for a work flow id. Please let me know how can I relate this work flow id to request id of leave and get details (PERNR, Name, Absence type, days etc.).
Secondly what would be the best function module to approve/reject the leave from mobile. I am currently looking at PT_ARQ_REQUEST_EXECUTE. This will change the leave status to approved. But the problem I anticipate is that this will leave the work flow open. Is there any way to update the workflow also.
Are you going to develop WF inbox application for manager?
When leave request was created workflow has been triggered.
So you should get workitem id and get BOR object and get detail for BOR to show in approval UI.
SAP_WAPI_CREATE_WORKLIST
You can filter by IM_TASK_FILTER for leave request approval task ID.
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No it will not be an inbox application, it will be separate application that will display list of approvals.
Yes, I am getting workitem id using SAP_WAPI_CREATE_WORKLIST and filter. But I don't know how to get the leave details associated with this ID. Can you explain about the BOR you just mentioned how can I use that.
Please look at SAP_WAPI_GET_OBJECTS. This gets leave request object id from workflow container.
BTW, SAP has standard app - SAP HR Approval mobile app. Manager can approve leave request and time sheet.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.