cancel
Showing results for 
Search instead for 
Did you mean: 

Approval Status not updated for shopping cart in "change mode"

Former Member
0 Kudos

We're running SRM 4.0

When a SC is changed, the approval status is not updated during approval preview (the approval status is determined from the values in the saved SC)

Note: I have found that during SC creation, the approval status is automatically updated if SC changes (the approval status is determined by dynamic values)

It would be great to know which function modules/programs/BADIs that are executed when "approval preview" is activated or if it is possible to solve this issue with config?

The goal is to get the same functionality of approval status during SC change as during SC creation.

Best regards,

Teodor

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The approval status is based on the workflow instead of the latest information in the shopping cart.

This is fixed by clearing lv_start_workitem_id before

FM BBP_PDH_WFL_APPROVER_GET is called from

FM BBP_PDH_WFL_APPROVAL_SIMULATE

Note: lv_start_workitem_id should only be cleared when in SC change mode! (otherwise approval preview in display mode is not displayed correctly)

Edited by: Teodor Berglund on Dec 22, 2007 3:04 PM

Former Member
0 Kudos

Thanks for sharing this useful information.. )

Regards

- Atul

Former Member
0 Kudos

It seems that the function BBP_PD_SC_GETDETAIL could do the trick?

Is it true that it can access the new SC information that hasn't yet been saved? (i.e. exactly what we need to do here...)