Application Development and Automation 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: 
Read only

How to Read Spool Request Content for Errors

MKM
Active Participant
0 Likes
3,508

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
Read only

former_member156446
Active Contributor
2,339

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

Read only

0 Likes
2,339

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

Read only

MKM
Active Participant
0 Likes
2,339

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

Read only

SimoneMilesi
Active Contributor
0 Likes
2,339

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.