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.