Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *****Necesitas definir estas Variables para Impresion.
- DATA: w_ssfcompop TYPE ssfcompop.
- DATA: w_ssfctrlop LIKE ssfctrlop.
- DATA: w_sform LIKE tnapr-sform.
- DATA: w_fm_name TYPE rs38l_fnam.
- * Control parameters
- w_ssfctrlop-no_dialog = ' '.
- w_ssfctrlop-langu = sy-langu.
- w_ssfcompop-tdtitle = 'Printing Forms Miscelanous'(t01).
- w_ssfcompop-tddest = 'HPSAP'.
- w_ssfcompop-tdimmed = 'X'.
- w_ssfcompop-tddelete = 'X'.
- w_ssfcompop-tdlifetime = '1'.
- w_ssfcompop-tdnoprev = ' '.
- w_sform = 'Z_AQUI_EL_NOMBRE_DEL_SMARTFORM'.
- CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' " <---esta es la función que llama el SMARTFORM
- EXPORTING
- formname = w_sform
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement