‎2008 Aug 20 4:25 AM
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.
‎2008 Aug 20 4:32 AM
‎2008 Aug 20 4:32 AM
‎2008 Aug 20 4:40 AM
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.