Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get the print preview of email

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.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question