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

Reading from SAP-SPOOL

Former Member
0 Likes
920

Dear Friends,

I want to read a list from sap-spool are the statement SUBMIT rep ... TO SAP-SPOOL. How can I do that ? Is there a Function Module to do this job ?

Thanks in Advance,

Rajesh

Dear Friends,

I want to read a list from sap-spool are the statement SUBMIT rep ... TO SAP-SPOOL. How can I do that ? Is there a Function Module to do this job ?

Thanks in Advance,

Rajesh

4 REPLIES 4
Read only

Former Member
0 Likes
781

Hi,

Use following fun module and BAPI for this:

SXMI_XBP_JOB_SPOOLLIST_READ

BAPI_XBP_JOB_SPOOLLIST_READ

BAPI_XBP_JOB_SPOOLLIST_READ_20

BAPI_XBP_JOB_SPOOLLST_READ_RW

reward points if useful

regards,

ANJI

Read only

0 Likes
781

Dear Anji,

These function modules are asking for import parameters like JOB_NAME, can you please give me an example where a report is read from the SPOOL.

Thanks,

Rajesh

Read only

Former Member
0 Likes
781

The sap spool value is stored in table TSP01 in field RQIDENT.

You can allways select your spool request no from this table taking the max value of RQIDENT from table TSP01 .

Read only

Former Member
0 Likes
781

Hi !!

Once you get teh spool number as shown in earlier reply pass that spool no to the FM ' MONI_CALL_SPOOLSHOW' and it will show your spool output to the user .

Let me know further if you have any issue.

Please also refer to the link 'http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm' here it shows how to get the Job no and spool number of a report when it is run in the background.