2009 Nov 18 8:24 AM
Hi all,
I am using SO_NEW_DOCUMENT_SEND_API1 to send an email. But I need to update the program so that the reply recepient has to be 'DO NOT REPLY'.
Can you help me finding out how to provide the Reply-recipient ?
2009 Nov 18 8:34 AM
You need to use CL_BCS for this.
sender_id = cl_cam_address_bcs=>create_internet_address( sender ).
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender_id.
Here you can set the sender dynamically
a®
2009 Nov 18 8:34 AM
You need to use CL_BCS for this.
sender_id = cl_cam_address_bcs=>create_internet_address( sender ).
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender_id.
Here you can set the sender dynamically
a®
2009 Nov 18 10:11 AM
Hi,
I had used the FM SO_DOCUMENT_SEND_API1 for displaying a generic user name like your "DO NOT REPLY" in the sender address field.
You can check below : The parameter sender_address helps you mention the default sender address name. However for that username you need to have a profile created as a SAP user with an external email address attached to that profile. You can give the name for that user as "DO NOT REPLY" so that whovever sends the mail it will always show that name.
call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = wa_document_data
put_in_outbox = 'X'
sender_address = g_sender_addr
tables
packing_list = t_objpack
object_header = t_objhead
contents_bin = t_attachment
contents_bin = t_objbin
contents_txt = t_objtxt
receivers = t_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.