Professional Documents
Culture Documents
Smart Forms
Smart Forms
*----------------------------------------------------------------------*
*_formulaire
DATA: w_nomform TYPE tdsfname.
DATA: w_fm_name TYPE rs38l_fnam.
*........
w_nomform = 'Z_Mon_SF'.
*_identification du formulaire
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_nomform
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
FORM pdf_out USING plw_control TYPE ssfctrlop
plw_output TYPE ssfcompop.
lw_title = text-t01.
plw_control-getotf = 'X'.
plw_control-no_dialog = 'X'.
plw_output-tdnoprev = 'X'.
Page : 1
Fichier : C:\SF_vers_PDF.txt 11/12/2007, 10:25:09
IF sy-subrc <> 0.
EXIT.
ENDIF.
lt_otf[] = lt_otfdata-otfdata[].
Page : 2
Fichier : C:\SF_vers_PDF.txt 11/12/2007, 10:25:09
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
EXIT. "File not downloaded
ENDIF.
ENDFORM. " pdf_out
Page : 3