Application Development 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: 

How to Read Spool Request Content for Errors

MKM
Active Participant
0 Kudos

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

4 REPLIES 4

former_member156446
Active Contributor

You should be looking for table TSP02 and field PJSTATUS for status of the spool

0 Kudos

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

MKM
Active Participant
0 Kudos

Hi Friends,

I came across below post.

https://wiki.scn.sap.com/wiki/display/Snippets/Convert+Spool+List+to+ALV+Grid?focusedCommentId=47117...

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

SimoneMilesi
Active Contributor
0 Kudos

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.