cancel
Showing results for 
Search instead for 
Did you mean: 

Badi to over ride an agent with another in shopping cart rejection.

varunkumarkodali
Explorer
0 Kudos

Hi,

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.

Thanks,

Varun.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Varun,

Please check the below link:

http://wiki.sdn.sap.com/wiki/display/SRM/RejectedWInotgoingtotheSCCreatorincaseofbuyon+behalf.

Also the SAP note 1045171.

Thanks,

Anshu

varunkumarkodali
Explorer
0 Kudos

Hi Anshu,

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.

Thanks,

Varun.

Former Member
0 Kudos

Hi ,

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.

Cheers,

Melina

varunkumarkodali
Explorer
0 Kudos

Hi Melina,

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,

Varun kumar

Former Member
0 Kudos

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:

[http://help.sap.com/abapdocu_70/en/ABAPLOG-POINT.htm|http://help.sap.com/abapdocu_70/en/ABAPLOG-POINT.htm]

Thanks,

Melina

Former Member
0 Kudos

Hi Varun,

Can you please check if the below config is in place for your workflow?

http://wiki.sdn.sap.com/wiki/display/SRM/EnablingWIreturningtotherequestorwhendocumentisfullyrejected