cancel
Showing results for 
Search instead for 
Did you mean: 

After Partial Rejection in WS14000133 system displays wrong approvers

Former Member
0 Kudos

Hello,

We are using a shopping cart header level approval (WS14000133), using BBP_WFL_APPROV_BADI

where we are building approvers based on cost center ownership.

Issue: partial approval/rejection is not getting the correct approvers list

For example:

If the shopping cart having two items, with two different cost centers.

Item1 is having a cost center: 1121011

Item1 is having a cost center: 1121012.

After ordering, when the requester seeu2019s the approval preview, we are getting the correct approver list. (at this particular point of time Work item id will be Initial )

We Build the approvers list , in such a way that based up on the cost centers so that each cost center has 2 levels of approval. So in the above scenario the approval preview will be displayed like this (when requester is ordering the cart):

Approvers index description

AAAA 00001 1121011-1st level

BBBB 00002 1121012-1st level

CCCC 00003 1121011-2nd level

DDDD 00004 1121012-2nd level

The problem we are facing is during partial approval/rejection by the approver.

When the approver partially approves/rejects the cart and saves, and requester accepts the changes-->the approval preview shows approvers who are not relevant to cost center of the particular item.

For example if the first approver rejects the 2nd item :

EX:

Item1 is having a cost center: 1121011 Approved

Item2 is having a cost center: 1121012. Rejected

The Expected output of the approvers list is

Approvers index description

AAAA 00001 1121011-ist level

CCCC 00003 1121011-2nd level

(Since approver rejected the item2, it should not get the approvers which are maintained for the cost centers of item 2)

That part we are able to achieving the by checking the Deduct Indicator for the particular item in the BBP_WFL_APPROV_BADI.

If 1st level approver approves item1 and rejects item2, we should not get the approvers which are maintained cost center as 1121012(since we are rejected the item2, which is having cost center as 1121012).

At this particular point of time Work item will get generated.

So its system is getting the approvers as initially assigned looping into approvers we got it from the BADI, based up on the actual approval index its populating below results , which are wrong .

Results coming now

Approvers index description

AAAA 00001 1121011-ist level

BBBB 00002 1121012-ist level

When we see in the BADI, we are getting the correct approvers list, where in the standard FM, these values are getting changes based up on the actual approval index.

The function module where the values are changing is BBP_WFL_DIN_APPR_CHECK (which will be calling inside the BBP_WFL_DIN_APPR_FINALLIST_GET )where are the changing the approvers list

BBP_WFL_DIN_APPR_CONTAINER_GET which is calling the approvers at the initial stage .

Can someone let us know why the approvers are getting changed? Is it anything to do with out BADI code or any bug which can be fixed by OSS notes?

Regards,

Srivatsan

Accepted Solutions (0)

Answers (1)

Answers (1)

martin_nooteboom
Active Contributor
0 Kudos

Please post a question only once. Don't post it in somebody else's thread or with a different user. This is only polluting the forum.

Regards,

Martin