Skip to Content

How to Read Spool Request Content for Errors

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

Add comment
10|10000 characters needed 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.

  • Get RSS Feed

2 Answers

  • Aug 09, 2017 at 06:48 PM
    -1

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

    Add comment
    10|10000 characters needed 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)
  • Aug 10, 2017 at 10:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded