cancel
Showing results for 
Search instead for 
Did you mean: 

How to find following approval agents in a Workflow

Former Member
0 Kudos

Hello,

We are using SRM 5.5 - clasic escenario.

SC are approved by workflows.

In table SWIWIOBJCT I can find users and the times of approval steps when they have been completed.

However the table does not show who will be the next approval agents.

How can I find these following approval agents?

Is there a table, a function or  transactions to consult this information.

Our workflows are based on positions in the Organizational Structure.

Thanks for any help.

Aart

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aart,

You can use FM BBP_WFL_DIN_APPR_CONTAINER_GET in which you have to enter workflow ID of Shopping cart. This FM gives details of all the approvals even if they have not approved the cart which you are facing issue.

Hope this helps.

Thank you
Ritesh

Former Member
0 Kudos

Thanks Ritesh,

I

Upon entering the FM, The folowing import parameters appear:

IV_MAIN_WORKITEM_ID   (here I put the Main Workitem ID with leading zeros (example. 000000095918)

But what do I have te enter in the next two inputparameters? What do they mean?

IV_IS_VIEW_ITEM_LEVEL

IV_READ_FROM_DB

I cant get the approval agents to appear as the putput results.

Thanks for any help.

Aart

Former Member
0 Kudos

Hi Aart,

You really do not need to enter anything in next two parameters. Just input workflow ID and thats it which will give you all agents of the workflow.

Hope this helps. Please reward points.

Thank you

Ritesh

Former Member
0 Kudos

Hi Ritesh,

Still cant get the approval agents.

I attach screenshots of BBP_PD (woth workitem ID) and the result of executing the FM.

something I must be doing wrong.

Or might be that we are using Workflows Zeta instead of the standard WF?

Thanks.

Aart

Former Member
0 Kudos

Hi Aart,

That is very strange behavior. It looks like your custom workflow is not filling the container of the remaining approvals as well. As i see it called 4 level workflow but for level 3 and level 4 agents are not determined in your workflow. Please see screen shot below, we are using n-step BADI workflow where our agents are determined at time of ordering for all levels. I would recommend you to check workflow if it behaved as per your business requirement or not?

Hope this helps.

Thank you

Ritesh

Former Member
0 Kudos

Thanks Ritesh,

I¨ll have to analyze the WF behaviour in situ with a specialist in the topic over here.

Aart

Former Member
0 Kudos

Please use tcode SWIA and pass the WI and switch to workflow logs . here you should be able to see the possible agents for each process step.

Former Member
0 Kudos

Hi,

Finaly to solve the problem we created a table in which we put for every workflow step the function module which determined for that particular step the approval agent.

Our workflows are all "Z" and also de function modules were engineered.

That why the standard solution did not work.

Thanks for the replies.

Aart

Answers (1)

Answers (1)

former_member183069
Active Participant
0 Kudos

Hi Aart,

Next Approval agent  may vary depends on various condition,

It will determined at runtime only, so I think It we will not get that in the table .

By debugging or in SWI1 tcode only you can see the possible agents.

check it.