05-04-2009 9:52 AM
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
05-04-2009 10:18 AM
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.
05-04-2009 10:10 AM
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.
05-04-2009 10:11 AM
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.
05-04-2009 10:18 AM
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.