cancel
Showing results for 
Search instead for 
Did you mean: 

Determining dynamic approval levels from Z table

Former Member
0 Kudos

Hi experts ,

Considering application for ESS leave approval , i am using a custom table to store all the approvers .

The approval levels are not fixed ( dynamic ) , which i have to determine at runtime from the z table .

The Approval level entries in the Z table is not fixed , that can be extended or reduced from one level to N levels and vice versa.

So i need some suggestions for this requirement from you experts .

Regards

Wasim

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186746
Active Contributor
0 Kudos

Hi,

what is the functional requirement for making it N-level.

I agree with Mike that there are better ways, one is using the managers of an organizational unit and use attributes (for example a custom approval amount ) on the position or the organizational unit to determine if another approver is needed. Then you create a method to retrieve the needed approvers.

In the workflow you increment the approval level if it was granted or decrement it when it wasn't approved and loop till the retrieved attribute of the current approver, in my example an amount, is higher or equal than the amount needed for the request, or loop till the request was denied.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Thanks for replying ,

Yah i agree we should use the Org Str , but as per the cleint they want to use the Z table .

What i actually want is ,

I have created a travel request workflow which works for only 2 levels approval process , coz only 2 levels approvals are mentained in the Ztable .

What my customer wants , if they will maintain another 2 levels in the z table means total it will be 4 levels

of approval , then how my workflow will work for the added 2 levels means from 2 levels to 4 levels .

I think now it is much more clear for you guys .

Regards

Wasim

former_member186746
Active Contributor
0 Kudos

I sort of explained one way of modelling an N-level approval workflow

I shall try to clarify it even more:

The approval table

Level | user

1 | A

2 | B

3 | C

3 | D

4 | E

note that level 3 has 2 agents.

in the workflow you use a loop until a certain condition is met (either last level approved, or request was totally rejected)

in the loop you increment the level, retrieve the approvers for that level and send the request to them. When this is approved, you either increment or decrement the approval level.

You can also check if your system has a SAP standard solution for N-level approval, in SRM for example this one exists.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Thanks ,

i will definitely try this . I think it should work .....

No as per my knowledge in standard there is no such workflow exists which are gettng agent from any table entries .

Thanks a lot for your reply .... I may disturb you latter if i will face any probelm .

Regadrs

Wasim

pokrakam
Active Contributor
0 Kudos

Hello Wasim,

I'm not sure about your question, if you have a problem with this then you do not tell us what the problem is.

If you are only looking for input/suggestions then my suggestion would be to forget Z-tables. They really should only be used as a last resort, and even then you can usually find a better way to do it if you look hard enough.

Cheers,

Mike