Send Mail function Module

* Send Mail
many time to requirement to send mail as pdf attachment to for this purpose we have to send mail as pdf attachment  come to point all mail all multi pal mail we can send 

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    DOCUMENT_DATA              LT_MAILSUBJECT
  TABLES
    OBJECT_CONTENT             LT_MAILTXT
    RECEIVERS                  LT_MAILRECIPIENTS
  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.
IF SY-SUBRC EQ 0.
  COMMIT WORK.
*   Push mail out from SAP outbox
  SUBMIT RSCONN01 WITH MODE 'INT' AND RETURN.
ENDIF.

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

How to Give Dropdown in alv report in sap abap programming Language

Long Text in input and output field in module pool