2009 Jan 06 6:11 AM
Hi,
In me22n there is a print preview button and wheni click it its showing the PO.
I need it to store in my system in PDF format,Is it possible.
Please give me some guidelines how to do this.
2009 Jan 06 6:12 AM
click on the print button of Print Prieview
then u will get the spool number.
go to SE38 -> report name 'RSTXPDFT4' run it and give the spool number and run that report.
It will ask you to save that print in PDF.
2009 Jan 06 6:12 AM
click on the print button of Print Prieview
then u will get the spool number.
go to SE38 -> report name 'RSTXPDFT4' run it and give the spool number and run that report.
It will ask you to save that print in PDF.
2009 Jan 06 6:13 AM
Hi Ramya,
You can use FM CONVERT_OTF for this purpose.
This FM is used to convert the OTF format (From Script /Smartform) to the PDF or ASCI format.
OTF will be generated after the Smart form / Script displayed
You can get the OTF from the SMART_FORM function module parameters.
In case of SAP Script, it will come from CLOSE_FORM Function.
Or you can use program RSTXPDFT4 in se38 for the same.
Here you need to pass spool number that you will get from Transaction SP02.
Regards,
Nitin.
Edited by: Nitin Karamchandani on Jan 6, 2009 7:14 AM
2009 Jan 06 6:16 AM
hi,
you can use 'CONVERT_OTF'
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_SIZE
BIN_FILE = PDF_DATA
TABLES
OTF = LT_OTFDATA[]
LINES = L_DUMMY
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
thanks
2009 Jan 06 6:20 AM
u need to make changes to ur smartform print program.
check this wiki for code.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/smartform%2boutput%2bto%2bpdf%2bformat
кu03B1ятu03B9к
2009 Jan 06 6:41 AM
Hi Ramya,
Thers is not facility to display PO in pdf format.
Write enhancemnt or user exit to convert the spool into pdf.
Use CONVERT_OTF fm to create the pdf document using spool number .