Skip to Content
0

Leave Request - workflow with Multiple parallel approvers

Feb 05 at 01:16 PM

79

avatar image
Former Member

Dear all,
about leave request, in our scenario(ECC 7.4 EHP7.0) we have different approvers at the same level that can approve or reject a leave request. When a leave request is generated and employee send it to approve, we need to determine at runtime the list of apporvers and send an approval task for each approvers. Then, the first approver excute task, the workflow can continue and workitem must disappear for the inbox of the other approvers.

Reading the sap documentation and refering to template 21500001 , by spro trx, seems it is possible to determinate multiple task for approve(multiple workitem) implementing badi PT_ABS_REQ in method
GET_MULTIPLE_APPROVER.

So we have implemented this method in order to find all approvers. But, how we must set the sequence field in order to set the same level?
We have tried with sequential value, with the same value or blank but the workflow container(Agent_001-Agent) was populated with a single agent, the first entered into badi.

The main question is, is it possible to implement this scenario implementing a sap standard badi or not?

In case of affermative, what are the steps to do to do it?

Thank you all

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member
Feb 26 at 02:41 PM
0

Hi

PT_ABS_REQ in method GET_MULTIPLE_APPROVER is only for approving one after the other.

Like "manager" and than "manager of the manger".

In parallel is currently not possible in SAP standard

Share
10 |10000 characters needed characters left characters exceeded
Ankit Maskara
Mar 14 at 06:57 AM
0

Hi Mattia,

1. The BADI and method you have implemented is only for leave request but not for workflow. You need to implement enhancement spot - PT_GEN_REQ.

2. In method check_if_actor_absent, set the absent flag as true.

3. Then implement get_actor_substitutes and pass the list of approvers.

4. For all other methods which are not redefined, do remember to invoke call to the standard methods.

Reg

Share
10 |10000 characters needed characters left characters exceeded