cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically send e-mail function or object

Former Member
0 Kudos

Hy! I need a function or an method of an specific object to automatically send e-mails.

Thanx

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The way we created automatic e-mails are by using actions. In the action, you can call a method. We created a method of our own which basically contains the following steps:

  • Determine order data (FM CRM_ORDER_READ) --> determines you BP's

  • Determine BP addressdata (FM BUPA_ADDRESSES_GET + BUPA_ADDRESS_GET_DETAIL) --> determines the e-mail address

Then we call an self-defined FM that composes the mail and sends it afterwards:

  • prepare the e-mail text

  • set the e-mail properties

  • generate the e-mail (FM SO_NEW_DOCUMENT_SEND_API1)

  • SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN

Of course, there are also other ways to do this, but this solution we created gives us the flexibility to also sent mass-mails from one transaction within one action.

Hope you can use this...

Former Member
0 Kudos

I want to design a system, which automatically send e-mails when occurs specific transaction.

Tanx

Former Member
0 Kudos

Hi,

It all depends when you want to do this. Have you investigate actions? Suggest reading up the IMG doco and help about actions to send emails if related to transactions for example.

Cheers

Andrew