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

Output in PDF Format

Former Member
0 Likes
975

hi

I have the requirement to take output of the program in PDF file format

i got the output in TXT format through GUI_Download

but not able to convert it into PDF format .

Please Help if anybody has faced such a problem .

Thanks

hi

I have the requirement to take output of the program in PDF file format

i got the output in TXT format through GUI_Download

but not able to convert it into PDF format .

Please Help if anybody has faced such a problem .

Thanks

7 REPLIES 7
Read only

andreas_mann3
Active Contributor
0 Likes
938

look report RSTXPDFT4

A.

Read only

Former Member
0 Likes
938

Hi,

Do one thing there is one inbuild program from SAP ' RSTXPDFT4 ' . make one transaction code for this program and assign spool request no. it will convert that spool request to pdf format.

Waiting for reward,

Kapil Soni

Read only

0 Likes
938

Thanks for the reply but can u tell me how to find spool number which is required for that prog to execute??

Thnks

Read only

Former Member
0 Likes
938

refer this

Refer the following links:

use this function module.

call function 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = v_len_in

TABLES

otf = i_otf

lines = i_tline

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

others = 4.

  • Fehlerhandling

if sy-subrc <> 0.

endif.

Regards,

Message was edited by:

sunil kumar

Read only

Former Member
0 Likes
938

Hai,

U can use the function CONVERT_OTF with the format as PDF.

You can also use the function module CONVERT_OTF_2_PDF.

Regards,

Ajith

Read only

Former Member
0 Likes
938

hi,

FM is CONVERT_OTF.

CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1 
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.

also check sample programs

RSTXPDF4/5.

Regards

Reshma

Read only

Former Member
0 Likes
938

You must go for CONVERT_OTF.... function modules for ur requirement....