on 02-01-2016 10:11 PM
Hello,
We have Customer ABC as sold-to, ship-to, bill-to, and payer.
I understand the configuration necessary to setup automatic emailing of Smartforms as PDF attachements and I have configured the system as such.
However, we want to the sales confirmation to be automatically emailed to purchasing@companyabc.com
We want the delivery note to be emailed automatically to receiving@companyabc.com
And we want the invoice to be emailed automatically to accounting@companyabc.com
However, in the customer, through I can save multiple email addresses, how to do I configure or enhance the system to use purchasing@companyabc.com for BA00 email output, receiving@companyabc.com for LD00 email output, and accounting @companyabc.com for RD00 email output?
I am thinking that in the notes section next to the email column, we can specify type of email it is and have the output program check this and we can add logic accordingly to have it decide which email to select. Any thoughts?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can easily utilize the "Notes" at the customer email address as below:
And then control email recipient list determination in the output routine as below:
* get email address from customer master data
CLEAR : l_adr_reci.
SELECT smtp_addr INTO l_adr_reci
FROM adr6
JOIN adrt ON adrt~addrnumber = adr6~addrnumber AND adrt~persnumber = adr6~persnumber
AND adrt~consnumber = adr6~consnumber
WHERE adr6~addrnumber = l_adr-addr_no AND
adr6~persnumber = l_adr-person_numb AND
adrt~remark = nast-kschl.
IF l_adr_reci IS NOT INITIAL.
l_recipient = cl_cam_address_bcs=>create_internet_address( l_adr_reci ).
l_send_request->add_recipient(
EXPORTING
i_recipient = l_recipient
i_express = 'X' ).
ENDIF.
ENDSELECT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.