cancel
Showing results for 
Search instead for 
Did you mean: 

Approval preview goes wrong

Former Member
0 Kudos

Hi All,

We have an item based SC approval workflow.

BADI determines the five approvers. when SC is ordered.

1) First approver approves it.

Again BADI determines next approver

2) Second level approver approves it.

After second approval BADI determines no approver.

Workflow end with SC in released status.

But in approval preview in portal, it shows that SC is approved by five approvers.

I would like to quote the reply from SAP support consultant which I received when I raised an OSS message.

-


Dear Vithal,

The issue seems to be caused by your BADI implementation:

- when SC workflow was ordered, BADI was called and five approvers were

included:

0040000000 Philip Asante UK1000273

0040000001 James Winterman UK1500433

0040000003 Amit Makwana UK00096

0040000005 Rachel Hollier UK00079

0040000007 Deborah Livingstone UK0075

- in workflow, before first approval, BADI was called in task

"Determine next Approver" and BADI returned only one approver

1 1 USUK1000273 2 Philip Asante USUK1000273

(Philip Asante approved)

- before second approval, BADI was called again and return

2 1 USUK1500433 2 James Winterman USUK1500433

(James Winterman approved)

- next time BADI was called, no approver was returned.

Please check documentation included in help.sap.com, in IMG and note

731637. Notice that BADI must return always (except if a

redetermination must be performed) the same list. In your case I

think that BADI must return the same list independently when is

called. Actual Approval Index indicate which will be the new

approver.

-


I still can not see any issue with BADI implementation.

Can anybody help me out with this issue??

KR,

Vithalprasad

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186746
Active Contributor
0 Kudos

The answer from SAP should be clear.

You have to check the approval badi, since this is returning different values in different approval steps.

This is not the way SAP intended it and this could interfere with the approval preview, basically the approval preview also executes the badi, so it is imperative that for every step the approvers for all approval levels should remain the same for the first and the last step.

Kind regards, Rob Dielemans