Application Development 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: 

Re. email is not sending using FM : SO_OBJECT_SEND_REMOTE

Former Member
0 Kudos

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

1 REPLY 1

Shivesh
Advisor
Advisor
0 Kudos

Hi Vipul,

    Use this SO_NEW_DOCUMENT_ATT_SEND_API1.

Regard's,

Shivesh Ranjan.