2006 Oct 18 8:30 PM
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.
2006 Oct 25 4:22 PM
hoping that someone has an answer... ill reward lots of points if they help..
thanks
2006 Oct 25 4:40 PM
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.
2006 Oct 25 4:50 PM
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.
2006 Oct 25 8:07 PM
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.