2007 Apr 05 1:30 PM
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
2007 Apr 05 1:32 PM
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
2007 Apr 05 1:51 PM
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
2007 Apr 05 2:03 PM
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 .
2007 Apr 05 2:07 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |