Skip to Content
0
Apr 27, 2021 at 09:06 PM

Flexible Workflow for PR - Automatic Overall Release of PR through BAdI

695 Views

I have a flexible workflow whose Agent Determination is thru BAdI.

Most of the logic added in IF_MMPUR_WORKFLOW_AGENTS_V2~GET_APPROVERS would assign an approver, but I have a certain condition that wouldn't need any approver and must automatically overall release the PR.

I initially thought not adding anyone to the approverlist would mean automatic release (no approver = automatic approved) but this isn't the case -- it's just throwing an error of no agent determined.

How can I achieve this requirement?