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

pdf format

Former Member
0 Likes
882

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
710

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.

5 REPLIES 5
Read only

Former Member
0 Likes
711

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.

Read only

Former Member
0 Likes
710

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

Read only

Former Member
0 Likes
710

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

Read only

Former Member
0 Likes
710

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к

Read only

Former Member
0 Likes
710

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 .