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

Fill "DO NOT REPLY" in SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Kudos
675

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 ?

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Kudos
347

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

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Kudos
348

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

Read only

arnab_roy3
Explorer
0 Kudos
347

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.