Skip to Content

Fiori Custom Workflow PO Approval Reject Error - Action execution failed

We are trying to use our Custom Workflow to implement PO Approval in Fiori. We do not plan to use the Inbox in Fiori yet.

We followed the instructions to add the Workflow task for PO Release in SPRO. We implemented logic to execute Work Items in BAdI GBAPP_APV_PO_RDP Change_Set_Decision. We added logic when IV_DECISION is '0002' for REJECTED. We have a custom popup to capture the rejection text. This is where it is failing with an error "Work item is reserved for a different agent".

We tried to follow the instructions to get our custom workflow to work. We do utilize _WI_OBJECT_ID in our custom workflow and it is in our task for PO Release Decision.

We coded the different Task IDs in the BAdI for CHANGE_SET_DECISION but would prefer not to hardcode the Tasks.

In OSS 1958954 - it recommends to implement background workflow steps for update a purchase order after approval and for setting a corresponding release code. It also recommends the approval text should be available in the background step. Our tasks for approval do not specify background. How can we set up the background workflow steps?

The workflow will work now for multiple approvals for 1 Purchase Order as indicated in the release strategy. But the workflow does not work when we reject.

We would appreciate any suggestions to get our custom workflow to work in Fiori. Thank so much!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 02, 2017 at 10:01 AM


    Can you go to PFTC, type in the dialog task id and then go to additional data-->agent assignment-->maintain

    Are there restrictions here which prevents the assigned agent from executing it?

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

    • We assign the agent via code in our business object. We have a complicated org and retrieve the agent via our code. Unfortunately, we have done a lot customization in our workflow. For now the workflow is working in the BADI. We have added code to initiate the different Tasks, and it seems to be working. I was just wondering if there was a simplier way to use our customized workflow.

      I know it is common practice to use the Fiori Inbox. But we are not ready to do this yet.

      Thank you for your help.