cancel
Showing results for 
Search instead for 
Did you mean: 

ALV printing setting Layout

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

not valid any longer

former_member182485
Active Contributor
0 Kudos

Just check the Layout X_44_120 exists or not

as this is created by basis gyes.

if it will not exist it will take default layout

Regards

Bikas

Former Member
0 Kudos

Hi,

pass the printing parameters to the parameter IS_PRINT of reuse_alv_grid_display.

fill the printing parameters,

slis_alv_print for type SLIS

lvc_s_print for type LVC.

in that fill parameters like reserve_lines.

Regards,

Flavya

former_member223537
Active Contributor
0 Kudos

Hi Elisabeth,

use FM 'GET_PRINT_PARAMETERS' & pass

LAYOUT = 'X_44_120'

Also pass the output device type..print immediately etc...

Best regards,

Prashant