cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Contract Alert Not Working.

Former Member
0 Kudos

Experts,

Need urgent help.

We want to implement contract alert and with email whenever contract is newly released or released again (with some changes).

  1. 1. Go into ALRTCATDEF
  2. 2. Choose SRM Alerts (dbl click)
  3. 3. Choose SRM_Contract and copy it into z*
  4. 4. Go into Long and SHort text tab for newly created alert
    category
  5. 5. put in your text in Title and Long text fields. Save.
  6. 6. Go into SPRO -> SRM Server-> Cross-Application Basic
    Settings >Event and Event Schema for Alert Management >Define Event
    Schema . Choose Purchasing contract.
  7. 7. Choose the event schema from contract txn type (possibly it
    is CTRD)
  8. 8. Copy the events and in the subevent category, enter the z
    alert ategory you created above. In Event category give Message (low priority)
    which will trigger the email.

  

BAdi-  BBP_OUTPUT_CHANGE_SF

From pgm- BBP_CONTRACT_CHECK

  

Can any one help to know the steps in detail or any step we missed ?

Or how we can figure out using debugging ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Experts,

Can anyone help to know the same ?

Former Member
0 Kudos

Also if i does using change debug (runtime) changing RMS_EVENT to RELEASED_AGAIN in BAdi it gets sucessfull.

Now the question is even if i am releasing contract again and again event is not getting triggered i.e RELEASED_AGAIN

Please help on the same.

vinita_kasliwal
Active Contributor
0 Kudos

Hi Jeetendra

For contract custom alert .. can I suggest you to try a different approach ..

You basically need an email to be triggered when the contract is released ..

So you make your code in BBP_DOC_SAVE BADI and you put a condition only when the status is released .. so it will send an email ..

Its more easy as you can control who all gets the email .. you can also control the text of the email ..

+ you can use debugging to figure out something not going in the right direction..

Try that and see if it works?

Regards

Vinita

Former Member
0 Kudos

Vinita,

Thanks for your suggesstion.

Now mails are getting triggered as per config.

Where event is raised "READY_FOR_RELEASE" and catch by Receiver Type        SRM_PROCESS_START

Receiver Method      /SAPSRM/CL_WF_PROCES

RFC Destination      WORKFLOW_LOCAL_100

Still i want to go with config setting, if you any doc for the same that will be greate help.