Skip to Content

Error in Custom Approval process

Hello Community,

I followed the below blog for the approval process for my business object.

https://blogs.sap.com/2016/05/18/how-to-create-custom-approval-process-and-configure-it-in-cloud-solution/comment-page-1/#comment-425670

But I ended with an approval screen without approval Notification to approve and also if I click the Approve button, it throws the weird error.

Can anyone guide me what am I missing?

Thanks & Regards,

Senz

approval.png (111.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    May 29, 2018 at 02:37 AM

    Dear Senz Evo,

    After SubmitforApproval case is done and then if you want to approve, please check Home workcenter => Inbox (All Open Items) .

    In there select your task and then click action button. In that action button, you will see your custom approve function.

    Could you please check it?


    Best Regards,

    Ei

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2018 at 07:08 PM

    Hello Senz Evo,

    Just to give some more information on the reason why you are seeing the error:

    This issue happens when approval related actions, approve or reject or send back for revision, are configured on the OIF as buttons to carry out approval operations.

    Unfortunately, When a user approves or rejects or sends back for revision an instance, approval task instance id and the BO instance node ID has to be passed to the framework for them to check if there is a correct correlation between the instance the user is trying to approve and the task ID.

    Because of technical reasons in C4C systems, the Task instance ID is not passed to the framework (from UI framework) and the correlation check fails. This is why you see those errors occur when using the buttons on the OIF

    However, there is a work around for this. The BO instance can be approved directly from the Notifications UI. Please don't create and use approval related buttons except Submit and Withdraw on the UI as they are not supposed to work.

    For the other query about notifications, I am unable to see if this is solved or not.

    All the best!

    Andy Blankley

    Add comment
    10|10000 characters needed characters exceeded

  • May 28, 2018 at 01:22 AM

    Dear Senz,

    Could you please check if the approver have sufficient access rights ?

    Please make it sure the approver has this workcenter assigned to him. Also the approver can see the notifications under ManageMyArea workcenter (Open tasks) once he login into the system.

    Kindly check this.

    Regards

    Anant

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Anant,

      I checked the users both have the custom work center view assigned to their access rights and we couldn't see the tasks assigned to approval view

      Even If I tried to assign items from the business task management view, I couldn't see the tasks in approval view.

      In my case, Requester is a business user and Approver is PDI User. Will it cause any trouble.?

      Best Regards,

      Senz

      approval-view.png (83.3 kB)
      btm-view.png (124.3 kB)