Skip to Content
0
Former Member
Feb 28, 2007 at 02:45 PM

Setting print immididately for ALV GRID report

58 Views

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