Code: Alles auswählen.
* empfänger
reclist-receiver = receiver.
reclist-rec_type = 'U'.
reclist-copy = ''.
reclist-blind_copy = ''.
append reclist.
reclist-receiver = receiver2.
reclist-rec_type = 'U'.
reclist-copy = copy.
reclist-blind_copy = blind_copy.
append reclist.
Code: Alles auswählen.
LOOP AT so_user INTO gs_souser. " email addresses
gv_address = gs_souser-low.
go_receiver = cl_cam_address_bcs=>create_internet_address( gv_address ).
go_send_request->add_recipient( i_recipient = go_receiver
i_express = 'X' ).
ENDLOOP.
LOOP AT so_uscc INTO gs_souser. " receicer cc
gv_address = gs_souser-low.
go_receiver = cl_cam_address_bcs=>create_internet_address( gv_address ).
go_send_request->add_recipient( i_recipient = go_receiver
i_express = 'X'
i_copy = 'X' ).
ENDLOOP.
LOOP AT so_ubcc INTO gs_souser. " receiver bcc
gv_address = gs_souser-low.
go_receiver = cl_cam_address_bcs=>create_internet_address( gv_address ).
go_send_request->add_recipient( i_recipient = go_receiver
i_express = 'X'
i_blind_copy = 'X' ).
ENDLOOP.
LOOP AT so_dli INTO gs_sodli. " distribution lists
gv_obj = gs_sodli-low.
go_receiver = cl_distributionlist_bcs=>getu_persistent(
i_dliname = gv_obj
i_private = space ).
go_send_request->add_recipient( i_recipient = go_receiver
i_express = 'X' ).
ENDLOOP.