How to get the print preview of email
I have crated one report program which will send an email to the person whose id is mentioned. Now Before sending the email the sender wants to see the preview of email.
I am using the below FM to send Email.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
DOCUMENT_DATA = lwa_mail_header
DOCUMENT_TYPE = 'HTM'
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
OBJECT_CONTENT = lt_mail_content
RECEIVERS = lt_mail_receivers
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
Is there any way to see the preview of email before sending email?