on 06-28-2011 5:14 AM
Hey Workflow experts,
We have a scenario where a user will aplly for leave encashment from portal and for this I have configured the standard workflow 18900044 in the system.
I have also put in some validations in the implementation of BADI HRPBSIN_GET_LE_APPRV. In my scenarion there are supposed to be 2 levels of approvals i.e. from employee to his superior and then to HR.
I have added the triggering event to this workflow as Class - CL_HRPBSIN_HANDLE_LEREQ_WF and event CALL_WORKFLOW. I have also changed the task to General Task.
However, once i have executed the leave encashment scenarion on portal it does stop at the BADI (I have set a break-point there) but when i check in transaction SWI1 the workflow is not triggered. Is there something else i am supposed to do.
I would appreciate any help to this problem.
Thanks,
Ritwik
Use FM SAP_WAPI_CREATE_EVENT to trigger the event manually and see if it starts your workflow.
-Muktar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muktar,
Thanks for the reply, but i think the FM SAP_WAPI_CREATE_EVENT can only be used in the case of a business object. In my case the triggering event to the workflow is a Class and the corresponding method as i have mentioned above.
And the workflow 18900044 is a standard workflow provided by SAP for leave encashment which gets triggered (or rather is supposed to get triggered) by the function module SAP_WAPI_START_WORKFLOW in the include LHRPBSINLEAVE_ENCASH_RFC01.
However, i have discovered that this FM fails and returns a message saying 'You are not one of the possible agents of task 'WS18900044'. Like i said i have already set the workflow task as a General Task. This is why i am a bit confised regarding the problem.
Regards,
Ritwik
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.