Generate spool request and PDF
I have the below requirement in Scripts.
I need to generate spool request and also download the form as pdf simultaneously.
I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
*for that do declarations like this
data: v_spoolid type ssfcrescl.
data: v_spoolno type rspoid
*at last process a loop like this
loop at v_spoolid-spoolids into v_spoolno.
submit rstxpdft4 with spoolno = v_spoolno
the above is for smartforms.
and the below is the process for scripts
while executing the standard scripts driver progrram a spool id will be created
take that spoolid and go to transaction sp01. execute it
and goto se38 execute program rstxpdft4
type the spool request no.
and excute it , it will generate pdf for the spool no which u have given.
hope this will be useful for you.