ā2013 Jul 03 2:48 PM
Hi @all,
I have a problem with sending mails (Order confirmation, offers).
When the user sends a mail, sometimes it happens, that the mail appears twice in SOST. One mail to correct receiver, one mail to wrong receiver. The wrong receiver is always the receiver from the previous mail.
I can“t follow this problem, because it orrurs just sporadically.
Has anybody an Idea? Is this problem known to somebody?
Thank you,
Best regards.
ā2013 Jul 03 3:05 PM
Which FM or class are you using?Make sure to clear receiver variable before fetching new receiver.
Regards
ā2013 Jul 03 3:05 PM
Which FM or class are you using?Make sure to clear receiver variable before fetching new receiver.
Regards
ā2013 Jul 04 8:39 AM
Thank you, I switched from FM 'SO_OBJECT_SEND' to cl_bcs.
And yes, I simple forgot a CLEAR at the beginning.
Best regards
Robert
ā2013 Jul 03 3:32 PM
Can you reasonably say that your from should never be in your to list?
Neal
ā2013 Jul 04 1:26 AM
Hi,
May be check the code where the code populate's the mail ID in the recievers list may be a CLEAR is missing causing the last value to still remain. Few more details would also help us to analyze it better.
Cheers,
arindam
ā2013 Jul 04 3:15 AM
Hi,
It looks like an issue of variable/structure clearing. Some variable/structure is not getting cleared before the new email id is inserted.
Regards,
Ravi