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

Print Preview befor converting into PDF samrtforms

Former Member
0 Likes
1,084

Hello all,

I want to display the print preview of a smart form and from there i want to convert it to PDF.

If i set the Get OTF as 'X' then printpreview is not working ,only the pdf is creating.

I am using 'CONVERT_OTF' for conversion.

Is it possible to use PrintPreview and PDF.

I came to know through forum that we can achive this through 2 times calling the smartforms but i dont want to call smartforms 2 time.Is there any other way to achive this..

Please advice.

1 ACCEPTED SOLUTION
Read only

gouravkumar64
Active Contributor
0 Likes
983

Hi,

Sam rath I am telling u SHORTEST SOLUTION FOR THIS WITH OUT ANY CODING.

after print preview JUST WRITE 

PDF! in command .

It will convert to pdf & save all options

like this

Write PDF!  On command field and press Enter. Your PDF will get open in separate window which can be printed easily.

Thanks

Gourav.

6 REPLIES 6
Read only

sandeep_katoch
Contributor
0 Likes
983

Hi Sam,

Check this thread

http://scn.sap.com/thread/742677

hope this will solve your problem..

Read only

0 Likes
983

Thanks Sandeep for the quick respons,

Regards

Sam

Read only

gouravkumar64
Active Contributor
0 Likes
985

Hi,

Sam rath I am telling u SHORTEST SOLUTION FOR THIS WITH OUT ANY CODING.

after print preview JUST WRITE 

PDF! in command .

It will convert to pdf & save all options

like this

Write PDF!  On command field and press Enter. Your PDF will get open in separate window which can be printed easily.

Thanks

Gourav.

Read only

0 Likes
983

thanks Gaurav for ur Quick answer

Regards,

Sam.

Read only

0 Likes
983

Hello Gaurav

its working fine,but please clear my dought

1) Its not a t-code as it is not there in the table TSTCT

then what is this? not found in se93 ?

2) is there any short cut for creating word file?

and last one

3) i want to send mail of this generatd pdf ?its is possible by using function module as per my knowledge .is there any other way to send mail of ghe generated pdf with out using Function module from the system?

Regards,

Sam.

Read only

0 Likes
983

Hi,

1)From some website i found this.......it will works for MASS pdf also..... i do not know the exact logic behind this

2)For WORD i do not know any shortcut,

3)for send mail ,u will get many tutorial ,please search

One function module for this

SO_NEW_DOCUMENT_ATT_SEND_API1

Thanks

Gourav.