Skip to Content
-1

SAP SRM 7 PO Reject mail notification

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

Add comment
10|10000 characters needed characters exceeded

11 Answers

  • Posted on Nov 20, 2019 at 04:59 PM

    Hello Vishal,

    solution is to debug to understand what is happening.

    Regards.

    Laurent.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2019 at 09:33 AM

    Dear Vishal Agrawal,

    Check the following documentation:

    https://wiki.scn.sap.com/wiki/x/PoU4EQ

    Best Regards,

    Gergely

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2019 at 12:36 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2019 at 03:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2019 at 01:31 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 14, 2019 at 06:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2019 at 07:37 PM

    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.

    sost.jpg


    sost.jpg (99.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 05, 2019 at 01:34 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 17, 2019 at 08:17 PM

    HI Laurent,

    As I mentioned above I was able to solve my problem with BBP_ALERTING.

    Regards,

    Vishal Agrawal

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2019 at 01:58 PM

    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

    Add comment
    10|10000 characters needed characters exceeded