We have a requirement to change the agent in shopping cart rejection. Currently when an admin places a shopping cart order on behalf of someone, the work flow is triggered for approval. And when the approver rejects it, the work item is returned to on-behalf-of person and not creator. We want to redirect the work item to SC creator instead of on-behalf-of.
Can anyone help us on this.
Please check the below link:
Also the SAP note 1045171.
The SAP note which you've mentioned suits our requirement. And we have implemented the required manual changes but still the work item is being sent to the on-behalf-of agent and not to the creator. And also the SAP note mentions that after implementing the maual changes, the method GET_DOCUMENT_OWNER will return the owner as creator instead of the on-behalf-of. But in our workflow we are using the method GET_DOCUMENT_RESPONSIBLE in custom BADI. Can you please suggest how to proceed further.
Please recheck if you have all code from note in place on your system. Once this note is in place the behavior will change and the WI will return to the creator.
I suggest you put some break points on your Badi and on the method GET_DOCUMENT_OWNER to check what is going on.
The custom BADI inside which we are calling the method GET_DOCUMENT_OWNER is triggered inside the work flow.As the work flow cannot be debugged(break points will not get triggered) we are not able to check what is going on.Can you please help.
Thanks & regards,
You mean on BRF?
Then, you must set log points inside your code to find the reason.
Here you find some info about log points:
Can you please check if the below config is in place for your workflow?