on 2011 Sep 26 2:04 PM
Hi all!
We are routing external requisitions through approval workflow using the DOC_CHANGE_BADI and some additional tricks. This approach is working quite well, with the exception of some SC details that need to be updated. In particular, we need to exchange the default RFC system user (who will appear as SC creator) with the user who created the requisition in our ECC environment (given he or she exists in SRM). Naturally, this is because of the fact that when a cart is rejected, the RFC user will receive the work item instead of the true creator.
Does anyone know of a good way of achieving this? Is there a function module that can update the SC creator, or some BAdI we haven't considered?
Thanks,
Sangeeta
Request clarification before answering.
Hi,
I have done this requirement in many of my customers, Yes , the creator of the SC will always be the RFC user. But the WF is in the SRM is not send the workitem back the creator. if you implement the code as i suggest. technically the partner function 16 is leading object here. when i create a SC, the creator and partner function 16 and 20 will be assigned to me. but when I create the SC for some one ( Buy on Behalf of ) the creator is still me , but the partner function 16 & 20 will be the person who I create for.
So you have to use the same concept here. change the partner function 16 and 20 to the person who you want through change badi. even though the SC creator is RFC user, when the WF is reject by the approver, the workitem will send to the partner function 16 person not the RFC user.
Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.