cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to enable Auto release via 'MMPUR_WORKFLOW_AGENTS_V2'

Expert
Active Contributor
0 Kudos
1,317

Hi,  We have a requirement to pull agents by calling an external application in the BADI 'MMPUR_WORKFLOW_AGENTS_V2'.  As per process, we can get 1-3 levels from external system (depending on how many levels does a PO would need). So, we configured 3 levels in step sequence in the 'Manage workflows app for purchase orders' and set recipients as 'Agent determination by BADI'  Now, in case my PO requires only 1 level of approval. During the 2nd badi call(as we configured 3 levels in steps sequence), BADI returns no agent and work item goes into error saying 'No agent found' . But here we want the work item to be auto completed.  So, we are looking for a way to set the task to 'complete or auto released' from the BADI or any other means when no agent is determined for particular level.  Any hints or ideas to handle this case would be appreciated.  Thanks..

Accepted Solutions (1)

Accepted Solutions (1)

Prasobh
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Team,

When we implement the BADI 'MMPUR_WORKFLOW_AGENTS_V2' that means there should be an agent to process the workitems. Built in exception ('No agent found') will raise when there are no agents. You could try making this step as optional and add one more step with "automatic release". So that workflow never go in error status rather if there are no agents it can go to next step and complete it.

Thanks

Prasobh

lokesh2
Advisor
Advisor
0 Kudos

We helped you to accept the answer, since there were no updates after 7 days.

You can unaccept it anytime if the answer provided was not helpful enough and you have further questions.

soerjopambudi
Newcomer
0 Kudos
i've try to used MMPUR_WORKFLOW_AGENTS_V2 for Service Entry Sheets. Already put the filter correctly but somehow it doesn't work. i put external breakpoint with SAP_WRFT but nothing happen

Answers (0)