on 08-05-2008 7:38 PM
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
Hi ,
Please use the following function module..
This might help you..
CALL FUNCTION 'RSPO_SET_ATTRIBUTES_SPOOLJOB'
EXPORTING
rqident =
ADD =
IMPORTING
RQ =
tables
attributes =
EXCEPTIONS
NO_SUCH_JOB = 1
NO_PERMISSION = 2
JOB_FINAL = 3
INCOMPLETE = 4
OTHERS = 5
.
In the RSPOATTR try changing the name and passing it to the FM..
Spool name is stored as TSP01-RQ0NAME
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.