on 05-29-2012 9:24 AM
Hello experts,
We are into SRM 7.0 process controlled work flow using BRF. I do have confusion between restart and inquire.
For restart, Using /SAPSRM/IF_EX_WF_PROC_RESTART~VALIDATE_RESTART I am checking whether ev_restart = 'X' is not.
My level type is approval with completion and task description is SRM shopping cart completion.
Following is my program.
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
I_GUID = is_document-document_guid
I_WITH_ITEMDATA = 'X'
IMPORTING
E_HEADER = lwa_sc_header
TABLES
E_ITEM = lt_item_detail
.
Loop at lt_item_detail into lt_item_detail_line.
SELECT * from BBP_PDIGP into lt_PDIGP_master
Where GUID = lt_item_detail_line-GUID.
ENDSELECT.
IF ( lt_item_detail_line-QUANTITY <> lt_PDIGP_master-QUANTITY ) or ( lt_item_detail_line-value <> lt_pdigp_master-value ).lt_pdigp_master-DELIV_DATE ).
EV_RESTART = 'X'.
exit.
ELSE.
EV_RESTART = ''.
ENDIF.
ENDLOOP.
Now when SC is ordered, what should be done so that SC goes back to requester ?
I have following scenarios with results.
scenario 1---- approver edits the cart and approves it. result--SC goes to the next approver
scenario 2---- approver edits the cart and inquires. result--SC goes back to requester for acceptance of the decision and next level is valid (ideally it should wait till requester accepts the approver's decision)
scenario 3---- approver inquires the cart without editing. result--SC goes back to requester foracceptance of the decsion and next level is valid (ideally it should wait till requester accepts the approver's decision)
My questions
1. if approver edits the quantity or cost center workflow should restart. In that case approvers has to either reject or inquire--- right ? He should not approve the cart--- right ?
2. In above scenario 2 and 3 , SC goes back to requester for acceptance of the decision made by approver but next level is valid. If i want that level inactive till requester accepts the decision what are the necessary steps to be taken?
3. What would be the difference between back and forth logic ( inquire ) and restart workflow when in both cases requester has to accept the changes and then proceed. Please let me know in what scenario workflow should restart ? I believe if approver changes quantity, price or cost center and he clicks on either inquire/reject then restart should work. Should it be restarted even if approver edits quanitity, price, cost center and approves the cart ?
please share your ideas/suggestions.
Hi Abhijeet,
I have faced this issue, as per my understanding when approver select inquire it goes back to requestor but workflow does not restart and the WI goes to next level only when previous level get approved.
where in rejection after the requestor made some changes the workflow gets restart.
morever approval should always be completion approval to find this radio button.
regards
sahil p
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Sahil,
Thank you very much for your reply.Were you able to resolve the issue ? I think next approval level should not be valid till requester accepts the changes made by approver. I couldn't make it inactive. Is there any configuration change required or it is coding issue ? What did you do to resolve this ? Honestly, I couldn't figure out how my restart badi is going to work ? Thank you for your input.
Best regards.
Hi abhijeet,
I still remember it was not an issue kind of but some problem related with accept option.
regarding this when we approched SAP they have suggested to implement note 1045171.
you pls check this note it could be helpful to you.
I would like to say like to say next level would only be available for approve when requestor accept the changes and approval would approve after inquire, till then WI would not move to next level.
I am not sure about the deactivating any process level, every time whenever workflow triggers it will pass through all process levels which are assigned under schema tillauto approval.
need to explore on this.
regards
sahil p
Hi abhijeet,
I still remember it was not an issue kind of but some problem related with accept option.
regarding this when we approched SAP they have suggested to implement note 1045171.
you pls check this note it could be helpful to you.
I would like to say next level would only be available for approve when requestor accept the changes and approval should approve the WI after inquire, till then WI would not move to next level.
I am not sure about the deactivating any process level, according to std behaviour every time whenever workflow triggers it will pass through all process levels which are assigned under schema tillauto approval.
need to explore on this.
regards
sahil p
Sahil thank you very much for your reply.
I would like to say next level would only be available for approve when requestor accept the changes and approval should approve the WI after inquire, till then WI would not move to next level.
I also believe next level should be available for next level approver once requester accepts the decision. In my case this is not happening. Did you also face similar issue ? If yes is it configuration related issue or coding related issue? Sorry if I am asking too many question. But not too sure where is issue.
Best regards.
Thank you sahil for the reply.
After few changes (deactivatingcustomized restart badi), I can notice that if my approver inquires and clicks on submit, SC goes back to requester. This time i got next level status as valid but fortunately, that approval does not go to the corresponding approver. I mean at his(next level approver whic h status is valid--can be restarted) inbox the request for approval doesn't arrive.
So i can summerize that somehow I have to change that status only. I will explore about this.
Thank you for your help.
Best regards.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.