Skip to Content

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

  • Follow
  • Get RSS Feed

7 Answers

  • May 27 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

  • May 28 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

  • May 28 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

  • Jun 12 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

  • Jun 14 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

  • Aug 02 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

  • Aug 05 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