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: 

Changing Spool tiltle

VijayCR
Active Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

0 Kudos

Hello Kesav,

Can you please tell me exactly the program name or how to check the program name?

Thanks

vijay.

0 Kudos

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.