Hi,
PDF is used for output so why do it ?
- Store external created PDF in sap (ZTABLE).
- Send external created PDF file by mail (cl_bcs) .
Options:
- Ineractive.
DATA: it_solix TYPE solix_tab .
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filetype = 'BIN'
CHANGING
data_tab = it_solix
- Background job .
Not tested...
DATA: big_string TYPE xstring .
DATA: mess TYPE string .
OPEN DATASET p_file_t FOR INPUT IN BINARY MODE MESSAGE mess .
READ DATASET p_file_t INTO big_string .
DATA: it_solix TYPE solix_tab .
CALL METHOD cl_bcs_convert=>xstring_to_solix
EXPORTING
iv_xstring = big_string
RECEIVING
et_solix = it_solix.
Regards.