cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform

Former Member
0 Kudos

Hello,

Is there any way that I cud print my smartform in Adobe. I mean like is there any setting that when I take a printout of the form the form automatically opens in PDF?

Thanks

Viky

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vicky,

Check these posts

Smartform to PDF

Regards,

Satish

Answers (1)

Answers (1)

Former Member
0 Kudos

What you can do is print the smartform to spool and convert the spool to pdf and download it.

Here is a sample to covert spool to pdf,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d...

Infact a code for you requirement is aleady here

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc...

Regards

Kathirvel

Former Member
0 Kudos

In fact,

I dont want to send the form thru email and I want to see it when I say Print Preview in a PDF format.How do I achieve this..

Thanks

Viky

Former Member
0 Kudos

What you can do is view the smart form in print preview and then you can convert as PDF.

Do achieve that,

In the control_parametres that you use for calling the SMARTFORM set NO_DIALOG = ' ' and PREVIEW = ' X ' and in the output_options set TDNOPREV = ' ' and collect the job_output_info data.

This will give a Print Preview. Then for converting the form as PDF call the CONVERT_OTF and setting the format as PDF and pass the job_output_info-otfdata.

This will get you the PDF content which can be downloaded.

Something I could find that could solve your problem,

http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/re-smartform-pdf-convert-1096718

Regards

Kathirvel

Message was edited by:

Kathirvel Balakrishnan

Former Member
0 Kudos

Hi Vicky,

Use the function module SSFCOMP_PDF_PREVIEW.

Before calling the function make ls_control_param-getotf = 'X' where ls_control_param is of type SSFCTRLOP.

Hope this helps.

Thanks & Regards,

Vanita M.