Skip to Content
0
Former Member
Sep 21, 2012 at 10:40 AM

Re. email is not sending using FM : SO_OBJECT_SEND_REMOTE

28 Views

Hi Expert,

I am working on a report where a function module SO_OBJECT_SEND_REMOTE is used to send emails. I have debug the function module and found that FM SO_OBJECT_SEND is used. In this function exception is raised on the below step.

* Send via BCS and exit

try.

sent_to_all = 'X'.

clear: receivers[].

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.

when cx_bcs=>PARAMETER_ERROR

or cx_bcs=>INVALID_VALUE.

raise parameter_error.

when cx_bcs=>NO_AUTHORIZATION.

raise OPERATION_NO_AUTHORIZATION.

when others.

raise object_not_sent.

endcase.

endtry.

This is the reason that emails are not going from report. Please give your valuable suggestion that what is root cause for raising this exception.

Thanks in advance,

Vipul