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

Getting Spool request at runtime

Former Member
0 Likes
603

Hi folks,

I am trying to execute a ALV report in background. How can we generate spool at runtime if we execute our report background...Thanks in advance,,

Ram...

4 REPLIES 4
Read only

nikhil_chitre
Active Participant
0 Likes
555

Hi,

Us eFM 'FTR_CORR_SHOW_SPOOL'

regards,

Nikhil

Read only

0 Likes
555

Hi Nikhil,

I want the spool no for the current program, if we execute it in background...

Read only

former_member196280
Active Contributor
0 Likes
555

Try to use the below code to get the spool number during runtime.

Ex:

concatenate repid+0(9)

uname+0(3) into lc_rq2name.

select * from tsp01 where rq2name = lc_rq2name

order by rqcretime descending.

f_rqident = tsp01-rqident.

exit.

endselect.

I guess this will help yout to close the thread.

Regards,

SaiRam

Read only

0 Likes
555

Hi ,

Thanks for ur answer. I checked in debuging. Spool request is able to generate at runtime. But the attachement which is coming to mail is unable to open. It says a eror message 'no pages contain'. But instead if i hardcore any spool no in the pgm..then can able to open PDF atachemtn..what might be wrong..could any one help me out ....