cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Shopping cart workflow restart problem

Former Member
0 Kudos
288

Hello People,

We have implemented workflow for SRM shopping cart line item approval. We have created a custom workflow which includes the standard workflow template WS14500014 & WS14500013 as sub workflow steps. We have implemented the standard BADI to determine approvers.

Suppose that workflow is waiting for approval from the second approval. In between the requester changes the shopping cart. Now we want the workflow to re-trigger from the beginning. However, it is not happening so. It is not including the first approver. It is sending to the second approver again.

I debugged the approver BADI, the APPROVAL_INDEX value is still the same(0000000002). I checked the event which triggers after change. It is RESTARTAPPROVALSTEP. It is just restarting the approval from the second approval. However, the requirement is to re-trigger the workflow from the beginning.

I have checked all the configs and code and hit a dead end now. Can anyone please guide me in the right direction. I am new to SRM.

Should i look for a config, which triggers the change event which is not the one that i mentioned

or should I check the workflow again.

Kindly suggest if i need to change anything in the design of the workflow.

Any help would be greatly appreciated and points will be rewarded accordingly.

Thanks & Regards,

Rituraj Shrivastava

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rituraj,

Apologies for the delayed reply. Was busy on other issues.

We did some R&D and found that workflow triggers from the beginning if I EDIT the cart instead of adjusting. Edit is triggered in case if the process level type is maintained as Approval only.

If the process level is maintained as Approval with completion, the requester will not get the EDIT button in the rejected SC. Here, the requester will only be adjusting the cart (as per approver's recommendations) and hence workflow will not be triggered from the beginning. The cart comes back to the manager who rejected the cart.

You can start with checking the level types maintained within your process level.

We compared this with another system and concluded this. I will keep you posted if I find something else. You may also let me know if you find anything different.
Regards,

PD.

Former Member
0 Kudos

Hi Rituraj,

I am facing a similar issue. Were you able to resolve this ?

If so, it'd be great if you could share your findings,
Appreciated in advance.
PD.

Former Member
0 Kudos

Hello Priyadarshan,

I still haven't found any solution for this. We have raised an OSS and waiting for SAP's response.

However, SAP people say that this is the standard behavior. The Index will not be reset as the event that i have mentioned only re-triggers the approval step, not the entire approval process. But still we are discussing with them. I might have to handle this issue through some custom changes in the workflow. But lets hope some one, who has already encountered this problem and fixed it, might reply over this post. Let me know in case you find any solution for this. I will do the same.

Thanks & Regards,

Rituraj Shrivastava

Former Member
0 Kudos

Thanks for the quick reply, Rituraj.

In my case, the approval gets retriggered from the beginning for last 2 process levels, whereas for the other preceding levels the workflow triggers from the step where the change/adjust was made. I want the approval to retrigger right from the beginning for all process levels.
We have to find a solution to this issue within the next few days & I will keep you posted with my learnings.
Thanks again.
PD.

Former Member
0 Kudos

Hello Priyadarshan,

Can you please tell me which event triggers on change at the time of last 2 approvals. Does the Approver_index variable gets reset when sm1 changes at this time.

Thanks & Regards,

Rituraj Shrivastava