gv_print type slis_print_alv.
gv_print-print = 'X'.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL' " Printer
layout = 'X_65_512/2' "Format
line_count = '65' "Line Count
line_size = '1024'. "Line Size
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_STRUCTURE_NAME = 'T000'
IS_PRINT = v_print
TABLES
T_OUTTAB = gt_final
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
.