Hi Experts,
I'm using SO_OBJECT_SEND inside a loop to send multiple emails for different documents. When I check in SOST, the recipient list is accumulated. For example, there are 3 documents that need to be sent to three different people.
Document 1 - sent to Mike Decker
Document 2 - sent to David Wasol
Document 3 - sent to Jack Damm
When I check SOST, the recipients are accumulated depending on the order of sending.
Document 1 - sent to Mike Decker
Document 2 - sent to Mike Decker
sent to David Wasol
Document 3 - sent to Mike Decker
sent to David Wasol
sent to Jack Damm
Here is my code below; also I'm sure that I_receivers only contains 1 person. Thanks in advanced.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = wa_object_id
object_hd_change = wa_object_hd
object_type = wa_object_type
outbox_flag = c_x
owner = sy-uname
IMPORTING
object_id_new = wa_object_id
TABLES
objcont = i_objcont
objhead = i_objhead
receivers = i_receivers