cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Custom Approval process

former_member187312
Participant
0 Kudos

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-sol...

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

former_member187312
Participant
0 Kudos

Dear Ei,

I tried but unable to find the task.

Best Regards,

Senz

0 Kudos

Dear Senz,

The tasks under Managing My Area workcenter is only concerned with StandardApproval Process.

If your approval process is custom approval process, then you should check Inbox of Home WorkCenter.

Best Regards,

Ei

former_member187312
Participant

Thanks, Ei, It works! 🙂

Best Regards,

Senz

Answers (2)

Answers (2)

andy_blankley
Participant

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

anant_acharya
Advisor
Advisor
0 Kudos

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

former_member187312
Participant
0 Kudos

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