Application Development and Automation 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: 
Read only

SPOOL file - Print Paramaters

Former Member
0 Likes
385

Hi Experts,

Am creating a SPOOL file from my Z prog. with the following code,

DATA wa_param TYPE pri_params.

NEW-PAGE PRINT ON

PARAMETERS wa_param

NO DIALOG.

NEW-PAGE PRINT OFF.

its creating fine.

but, I wanna to assign/give a NAME to this SPOOL file, which is here creating.

so, let me know that, How to give a name to the spool file from my Z prog.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
349

HI,

you can check the below URL.

Many Thanks,

Raghu.

2 REPLIES 2
Read only

Former Member
0 Likes
350

HI,

you can check the below URL.

Many Thanks,

Raghu.

Read only

Former Member
0 Likes
349

you have to use the GET_PRINT_PARAMETERS to get the print parameters. and using the PRTXT you can set the title.

DATA wa_param TYPE pri_params.

call function 'GET_PRINT_PARAMETERS'
....
...
....

wa_praram-PRTXT = 'Title here'.
NEW-PAGE PRINT ON
PARAMETERS wa_param
NO DIALOG.

NEW-PAGE PRINT OFF.