Nov 6, 2011

Internal table to spool

A sampe code to display Internal table to spool:

*&------------------------------------------------------------------*
*& Form SEND_TO_SPOOL
*&------------------------------------------------------------------*
* text
*-------------------------------------------------------------------*
FORM send_to_spool.
DATA: val,
pripar LIKE pri_params,
arcpar LIKE arc_params.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
layout = 'X_65_255'
line_count = 65
line_size = 255
IMPORTING
out_parameters = pripar
out_archive_parameters = arcpar
valid = val.

NEW-PAGE PRINT ON NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
IF val <> space.
LOOP AT it_spool.
......
ENDLOOP.
ENDIF.
NEW-PAGE PRINT OFF.
ENDFORM. "SEND_TO_SPOOL





No comments :