Hi Colleagues,
I am using FM SO_DOCUMENT_SEND_API1 to send email to the external users. I am currently facing problem in FM SO_OBJECT_SEND which is called inside SO_DOCUMENT_SEND_API1 .
In the below statement program is clearing the Receivers Table. I am not able to understand why it is clearing this data and throwing me an error Object not sent.
Send via BCS and exit
try.
sent_to_all = 'X'.
clear: receivers[]. -
> Clearing
CALL METHOD send_request->release
EXPORTING
I_CALLED_BY_MEDIUM = space
IMPORTING
E_SENT_TO_ALL = sent_to_all
E_CLASSIC_REC_TAB = receivers[]
.
* leave so_object_send
exit.
catch cx_bcs into bcs_exception.
sent_to_all = space.
case bcs_exception->error_type.
when cx_bcs=>INTERNAL_ERROR
or cx_bcs=>X_ERROR
or cx_bcs=>OS_EXCEPTION
or cx_bcs=>CREATION_FAILED
or cx_bcs=>LOCKED
or cx_bcs=>CAST_ERROR.
raise object_not_sent.
Could you please help me on this issue.
Thanks & Regards,
Nagaraj Kalbavi