Application Development 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: 

How to fetch the spool no in program.

Former Member
0 Kudos
112

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.

2 REPLIES 2

Former Member
0 Kudos
86

Hello Chetan

Check out the below code.I did by taking spool id

DATA : ITCPP_STRUCT TYPE ITCPP.

SUBMIT RSTXPDFT4 WITH SPOOLNO = ITCPP_STRUCT-TDSPOOLID AND RETURN.

Former Member
0 Kudos
86

Hello Chetan

Check out the below code.I did by taking spool id

DATA : ITCPP_STRUCT TYPE ITCPP.

SUBMIT RSTXPDFT4 WITH SPOOLNO = ITCPP_STRUCT-TDSPOOLID AND RETURN.