Hi all,
I using so_object_send function module to send mail. My requirement is with respect to any user
logged in the sender mail address should be taken by V_SENDER parameter in exporting
parameter.
<code>
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = wa_folder_id
forwarder = w_forwarder
object_fl_change = wa_object_fl_change
object_hd_change = wa_object_hd_change
object_id = wa_object_id
object_type = w_object_type
outbox_flag = w_outbox_flag
owner = w_owner
store_flag = w_store_flag
IMPORTING
object_id_new = wa_object_id_new
sent_to_all = w_sent_to_all
sender = v_sender
TABLES
objcont = i_objcont
objhead = i_objhead
objpara = i_objpara
objparb = i_objparb
receivers = i_receivers
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
originator_not_exist = 20
x_error = 21
OTHERS = 22.
IF sy-subrc 0.
ENDIF.
</code>
My Requirement is V_SENDER can be any user of that SAP system,noot particularly logged in user.
I tried using this functionality my sy-subrc is zero. but i am not able to get any mails with that user name in V_SENDER.
Do i need to do any further settings or any more code is required.
Even i tired giving SUBMIT rsconn01 .
still its not working.
Please suggest any solutions if we have.
Thanks,
satish