01-25-2013 11:08 AM
Hi all,
Can anyone tell me the standard report that has the code to send an email to the SAP Inbox.
Regards,
Hajeera.
01-25-2013 11:23 AM
You can use BCS Classes. Several examples are already available, in se38 search for BCS_EXAMPLE*
Now if you want it to send to inbox then the recipient determination part has to be changed as below:
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = lv_logsys
EXCEPTIONS
OTHERS = 1.
IF sy-subrc EQ 0.
lo_recipient = cl_cam_address_bcs=>create_rml_address( i_syst = lv_logsys
i_client = sy-mandt
i_username = <fs_recipient>-userid ).
ENDIF.
lo_send_request->add_recipient( i_recipient = lo_recipient ).