Send Smartform Output Mail
Send Smartform Output Mail
Send Smartform Output Mail
REPORT ZSANDEEP_SMARTFORM_PDF_CONVT.
***********************************************************************************************
data:
v_len_in LIKE sood-objlen,
ZDATA-OBJ_NAME = 'TEST'.
ZDATA-OBJ_DESCR = 'SUBJECT LINE '.
ZDATA-OBJ_LANGU = 'EN'.
APPEND ZDATA.
******* COPIED THE FUNCTION MODULE NAME INTO THE VARIABLE FM_NAME
********************8
DATA : FM_NAME TYPE rs38l_fnam value '/1BCDWB/SF00000002'.
************************************END OF STEP 3
****************************************************************88]
***********************************END OF STEP 4
*************************************************
ls_CONTROL_PARAMETERS-GETOTF = 'X'.
ls_CONTROL_PARAMETERS-NO_DIALOG = ''.
ls_CONTROL_PARAMETERS-PREVIEW = ''.
*
********************************STEP 7 **********
* EXCEPTIONS
* ERR_LINE_WIDTH_SRC_TOO_LONG =1
* ERR_LINE_WIDTH_DST_TOO_LONG =2
* ERR_CONV_FAILED =3
* OTHERS =4
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
***********END OF SX_TABLE_LINE_WIDTH_CHANGE
*********************STEP 9
DOCUMENT_TYPE = 'PDF'
* PUT_IN_OUTBOX =''
COMMIT_WORK = 'x'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
TABLES
* OBJECT_HEADER =
OBJECT_CONTENT = i_tline2
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
RECEIVERS = ZRECEIVERS " RECEIVER ADDRESS
* 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 <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use this tcode to check the sended mail u got it or not :- SBWP
Problem : -
Now the Problem is that I want to send this output file into the external mail id (i.e
your personal mail id ) .