2008 Nov 25 9:05 AM
Hi,
Whenever i execute a report, i want a message to be sent to lotus notes id. I have a function module SO_OBJECT_SEND, if this is the function module that i need to use, can i know the values that need to be passed.
Kindly provide code if anyone is having.
Thanks,
Naveen
2008 Nov 25 9:11 AM
Sample code
" The following code is used to send automatic email.
data : gt_receivers like soos1 occurs 0 with header line,
gt_obj_cont like soli occurs 0 with header line,
gs_object_hd_change like sood1.
gt_obj_cont-line = 'email body'. "Email body
append gt_obj_cont.
gt_receivers-recextnam = '@' . "mention the full email adress here of lotus notes
gt_receivers-recesc = 'E'.
gt_receivers-sndart = 'INT'.
gt_receivers-sndpri = 1.
gt_receivers-mailstatus = 'E'.
gt_receivers-rcdat = sy-datum.
gt_receivers-rctim = sy-uzeit .
gt_receivers-deliver = 'X'.
gt_receivers-mailstatus = 'X'.
gt_receivers-not_deli = 'X'.
append gt_receivers.
gs_object_hd_change-objla = sy-langu.
gs_object_hd_change-objnam = 'Immediate mail'.SPAN
call function 'SO_OBJECT_SEND'
exporting
object_hd_change = gs_object_hd_change
object_type = 'RAW'
outbox_flag = 'X'
tables
objcont = gt_obj_cont
receivers = gt_receivers
exceptions
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
originator_not_exist = 20
x_error = 21
others = 22.
commit work.
Hi,
Whenever i execute a report, i want a message to be sent to lotus notes id. I have a function module SO_OBJECT_SEND, if this is the function module that i need to use, can i know the values that need to be passed.
Kindly provide code if anyone is having.
Thanks,
Naveen
2008 Nov 25 9:09 AM
Hi
Check this Function Module:LOTUS123_OLE_STANDARD_DAT, It is used to send data to Lotus.
Regards,
Vishwa.
2008 Nov 25 9:11 AM
Sample code
" The following code is used to send automatic email.
data : gt_receivers like soos1 occurs 0 with header line,
gt_obj_cont like soli occurs 0 with header line,
gs_object_hd_change like sood1.
gt_obj_cont-line = 'email body'. "Email body
append gt_obj_cont.
gt_receivers-recextnam = '@' . "mention the full email adress here of lotus notes
gt_receivers-recesc = 'E'.
gt_receivers-sndart = 'INT'.
gt_receivers-sndpri = 1.
gt_receivers-mailstatus = 'E'.
gt_receivers-rcdat = sy-datum.
gt_receivers-rctim = sy-uzeit .
gt_receivers-deliver = 'X'.
gt_receivers-mailstatus = 'X'.
gt_receivers-not_deli = 'X'.
append gt_receivers.
gs_object_hd_change-objla = sy-langu.
gs_object_hd_change-objnam = 'Immediate mail'.SPAN
call function 'SO_OBJECT_SEND'
exporting
object_hd_change = gs_object_hd_change
object_type = 'RAW'
outbox_flag = 'X'
tables
objcont = gt_obj_cont
receivers = gt_receivers
exceptions
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
originator_not_exist = 20
x_error = 21
others = 22.
commit work.
2008 Nov 25 12:13 PM
hi
Having the same problem.
I used the sample code you hav given, but the mail is sittin in my outbox with send status - error
and description - Internal error: CL_SMTP_RESPONSE ESMTP error code is not known. 554 554 Relay rejected for policy reasons.
Is there some settings to be changed. or is it nything else?.
Plz help.
Regards
Winnie
2008 Dec 03 9:30 AM
Hi winne,
I have met the same problem with you, have you found any solutions?
Best regards,
Benny
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |