on 2015 Aug 04 2:58 PM
Hi All, We are on SRM 7 EHP3 classic scenario and we have implemented process controlled workflow. Our requirement is to restart the approver determination when the approver changes the price using completion workflow. Hence we have implemented /SAPSRM/BD_WF_PROCESS_RESTART BADI and put the below code.
*-----------------------------------------------------------------------------*
* Get the SC Header & Item details based on SC GUID
*-----------------------------------------------------------------------------*
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING i_guid = is_document-document_guid
i_with_itemdata = c_x
IMPORTING e_header = w_header
TABLES e_item = i_item
e_limit = i_limit.
SELECT SINGLE total_value FROM bbp_pdhgp INTO lv_tvalue WHERE guid = is_document-document_guid.
CHECK sy-subrc = 0.
IF lv_tvalue NE w_header-total_value.
lv_doc_upd = abap_true.
ENDIF.
*-----------------------------------------------------------------------------*
ev_restart = lv_doc_upd.
*-----------------------------------------------------------------------------*
Every thing works fine when the approver edit and approver the cart immediately. Problem is if the approver edit and save the cart, new approver determination take place and the same can be seen in approval process overview. But when the approvers opens the saved cart using show my task and then try to approve, then it's not working as above IF condition will fail. Anyone come across this issue and do you have a solution for the same? Regards, Sasi
Request clarification before answering.
Hello Sasi,
check below KBA:
1919803 - No restart after approver changes then saves cart before approving it
Regards.
Laurent.
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.