on 12-09-2008 12:22 PM
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
not valid any longer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Elisabeth,
use FM 'GET_PRINT_PARAMETERS' & pass
LAYOUT = 'X_44_120'
Also pass the output device type..print immediately etc...
Best regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.