on 11-26-2007 1:52 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.