2009 May 29 10:27 AM
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
2009 May 29 10:30 AM
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
2009 May 29 10:37 AM
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
2009 May 29 10:44 AM
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
2009 Jun 03 6:40 PM
Let me if you found the solution to this issue, as i am facing the same one.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |