‎2007 Dec 27 9:25 AM
Hi All,
i am calling one report program from my program & exporting it's output to SAP-SPOOL using SUBMIT statement. I want to fetch the spool no in my program for this spool. Please guide me how this can be achieved? i have tried SYST- SPONO but it's not working.
Thanks & Regards,
Chetan.
‎2007 Dec 27 9:31 AM
Hi,
Initially check this it might be helpful to u.
http://help.sap.com/saphelp_sm40/helpdata/en/30/cc154219fce12ce10000000a1550b0/content.htm.
Even use the function module slike Job_open , Job_close this is also one of the methid to achive spool requests.
Regards,
Sana.
Reward with points if found helpful..
‎2007 Dec 27 9:34 AM
Use this structure to find all the system fields in ABAP
Structure name: SYST
If usefull reward points helpfull
‎2007 Dec 27 9:41 AM
From table TSP01 you can get RQIDENT(spool req no) and can pass this to submit.
Check the sample code.
select max( RQIDENT ) from tsp01 into wa_tsp02_2-pjident
where RQOWNER = sy-uname.
if sy-subrc = 0.
submit rstxpdft4 with SPOOLNO = wa_tsp02_2-pjident and return.
if sy-subrc = 0.
message i000(000) with 'PDF is created for the selected Invoice'.
endif.
Reward if useful.