on 2019 May 24 8:41 PM
Hi,
I have a requirement where when a PO or Contract is rejected changer must get a mail and not creator. So if A creates PO and B rejects it then A should get a mail but when C changes the same PO and sends it to B and B rejects it then only C should get a mail and not A. I tried solving this through
SPRO->SAP Implementation Guide->SAP Supplier Relationship Management->SRM Server->Cross-Application Basic Settings->Business Workflow->Process-Controlled Workflow->Business Process Configuration->Define Recipient of Notifications Create a contract
It does not help or maybe am not doing it right. Please guide.
Regards,
Vishal Agrawal
Request clarification before answering.
Hello Vishal,
solution is to debug to understand what is happening.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lauret,
You are right I was able to solve this by using a check statement at the beginning of my code. If wf-batch dont go in the code. So no extra mails of wf-batch were created.
Regards,
Vishal Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
An update on this one. Everything is working except for every rejection 4 mails are being sent. 1 mail is from approver to the person who last changed the doc. 2 mails from wf-batch to person who last changed the doc and 1 mail from wf-batch to wf-batch. Please do let me know if you have solution for this problem.
Regards,
Vishal Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Laurent,
As I mentioned above I was able to solve my problem with BBP_ALERTING.
Regards,
Vishal Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vishal,
put a break-point in method EXECUTE of class CL_BBP_ACTION_NOTIFICATION_NWF and follow this wiki (already given by Gergely):
How to find the class for debugging notifications and deadline-monitoring events
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI All,
I have moved a bit in this ticket. Last I updated here was when debugger wasn't stopping at 'IF_EX_BBP_ALERTING_BADI~BBP_EVENTS_DET_RECIPIENTS'. Apparently if you add event logic in IF_EX_BBP_ALERTING_BADI~BBP_EVENTS_ANALYZE
which is
LS_EVENT-OBJECT_KEY = IV_OBJECT_GUID.
LS_EVENT-OBJECT_TYPE = IV_OBJECT_TYPE.
LS_EVENT-EVENT = 'APPROVAL_PROCESS_DOC_REJECTED'.
LS_EVENT-EVENT_CATEG = BBPEX_C_EV_CATEG_NOTIF.
LS_EVENT-EVENT_SUB_CATEG = 'APPROVAL_RESULT_NOTIFIC_NEW'.
APPEND LS_EVENT TO CT_EVENTS.
Then It stops in IF_EX_BBP_ALERTING_BADI~BBP_EVENTS_DET_RECIPIENTS and there you can add the recipient and mail goes to that recipient. I was able to do this with the help of SAP. But I have stumbled upon a new new issue. I am not a Workflow person hence am facing this problem maybe. The problem is that extra mails are being sent as wf-batch to wf-batch. Am sharing a pic of the problem you can figure out which is the right mail and which are extras. Do let me know if you know the solution for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent,
I had raised this request with SAP but they have not replied so far. They asked me to add/change mail recipient in BADI 'BBP_ALERTING' but debugger doesnt stop at the method 'IF_EX_BBP_ALERTING_BADI~BBP_EVENTS_DET_RECIPIENTS'. I will discuss your solution with the functional team. Thanks a lot for your time.
Regards,
Vishal Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vishal,
SRM standard cannot cover your request as C does not make part of initial workflow (neither owner of document, nor approver, nor reviewer).
A workaround could be possible if C makes part of Team Purchasing.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
when i set up for reviewer and reject the PO, sost doesnt send any mail. Is reviewer the choice that I should make? Is reviewer the last person who made changes?? I cant read any explanation on the 4 types of roles. contact person, approver, reviewer and Purchaser team. Can anybody please tell me the difference??
Regards,
Vishal Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gergely... I did stumble upon this page while googling up. Doesn't give any idea about mail id changes anywhere... am very new to SRM so maybe am not able to see the obvious. I sent this link to my functional person he told me nothing in this page can solve our problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Vishal Agrawal,
Check the following documentation:
https://wiki.scn.sap.com/wiki/x/PoU4EQ
Best Regards,
Gergely
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.