If you have all the details in the spool log, then you can read the spool.
Use Function module 'RSPO_RETURN_ABAP_SPOOLJOB' for that.
Example-
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = <spoolno>
TABLES
buffer = <i_spool>
EXCEPTIONS
no_such_job = 1
not_abap_list = 2
job_contains_no_data = 3
selection_empty = 4
no_permission = 5
can_not_access = 6
read_error = 7
OTHERS = 8.
Here <spoolno> is the spool you want to read and <i_spool> is the internal table which will have the details of log.
To track the spool no for back ground job there are two table TBTCO, TBTCP you can use them as well.
Let us know, if it helps.
Regards,
Atul Mohanty