2007 Mar 27 7:59 AM
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
2007 Mar 27 8:05 AM
2007 Mar 27 8:07 AM
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
2007 Mar 27 1:16 PM
Thanks for the reply but can u tell me how to find spool number which is required for that prog to execute??
Thnks
2007 Mar 27 8:17 AM
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
2007 Mar 27 10:08 AM
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
2007 Mar 27 10:10 AM
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
2007 Mar 27 10:25 AM
You must go for CONVERT_OTF.... function modules for ur requirement....
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |