Open smartforms as PDF OUTPUT
*&---------------------------------------------------------------------*
*& Report ZOPEN_SMARTFORMS_PDF
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZOPEN_SMARTFORMS_PDF.
DATA: ls_control_param TYPE ssfctrlop.
DATA: ls_composer_param TYPE ssfcompop.
ls_control_param-device = space.
ls_control_param-getotf = 'X'.
ls_control_param-no_dialog = 'X'.
DATA: l_document_output_info TYPE ssfcrespd,
l_job_output_info TYPE ssfcrescl,
l_job_output_options TYPE ssfcresop.
* Subsitute your smartform name below:
CALL FUNCTION '/1BCDWB/SF00000825'"'/1BCDWB/SF00000034'
EXPORTING
control_parameters = ls_control_param
IMPORTING
document_output_info = l_document_output_info
job_output_info = l_job_output_info
job_output_options = l_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'HR_IT_DISPLAY_WITH_PDF'
TABLES
otf_table = l_job_output_info-otfdata.
*& Report ZOPEN_SMARTFORMS_PDF
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZOPEN_SMARTFORMS_PDF.
DATA: ls_control_param TYPE ssfctrlop.
DATA: ls_composer_param TYPE ssfcompop.
ls_control_param-device = space.
ls_control_param-getotf = 'X'.
ls_control_param-no_dialog = 'X'.
DATA: l_document_output_info TYPE ssfcrespd,
l_job_output_info TYPE ssfcrescl,
l_job_output_options TYPE ssfcresop.
* Subsitute your smartform name below:
CALL FUNCTION '/1BCDWB/SF00000825'"'/1BCDWB/SF00000034'
EXPORTING
control_parameters = ls_control_param
IMPORTING
document_output_info = l_document_output_info
job_output_info = l_job_output_info
job_output_options = l_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'HR_IT_DISPLAY_WITH_PDF'
TABLES
otf_table = l_job_output_info-otfdata.
Comments
Post a Comment