Skip to Content
0

How to Read Spool Request Content for Errors

Aug 09, 2017 at 05:59 PM

65

avatar image

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

10 |10000 characters needed characters left characters exceeded

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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Aug 09, 2017 at 06:48 PM
-1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

untitled.png (23.6 kB)
0
Manoj Mohanty Aug 10, 2017 at 10:28 AM
0

Hi Friends,

I came across below post.

https://wiki.scn.sap.com/wiki/display/Snippets/Convert+Spool+List+to+ALV+Grid?focusedCommentId=471174061&refresh=1502349486857#comment-471174061

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

Share
10 |10000 characters needed characters left characters exceeded