on 2020 Aug 21 6:40 AM
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..
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.