‎2009 Oct 23 8:18 AM
Hi Experts.
I have a sap script form Ztest_F1 and print program Ztest_P. How do I convert the form into PDF and display it in ABAP web dynpro application? code sample is appreciated.
Thanks,
- Anthony-
‎2009 Oct 23 8:26 AM
Hi Anthony,
To convert SAP Script into PDF, first generate a Spool Request
Then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
Here enter the copied Spool request number and the target directory into the parameters
execute the report
Required pdf file will be generated into the target directory
i hope it will help you out....
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Regards,
Nitin.
‎2009 Oct 23 8:21 AM
‎2009 Oct 23 8:26 AM
Hi Anthony,
To convert SAP Script into PDF, first generate a Spool Request
Then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
Here enter the copied Spool request number and the target directory into the parameters
execute the report
Required pdf file will be generated into the target directory
i hope it will help you out....
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Regards,
Nitin.
‎2009 Oct 23 8:34 AM
Hi Nitin,
Thanks, In this case ZSPOOLTOPDF2 is the print program of a SAPScript Form?
submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
How can i get spool number?
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
What is this 'SPOOLTOPDF'?
Thanks,
-Anthony-
‎2009 Oct 26 5:49 AM
Problem solved! We can use open_form, ...close_form FMs to generate the spool request. Thanks!