Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting print immididately for ALV GRID report

Former Member
0 Kudos
111

Hi ,

I am using ALV grid.

My requirement is displayed and when user clicks on Print button print should be fired immediately.

For the requirement, I am using parameters,

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

NO_DIALOG = 'X'

IMMEDIATELY = 'X'

DESTINATION = 'LOCL'

LAYOUT = 'X_65_255'

IMPORTING

OUT_PARAMETERS = PRIPAR

OUT_ARCHIVE_PARAMETERS = ARCPAR

VALID = VAL

EXCEPTIONS

ARCHIVE_INFO_NOT_FOUND = 1

INVALID_PRINT_PARAMS = 2

INVALID_ARCHIVE_PARAMS = 3

OTHERS = 4.

but when clicked on print button only spool is generated.

Even I tried with setting PRINT-PRINT_CTRL-PRI_PARAMS-PRIMM = 'X'

of REUSE_ALV_GRID.. but it's generating spool ,but print is not happing immediately.

Please suggest a way to give print immediately.

Thanks in advance,

Amit

1 REPLY 1

former_member186143
Active Contributor
0 Kudos
50

set the user settings to print immediately.

if you are administrator also you can do that with SU01

(this works for all reports and thingies that users want to print from SAP)

and perhaps use SET_PRINT_PARAMETERS

to change the settings

Message was edited by:

A. de Smidt