‎2008 Jul 14 8:06 PM
What is the simplest method to convert a report to PDF. The report is based on the content of an internal table.
My understanding one option is:
- send report to spool and then convert spool to PDF using FM CONVERT_OTF
- Do I need to use FM SET_PRINT_PARAMETERS to set spool parameters
Any code example evailable?
‎2008 Jul 14 8:27 PM
Hi Raynald,
Check below link, it contains sample code to convert report to PDF
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Best Regards,
Brijesh
‎2008 Jul 14 8:11 PM
The simplest method to create a pdf is from the spool.
If you execute the report in foreground, you need to submit to the same program so that the program runs in background and creates a spool with the output contents.
Then you read this spool and pass it to the FM - CONVERT_ABAPSPOOLJOB_2_PDF
to create it to spool.
When you run the program in background, the spool is automatically created.
cheers,
Sushil Joshi
‎2008 Jul 14 8:27 PM
Hi Raynald,
Check below link, it contains sample code to convert report to PDF
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Best Regards,
Brijesh