cancel
Showing results for 
Search instead for 
Did you mean: 

Error generating spool request from alv

pankaj_mittal
Explorer
0 Kudos

Hello Experts,

I am Generating spool request from alv mention below:

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

in_parameters = lwa_params

layout = 'X_65_132'

line_count = 65

line_size = 132

no_dialog = 'X'

IMPORTING

out_parameters = lwa_params

valid = lv_valid

EXCEPTIONS

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

OTHERS = 4.

MOVE-CORRESPONDING lwa_params TO w_print-print_ctrl-pri_params.

w_print-print_ctrl-pri_params-pdest = 'LP01'. " your printr device

NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_BYPASSING_BUFFER = 'X'

I_CALLBACK_PROGRAM = SY-REPID

IT_FIELDCAT = FIELDCAT[]

I_DEFAULT = 'X'

I_SAVE = 'X'

is_print = w_print

it_events = i_events

TABLES

T_OUTTAB = T_FINAL1

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

NEW-PAGE PRINT OFF.

Now the issue is that its working fine in Development and Quality.. but in Production server its not shown all the column in spool request and there is no change in program in dev and prd.

KIndly suggest for the above issue.

Regards

Pankaj Mittal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Here the issue is with the printer settings, try to to check them once i hope your problem will be resolved. check dev, prod and qua printer settings are same.

Regards,

Goutam Kolluru.