cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in badi /SAPSRM/BD_WF_PROCESS_RESTART in SRM 7.0 PC workflow

former_member578547
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member578547
Participant
0 Kudos

Hi Saravanan,

Thank you for your input.

But our requirement is, if Requestor clicks 'EDIT' button, though he change the shopping cart item or not , it has to RESTART the workflow

Can you suggest me to obtain this .

Thanks.

Balaji.T.

Former Member
0 Kudos

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