Skip to Content
0
Former Member
Aug 05, 2008 at 06:38 PM

How to specify the name for SPOOL file, which is creating from Z prog.?

210 Views

Hi Experts,

Am creating a SPOOL file from my Z prog. below is the code, fine, its creating.

DATA param TYPE pri_params.

NEW-PAGE PRINT ON

PARAMETERS param

NO DIALOG.

LOOP AT it_errors.

WRITE:

/15(33) it_errors-matnr,

38(55) it_errors-menge,

75(132) it_errors-error_text.

ENDLOOP.

NEW-PAGE PRINT OFF.

Looking forward to assign a name to this created error file, say, my_error_spool_file.

So, when the Z prog. creates a file in the SPOOL, it shuld create with the name of my_error_spool_file, always, so, pls. suggest me.

thanq

Edited by: SAP ABAPer on Aug 5, 2008 8:38 PM

Edited by: SAP ABAPer on Aug 5, 2008 8:40 PM