Application Development 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: 

SALV to PDF

Former Member
0 Kudos

Hi ,

I have developed a report using SALV ( OO ALV) . now i have a requirement where in the report should be exported as a PDF file. On searching in SDN I found that CONVERT_ABAPSPOOLJOB_2_PDF and GUI_DOWNLOAD should be used inorder to convert teh Spool request to PDF output. But in CONVERT_ABAPSPOOLJOB_2_PDF there is a parameter 'src_spoolid" to whcih the SPOOL ID shoudl be passed, How do i get teh spool ID?

Thanks,

Maansi

3 REPLIES 3

Former Member
0 Kudos

Hi Maansi,

I think SY-SPONO will give you the spool id.

Check these links, they have similar question like yours:

1. [Spool problem1.|;

2. [Spool problem2.|;

Check the [sample code|http://sapprograms.blogspot.com/2008/11/convert-spool-request-to-pdf-and-send.html].

May it helps you.

regards.

DS.

Former Member
0 Kudos

hi ,

Use the standard program RSTXPDFT4 you got the spool no ,

Regards,

Ansari

0 Kudos

Hi,

Please check this link

http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES

Regards,

Nikhil