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

Calling one report program from another

Former Member
0 Likes
349

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.

3 REPLIES 3
Read only

Former Member
0 Likes
311

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..

Read only

Former Member
0 Likes
311

Use this structure to find all the system fields in ABAP

Structure name: SYST

If usefull reward points helpfull

Read only

Former Member
0 Likes
311

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.