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

Creating a spool for List output

Former Member
0 Likes
956

Hi Gurus,

I have created a program to display list output using WRITE statements. Now I need to download the list output into PDF.

I am not aware of the steps in creating a spool for the LIST output.

Please help me out on this.

Regards,

Gopinath GS.

1 ACCEPTED SOLUTION
Read only

franois_henrotte
Active Contributor
0 Likes
891

before issuing the first WRITE statement, put this:

NEW-PAGE PRINT ON PARAMETERS ws_params NO DIALOG.

ws_params is of type PRI_PARAMS (available in DDIC)

the list will then be written into a spool

Hi Gurus,

I have created a program to display list output using WRITE statements. Now I need to download the list output into PDF.

I am not aware of the steps in creating a spool for the LIST output.

Please help me out on this.

Regards,

Gopinath GS.

5 REPLIES 5
Read only

franois_henrotte
Active Contributor
0 Likes
892

before issuing the first WRITE statement, put this:

NEW-PAGE PRINT ON PARAMETERS ws_params NO DIALOG.

ws_params is of type PRI_PARAMS (available in DDIC)

the list will then be written into a spool

Read only

Former Member
0 Likes
891

Hi

Please have a look into this:

http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm

To download the pdf, you can use report RSTXPDF4 and the location to Save

Shiva

Read only

Former Member
0 Likes
891

Hi,

Thanks for the replies.

I tried creating a spool. The spool is getting created. But the list output is not getting displayed.

In the spool I could see the list output.

In my requirement the list output should be displayed and then only I must create the spool for downloading into PDF.

Please provide your suggestions

Thanks,

Gopinath GS

Read only

0 Likes
891

Hi,

Try to understand the code given in the link

http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm this will solve ur problem

or

show ur example code what ur doing.

Regards,

Venu

Read only

0 Likes
891

then I recommend you to use function module LIST_DOWNLOAD_HTML

it is HTML and not PDF but the output is better (with colors and so on) and this is a one-step process

if you still want to do it in PDF then you output your list normally then

- call function module SAVE_LIST

- with the table returned, you call function module LIST_CONVERT_TO_RTF_FROM_LIST

- finally you convert RTF to PDF