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

SMARTFORM

Former Member
0 Likes
482

Hi ,

I have developed a SMARTFORM which looks good. But when i use TCODE "PDF!" it looks better than the normal SF.

When i give print the SF is coming as normal one not as PDF!.

is there any way to make a SF look and feel much better or like PDF! when we give a print?

Thanks

Vijay Vikram

2 REPLIES 2
Read only

Former Member
0 Likes
440

Try passing the OTF table of the smartform to the function module SSFCOMP_PDF_PREVIEW.

To get the OTF Format

While calling the smartform get the importing parameter job_output_info and get the details of table otfdata in job_output_info.Pass the importing parameter control_parameters with

getotf  = 'X' and no_dialog = 'X'.


Read only

0 Likes
440

To print a Smart Form in PDF, the Smart Forms OTF output has to be converted to PDF.

The restrictions in Note 323736 apply to all the options listed below for PDF conversion.

You can print a Smart Form in PDF as follows:

  • As of Basis Release 4.6D, you can use the device type PDF1 to print documents in PDF. This device type does not, however, contain all possible fonts and has to be extended for customer-specific fonts. See Note 317851 for PDF output in older releases.
  • You can return OTF as a table in the application program and convert this output to PDF. You can dynamically assign a device type for multi-lingual forms, using a function module (see Activities).
  • You can activate a PDF conversion when printing a Smart Form using SAPconnect.

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