on 10-31-2016 11:46 AM
Hello,
I am using CL_BCS to send an e-mail with an Excel attachment, BUT I don't know how to implement that the e-mail is sent to a distribution list based on the VKORG.
I have a table ZRECIPIENTS with fields VKORG and AD_SMTPADR. The recipients should be added to the e-mail from this ZRECIPIENTS table.
Please give me an example on how to do that...
Fill an internal table with a simple SELECT statement, then loop in the internal table and build/add receiver with methods
lo_recipient = cl_cam_address_bcs=>create_internet_address( i_address_string = lv_smtpadr ).
lo_bcs->add_recipient( i_recipient = lo_recipient ).
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well I could add (but not useful IMHO)
SELECT smtpadr INTO TABLE lt_smtpadr
FROM zrecipients WHERE vkorg = vbak-vkorg.
LOOP AT lt_smtpadr ASSIGNING <address>.
lo_recipient = cl_cam_address_bcs=>create_internet_address( i_address_string = <address> ).
lo_bcs->add_recipient( lo_recipient ).
ENDLOOP.
So what part exactly upset you?
Regards,
Raymond
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.