Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically Email smartform to multiple recipients

Former Member
0 Likes
1,029

Here's our scenario. We wish to email a delivery notification smartform to the customer contact selected when the order is placed. This will be a partner function on the order itself. We also wish to send a copy of the notice to the salesperson, which will be the person who created the order.

We have the ABAP code to pull the email addresses for both people already.

By default, the sender of the email will be the person who PGI's the delivery. Also by default, the recipient will be the email address stored in the customer master of the shipto. We wish to override the recipient and sender addresses from within the smartform if possible. We'd like to avoid any user exits.

Is this possible??

Thanks for any guidance.

Here's our scenario. We wish to email a delivery notification smartform to the customer contact selected when the order is placed. This will be a partner function on the order itself. We also wish to send a copy of the notice to the salesperson, which will be the person who created the order.

We have the ABAP code to pull the email addresses for both people already.

By default, the sender of the email will be the person who PGI's the delivery. Also by default, the recipient will be the email address stored in the customer master of the shipto. We wish to override the recipient and sender addresses from within the smartform if possible. We'd like to avoid any user exits.

Is this possible??

Thanks for any guidance.

4 REPLIES 4
Read only

Former Member
0 Likes
765

hoping that someone has an answer... ill reward lots of points if they help..

thanks

Read only

Former Member
0 Likes
765

Hi James,

How are you moving these forms to the corresponding mail address?? I think, you may be using function module, in that you are giving one mail id. You can use same function module again with other id.

I think, I understood ur requirement.

regards,

Chandra.

Note: Please reward if helpful.

Read only

0 Likes
765

Hi chandra, thanks for your response.

here's what I'm thinking of doing now.

Within the output configuration, you specify the following 3 fields:

Program : RLE_DELNOTE

FORM Routine : ENTRY

Form : our smartform

out of the box with no custmization, SAP will pull the email from the shipto master and email the form to that address. I'm thinking that we can modify the RLE_DELNOTE form (make a copy first) to change the email address to what we want and then email the form multiple times.

We'd prefer to do it within the smartform code itself however.

Read only

0 Likes
765

you can pass your mail_recipient to 'OPEN_FORM' function module.

OR you can try to define your output type as print output, send to a dummy printer. Then you can use in your copy of RLE_DELNOTE program FM like CONVERT_OTF to convert your output to PDF for example. Then you can use FM to send this file to any e-mail address.