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: 

Standard report name to send an email to SAP inbox

Former Member
0 Kudos

Hi all,

Can anyone tell me the standard report that has the code to send an email to the SAP Inbox.

Regards,

Hajeera.

1 REPLY 1

kesavadas_thekkillath
Active Contributor
0 Kudos

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 ).