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

Report /save pdf format

0 Likes
935

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

7 REPLIES 7
Read only

Former Member
0 Likes
868

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

Read only

former_member404244
Active Contributor
0 Likes
868

Hi,

Check the belwo link

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

Regards,

Nagaraj

Read only

Former Member
0 Likes
868

Hi,

Kindly check the FM CONVERT_OTF_2_PDF to save the output in PDF.

Thanks

Sudharshan

Read only

0 Likes
868

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

Read only

0 Likes
868

CONVERT_ABAPSPOOLJOB_2_PDF

Read only

0 Likes
868

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

Read only

0 Likes
868

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.