Skip to Content
0
Former Member
Dec 09, 2008 at 12:22 PM

ALV printing setting Layout

214 Views

Hello I do have an issue printing at ALV - I want the Layout X_44_120 -

g_grid TYPE REF TO cl_gui_alv_gri

ps_print-print_ctrl-pri_params-LINCT = 44.

ps_print-print_ctrl-pri_params-linsz = '120'.

ps_print-print_ctrl-pri_params-paart = 'X_44_120'.

CALL METHOD g_grid->set_table_for_first_display EXPORTING

is_variant = my_variant

is_layout = ps_layout

is_print = ps_print

I do CALL FUNCTION 'UNSET_PRINTPARAMETER'

I do CALL FUNCTION 'SET_PRINTPARAMETER'

lay = 'X_44_120'.

lines = 44.

rows = 120.

CALL FUNCTION 'SET_PRINT_PARAMETERS'

EXPORTING

LAYOUT = lay

LINE_COUNT = lines

LINE_SIZE = rows.

CALL FUNCTION 'SET_PRINTPARAMETER_VALUE'

EXPORTING

NAME = 'LAYOUT'

VALUE = 'X_44_120'

IN_PARAMETERS = PRI_PARAMS

and when I want to print I always get X_65_132

what can I do more/different to change the settings

many thanks

Elisabeth