cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with /SAPSRM/BD_WF_PROCESS_RESTART BADI

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Kudos