Hi gurus!
I need to submit sap standard program RPRCCC_READ_BTA and than I need to send the result by email.
This is what result message looks like:

My code is:
SUBMIT rprccc_read_bta TO SAP-SPOOL USING SELECTION-SET 'TEST1' AND RETURN.
Now I need to take data from spool. I can use FM RSPO_RETURN_ABAP_SPOOLJOB, but I need to know Spool Request Number, where can I get it?