08-09-2017 6:59 PM
Hello Friends,
I have a requirement to design a report which will list out batch jobs having errors in their spool content.
How to read spool content of a job ?
Thanks,
Manoj
08-09-2017 7:48 PM
You should be looking for table TSP02 and field PJSTATUS for status of the spool
08-10-2017 7:07 AM
Hello Jay,
I want to read the content of the spool whose type will be List.
TSP02-PJSTATUS will give error status of job. but for my jobs, it won't have any error.
For example, below spool is for a ALV list output which has some error.
Thanks,
Manoj
08-10-2017 11:28 AM
Hi Friends,
I came across below post.
Wondering how to modify it for my requirement ?
I have a job which uses REUSE_ALV_HIERSEQ_LIST_DISPLAY ALV with TOP_OF_LIST.
How to read error messages written in that ?
Thanks,
Manoj
08-10-2017 1:09 PM
First of all, how you can identify if it has errors?
A spool is just a list of statement (a table row, a write, anything).
There is no magic solution to this, you should read the spool with FMs like RSPO_RETURN_SPOOLJOB and apply your logic to read the table the FM returns.