You are on page 1of 2

CALL FUNCTION 'HR_RCF_SF_URL_REFRESH_GT'.

CALL FUNCTION 'HR_RCF_SF_URL_PREPARE_CALLBACK'


TABLES
pt_url = lt_url.
ls_output_options_sf-urlcall
w_cparam-getotf = 'X'.

= 'HR_RCF_SF_URL_CALLBACK'.

CALL FUNCTION lv_function_module_name


EXPORTING
output_options
= ls_output_options_sf
* USER_SETTINGS
= 'X'
control_parameters = w_cparam
IMPORTING
* DOCUMENT_OUTPUT_INFO =
job_output_info
= t_otf_from_fm
* job_output_options =
EXCEPTIONS
formatting_error
= 1
internal_error
= 2
send_error
= 3
user_canceled
= 4
OTHERS
= 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
BREAK-POINT.
t_otf[] = t_otf_from_fm-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format
= 'PDF'
max_linewidth
= 132
* ARCHIVE_INDEX
= ' '
* COPYNUMBER
= 0
* ASCII_BIDI_VIS2LOG
= ' '
* PDF_DELETE_OTFTAB
= ' '
IMPORTING
bin_filesize
= w_bin_filesize
* BIN_FILE
=
TABLES
otf
= t_otf
lines
= t_pdf_tab
EXCEPTIONS
err_max_linewidth
= 1
err_format
= 2
err_conv_not_possible = 3
err_bad_otf
= 4
OTHERS
= 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
i_otf
= t_otf[]
* EXCEPTIONS
* CONVERT_OTF_TO_PDF_ERROR
= 1

*
*

CNTL_ERROR
= 2
OTHERS
= 3
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

You might also like