


CALL FUNCTION '/FLOE/EMAIL_OUT'
EXPORTING
im_etype = gv_etype
im_elang = gv_language
im_document = l_im_doc
im_rec_emails = gt_rec_emails
im_variables = gt_vars
im_send_immediately = 'X'
im_attachments = lt_attach
im_preview = gv_screen_display
im_no_commit = lv_no_commit
IMPORTING
ex_subrc = <gv_returncode>
ex_ebody = ev_ebody
ex_mess = lt_mess
ex_rec_emails = et_rec_emails
ex_attachments = et_attachments
ex_esubject_long = ev_esubject_long.
CALL FUNCTION '/FLM/OUTPUT_PDF_PDL_OUT'
EXPORTING
im_ftype = lv_ftype
im_fid = lv_fid
im_fver = lv_fver
im_toption = lv_template
im_document = lv_doc
im_variables = lt_variables
im_no_print = 'X'
* IM_PDLTYPE =
* IM_XDCNAME =
IMPORTING
ex_pdf = lv_pdf
* EX_PDL =
* EX_PAGECOUNT =
* EX_JOB_ID =
ex_subrc = <gv_returncode>
ex_mess = ls_mess.*-------------------------------------------------------------------
* Fill attachment
*
CONCATENATE 'Order_' lv_order '.pdf' INTO ls_attach-att_filename.
ls_attach-att_description = 'Order_output'.
ls_attach-att_data = lv_pdf.
APPEND ls_attach TO lt_attach.
ENDIF.
ENDIF.
*
*------------------------------------------------------------------- CALL FUNCTION '/FLOE/EMAIL_OUT'
EXPORTING
im_etype = gv_etype
im_elang = gv_language
im_document = l_im_doc
im_rec_emails = gt_rec_emails
im_variables = gt_vars
im_send_immediately = 'X'
im_attachments = lt_attach
im_preview = gv_screen_display
im_no_commit = lv_no_commit
IMPORTING
ex_subrc = <gv_returncode>
ex_ebody = ev_ebody
ex_mess = lt_mess
ex_rec_emails = et_rec_emails
ex_attachments = et_attachments
ex_esubject_long = ev_esubject_long. ls_outputparams-nodialog = abap_true.
ls_outputparams-connection = 'ADS'.
ls_outputparams-getpdf = abap_true.
ls_outputparams-preview = abap_false.
…
PERFORM get_output_params
…
CALL FUNCTION 'FP_JOB_OPEN'
…
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
…
CALL FUNCTION lv_fm_name
…
CALL FUNCTION 'FP_JOB_CLOSE'
…

CONCATENATE 'Order_' lv_order '.pdf' INTO ls_attach-att_filename.
ls_attach-att_description = 'Order_output'.
ls_attach-att_data = ls_pdf_file-pdf.
APPEND ls_attach TO lt_attach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |