02-09-2012 9:02 AM
Hello Experts,
Is it possible to create a spool with title ZXXXX_REPORT_sy-datum.
Program will schedule as a batch job and report output will be sent to a set of users.
I see no coding is done in the program to generate the spool
Thank you,
Vijay.
02-09-2012 9:13 AM
I think its the alv list getting generated in the background. Before calling the ALV function call GET_PRINT_PARAMETERS , it will give you the details of spool parameters. Now change the value in it by calling SET_PRINT_PARAMETERS.
02-09-2012 9:13 AM
I think its the alv list getting generated in the background. Before calling the ALV function call GET_PRINT_PARAMETERS , it will give you the details of spool parameters. Now change the value in it by calling SET_PRINT_PARAMETERS.
02-09-2012 9:16 AM
Hello Kesav,
Can you please tell me exactly the program name or how to check the program name?
Thanks
vijay.
02-09-2012 9:31 AM
Execute this code in background and check the spool title
DATA:i_mara TYPE TABLE OF mara.
DATA:repid TYPE sy-repid,
params TYPE pri_params,
title TYPE pri_params-prtxt,
val.
DATA:inc(3) TYPE n.
DATA:dat(10) TYPE c.
start-of-selection.
repid = sy-repid.
SELECT * FROM mara UP TO 20 ROWS INTO TABLE i_mara.
inc = 001.
dat = sy-datum.
CONCATENATE 'Z' inc dat INTO title.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING
list_text = title.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repid
i_structure_name = 'MARA'
TABLES
t_outtab = i_mara.