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: 

output an ALV list to PDF format directly using FM or some sort.

Former Member
0 Kudos

hi there,

do you guys think that there is a method to output an ALV to pdf format directly?

like how we export ALV to excel using 'gui download'.

i found a method where we need to create a smartform and convert the otf data return by the smartform to pdf.

i would just like you pros out there to clarify if there is no such method mentioned above i will proceed with the smartform method..thanks..

regards,

soo

1 ACCEPTED SOLUTION

agnihotro_sinha2
Active Contributor
0 Kudos

hi,

Create a spool request using FM: RSPO_DOWNLOAD_SPOOLJOB

Use the spool number generated and pass it to this report given by AD. >RSTXPDFT4.

Use : SUBMIT REPORT with PARAMETERS SPOOLNO and RETURN.

help:: http://help.sap.com/saphelp_45b/helpdata/en/d9/4a99d051ea11d189570000e829fbbd/content.htm

ags.

3 REPLIES 3

Former Member
0 Kudos

Hi Soo,

In case where TOP OF PAGE event is used in list output there with the first WRITE statement a spool is generated.

This spool can be converted to PDF by using Function Module CONVERT_ABAPSPOOLJOB_2_PDF. You can generate the spool of ALV to pass to this FM for PDF.

Former Member
0 Kudos

Hi,

The best and easy is samrtform.In the other method , a report (RSTXPDFT4) is made available for the missing "direct PDF printing", which can read spool requests, convert to PDF and perform a frontend download.

agnihotro_sinha2
Active Contributor
0 Kudos

hi,

Create a spool request using FM: RSPO_DOWNLOAD_SPOOLJOB

Use the spool number generated and pass it to this report given by AD. >RSTXPDFT4.

Use : SUBMIT REPORT with PARAMETERS SPOOLNO and RETURN.

help:: http://help.sap.com/saphelp_45b/helpdata/en/d9/4a99d051ea11d189570000e829fbbd/content.htm

ags.