cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Alert email content

former_member183917
Active Contributor
0 Kudos

Hi All,

SRM: 701

Configured Alert Framework (for events: THRESHOLD_EXCEEDED, GOING_TO_EXPIRE) for Contract. Now email triggers based on the events (from pgm- BBP_CONTRACT_CHECK), is there any way to change the email content.

Any inputs are appreciable.

Vinoth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vinoth,

Please try implementation of BBP_OUTPUT_CHANGE_SF Badi.

Thanks,

Anshu

former_member183917
Active Contributor
0 Kudos

Thanks for reply Anshu.

It seems, if we need to change the smartform then we can use this BAdI.

Currenlty in Event Schema, i gave Event category- "Message" and i am receiving mail in SOST with std. mail content (with out any attachment). I need to modify this std. content. So pls provide your inputs.

Regards, Vinoth

Former Member
0 Kudos

Hello Vinoth,

This is a configuration task:

1. go into ALRTCATDEF

2. Choose SRM Alerts (dbl click)

3. Choose SRM_Contract and copy it into z_srm_con

4. Go into Long and SHort text tab for newly created alert category

5. put in your text in Title and Long text fields. Save.

6. Go into SPRO -> SRM Server-> Cross-Application Basic Settings >Event and Event Schema for Alert Management >Define Event Schema . Choose Purchasing contract.

7. Choose the event schema from contract txn type (possibly it is CTRD)

8. Copcy 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.

Let me know if you need more info.

Thanks,

Sushil.

former_member183917
Active Contributor
0 Kudos

Thank you Sushil.

Can you tell me, how to add additional dynamic data to the email body text. Say in my custom text i need to add Supplier number (Contract number i can get from exisiting container).

Do i need to add few more container elements and if i add containers, how the value will get populated to this containers?

Regards, Vinoth

Former Member
0 Kudos

For adding dynamic data you will need to insert new container objects.

I have not tried adding new container objects. But there is an option to add new container objects. Try adding bustype BUS2000113 for contract and include it in your message text.

Let me know if it works.

If this doesnot work, you may have to implement BBP_ALERTING Badi for your case.

Thanks,

Sushil.

former_member183917
Active Contributor
0 Kudos

Hi Sushil,

If we select Message as output (in event category), then by default will the mail has smartform as attachment?

Regards,Vinoth

Former Member
0 Kudos

Hello Vinoth,

Not in our systems.

Do you have smartforms as attachments in your system?

Thanks

Sushil.

former_member183917
Active Contributor
0 Kudos

Hi Sushil,

It was other issue, i messed up.

In my case, need to send dynamic text with conditions. It seems i cannot maintain conditions to check and pickup the correct text.

Now i am using Task as output type (not required to have workflow) and created task, configyred events and atatched a custom class that will send mail based on the conditions.

Thanks Sushil for your support and help

Vinoth

rajesh_tummala5
Explorer
0 Kudos

Hi Sushil,

We have a similar requirement where an alert is generated when a shopping cart is rejected through sourcing cockpit, we would like to have Shopping cart number and buyer on the alert email. If i add container elements in ALRTCATDEF for SRM_SOCO_COMPLETE, would it be sufficient or i will have to supply values to these container elements from other places.

Also i looked at your other option of implementing BBP_ALERTING badi but not sure which method will have an option for me to enter the email subject and body. Can you please provide me more insight on this if you have done it earlier?

Thanks in advance,

Rajesh.

Answers (0)