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

Converting Internal table to spool

Former Member
0 Likes
982

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

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

2 REPLIES 2
Read only

Former Member
0 Likes
479

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

Read only

Former Member
0 Likes
480

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