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: 

Sending mail through CL_BCS

Former Member
0 Kudos

Hi,

I am sending mail through CL_BCS using the following code:

add recipient with its respective attributes to send request

CALL METHOD send_request->add_recipient

EXPORTING

i_recipient = recipient

i_express = 'X'.

endloop.

  • ---------- send document ---------------------------------------

CALL METHOD send_request->send(

exporting

i_with_error_screen = 'X'

receiving

result = sent_to_all ).

if sent_to_all = 'X'.

write text-003.

endif.

COMMIT WORK.

Though I am not setting any return receipt still I am receiving one. Can anyone help please.

I dnt need to get a return receipt.

Thanks

Papiya

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Check this


      move : 'N' to v_request_status. " N = No status get returned
      v_status = v_request_status.
      call method send_request->set_status_attributes
        exporting
          i_requested_status = v_request_status
          i_status_mail      = v_status.
      call method send_request->send( ).