‎2008 Aug 11 1:40 PM
Hi ,
I am working in 4.6c , my task is to save the report in pdf file format.
Previously it is storing in xls format. Now they want it in PDF format.
I have to run to the report, it has to generate a pdf file .
How to do it.
Thanks,
Balamurugan .R
‎2008 Aug 11 1:43 PM
Dear,
when u save in xml formate,in place of xml put the 'PDF'.
means change the extension of xml to pdf.
Thanks,
Edited by: jaten Sangal on Aug 11, 2008 2:44 PM
‎2008 Aug 11 1:47 PM
‎2008 Aug 11 2:04 PM
Hi,
Kindly check the FM CONVERT_OTF_2_PDF to save the output in PDF.
Thanks
Sudharshan
‎2008 Aug 12 6:29 AM
Hi Sudharshan,
Using FM CONVERT_OTF_2_PDF, where it will save the file and which name.
ws_download asking filename..
Give me an example to save my report in pdf file.
Thanks
Balamurugan.R
‎2008 Aug 12 6:50 AM
‎2008 Aug 14 6:45 AM
Hi Manjari,
My task is , if i run a report it has to produce a pdf file .
Throu sdn search , I tried using FM
RSPO_OPEN_SPOOLREQUEST
RSPO_WRITE_SPOOLREQUEST
RSPO_CLOSE_SPOOLREQUEST
CONVERT_ABAPSPOOLJOB_2_PDF
if I download the file using internal table which i get from 'convert_abapspooljob_2_pdf ' .
If i open the pdf file showing an error "contains no page"
if I produce a report and use print option and later if i convert using rstxpdf4 program , it is working fine.
Either i have to solve the error or any other method to convert .
Thanks,
Balamurugan.R
‎2008 Aug 14 9:22 AM
Hi Murugan,
Try The Below Code.
data: ssfcrescl type ssfcrescl.
data:gt_doctab_archive type table of docs,
gf_filesize type i,
pt_payslip_pdf type table of tline,
pt_payslip_otf type table of itcoo.
move ssfcrescl-otfdata[] to pt_payslip_otf[].
call function 'CONVERT_OTF_2_PDF'
importing
bin_filesize = gf_filesize
tables
otf = pt_payslip_otf
doctab_archive = gt_doctab_archive
lines = pt_payslip_pdf
exceptions
others = 3.
*Download PDF File
call function 'GUI_DOWNLOAD'
exporting
bin_filesize = gf_filesize
filename = 'c:/xyz.pdf' "Give yor own path here
filetype = 'BIN'
tables
data_tab = pt_payslip_pdf.
Thanks & Regards,
Shiva vs.