Skip to Content
0
Former Member
Sep 19, 2014 at 12:02 PM

How to get the print preview of email

260 Views

Hi Experts.

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'

EXPORTING

DOCUMENT_DATA = lwa_mail_header

DOCUMENT_TYPE = 'HTM'

PUT_IN_OUTBOX = 'X'

COMMIT_WORK = 'X'

TABLES

OBJECT_CONTENT = lt_mail_content

RECEIVERS = lt_mail_receivers

EXCEPTIONS

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?

Thanks,

Pradeep.