on 07-28-2011 5:09 PM
Hi Friends,
I developed process controlled workflow for shopping cart in SRM 7.0.
In this BADI : /SAPSRM/BD_WF_PROCESS_RESTART , I am writing below code, it is failing if Initiator click EDIT button and he will not do any changes about items.
Can you anybody suggest best code for this BADI.
DATA : l_header TYPE bbp_pds_sc_header_d.
*Getting Header details so that we can find difference of values
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
i_guid = is_document-document_guid
IMPORTING
e_header = l_header.
IF l_header-usr_budget_value <> l_header-total_value.
ev_restart = 'X'.
ENDIF.
It is appreciated , if you respond as soon as possible.
Thanks.
Balaji.T.
Hi,
Requesor is not able to edit the SC only after you implemented the below code? try to deactivate the Badi and test this scenario.. by looking the code, i feel it's nothing to do with EDIT option.. as long as the SC is awaiting for approval, the requestor should be able to recall the SC and edit and resumbit.. this Badi is given to us to handle to restart WF process..
Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am answering this question under assumption that requestor tries to EDIT a completed SC...
In this case if a requestor click on EDIT button by standard workflow will pull back the SC from current approval process and allow the requestor to edit the SC (Add, Remove or Change Item) and workflow will get restarted...
Please check this cycle first and let me knowu2026
Thanks!!
Bharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.