La siguiente parametrización permite la visualización previa de un formulario sin cuadro de diálogo:
ls_control_param-no_dialog = abap_on. " SIN VENTANA DIALOGO
ls_control_param-preview = abap_on. " CON VISUALIZAC.PREVIA
ls_control_param-device = 'PRINTER'.
ls_output_options-tddest = 'LCL'. " DISPOSITIVO DE SALIDA
ls_output_options-tdnoprint = abap_off. " IMPRIMIR
ls_output_options-tdarmod = '1'. " SOLO IMPRIMIR
CALL FUNCTION lv_fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = ls_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = ls_output_options
user_settings = abap_off
is_xekko = p_s_xekko
is_xpekko = p_s_xpekko
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* job_output_info = ls_job_output_info
* JOB_OUTPUT_OPTIONS =
TABLES
it_xekpa = p_t_xekpa[]
it_xekpo = p_t_xekpo[]
it_xpekpo = p_t_xpekpo[]
it_xeket = p_t_xeket[]
it_xekkn = p_t_xekkn[]
it_xekek = p_t_xekek[]
it_xekeh = p_t_xekeh[]
it_xtkomv = p_t_xtkomv[]
it_detocn = p_t_detcon[]
it_serv = p_t_detser[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
No hay comentarios:
Publicar un comentario