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

Error in FM SO_OBJECT_SEND

former_member70391
Contributor
0 Likes
791

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
643

Hi,

Have you checked with your basis team, Is there any patches or upgrade happended recently in your environmnet. If it's happended there may be SAP standard problem. Raise a OSS note they can able to give some sort of suggestion or solution.

Regards

Thiru

Read only

0 Likes
643

Hi Thiru,

Thanks for the reply. it is not becoz of that, i just found that it is going to exception Others but not specifying the correct message. I do not know how do I rectify this issue.

when others.

raise object_not_sent.

Thanks & Regards,

Nagaraj Kalbavi

Read only

0 Likes
643

Hi,

You are indeed up a blind alley because CREATE_DIRECT_ADDRESS is a private static method.

However, I believe you are looking for method CREATE_USER_HOME_ADDRESS:

DATA:

lo_recipient TYPE REF TO if_recipient_bcs. " CL_CAM_ADDRESS_BCS

CALL METHOD CL_CAM_ADDRESS_BCS=>CREATE_USER_HOME_ADDRESS

EXPORTING

I_USER = syst-uname

I_COMMTYPE = 'INT'

RETURNING

RESULT = lo_recipient.

Perhaps it may be necessary to define the variable of TYPE REF TO cl_cam_address_bcs and do the casting to the interface afterwards.

let me know if you face any issues

Regards,

Manas

Read only

SG141
Active Participant
0 Likes
643

Let me if you found the solution to this issue, as i am facing the same one.