cancel
Showing results for 
Search instead for 
Did you mean: 

Standard Workflow 18900044 is not getting triggered

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Use FM SAP_WAPI_CREATE_EVENT to trigger the event manually and see if it starts your workflow.

-Muktar

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Ritwik,

Turn on the trace and submit leave request, you will atleast get to know if your event is getting triggered.

Check this link...

Thanks,

Muktar

Former Member
0 Kudos

Hi Muktar,

I have already activated workflow trace in SWELS but when i run the entire process and check in transaction SWEL no event has been triggered.

Regards,

Ritwik