SAP Smart Forms Output Types - SAP Smart Forms

What are different output types in SAP smart forms?

This chapter will give you detailed description about different output types of SAP Smart Forms. We will also discuss various Output Formats and Output Media along with an understanding on how to Run a Trace in SAP Smart Forms.

SAP Smart Forms – Output Formats

Smart forms can be printed in the Output Text format and many other output formats with different uses like – XML format for smart forms and HTML to display a form in the web browser.

Below output formats are some of the most commonly used ones

  • Output Text Format − This is a standard established output text format used for printing forms in a SAP system. It can also be converted into other formats like PDF.
  • XSF Output − This is an XML format used for smart forms. It consists of the form content of a processed form without showing any layout information.
  • HTML Format – Form can also be displayed in a Web browser. It is a combination of XSF output and HTML format where content is processed without any layout information and data is displayed in the form format to a web browser.
  • XDF Output − It is in an XML format which does not contain neither the form nor its layout and shows the data application passed at the form interface.

Output format setting is defined under Form Attributes. When a smart form is called, standard parameters can be used to override the output settings.


SAP Smart Forms – Output Media

A smart form can be sent to different output mediums. Few examples of different output mediums are

  • Printers
  • Fax
  • Emails or
  • XML formats

Smart forms are forwarded to other interfaces to transfer the form to different output media.

Example − To take printing output on a Printer, setup the Printer first.

To control the output, different parameters should be passed at the interface of smart forms. SAP Smart Forms can pass the parameter value to a different output medium.

Different output medium can be set for each output format

OTF Format

Different output processing methods can be used such as

  • Spool Processing
  • In E-mail
  • To Fax machine

Parameters values to send the form in Email − To send a smart form in an email, below email parameters should be filled for a generated function module.

  • MAIL_SENDER/MAIL_RECIPIENT − First set these parameters to pass the sender and the recipient of the document. To set the parameter values, create BOR objects of object type RECIPIENT and enter the parameters.
  • MAIL_APPL_OBJ Parameter − This parameter can be used to link the application object with the sent document. A BOR object can be created for this parameter too.

Parameters for sending form by Telefax − To send the form in a Fax format, you should first set the device parameter to TELEFAX instead of Spool mode. It will open a dialog box where the user can enter a Fax number to use the output medium as Fax.

XSF Format

XSF format can be passed to different output mediums such as

  • Spool Processing
  • Return as table in the Application program


To pass the output format for spool processing, you should pass the parameter to spool dialog of a SAP System. This dialog can be used to control the form output. Below mentioned are different options which can be used in a Spool Dialog

  • New Spool request
  • Defining retention time of a request in queue
  • To select a page
  • Link an authorization to spool request
  • Specify archive settings

HTML Format

HTML format output medium can be used to return it as a table in the application program.

SAP Smart Forms – Running Trace

This function allows you to helps in tracing the printing function of a smart form. Using this, it can trace how the printing request is processed for a smart form.

Transaction: SFTRACE

To perform a trace for the printing request, you can use Transaction: SFTRACE.


When the trace is activated using the function module generated for the smart form, it will store the trace on the database for each output.

This trace option can be used to determine the sequence in which nodes are processed or when the processing is terminated due to an error. This option is specific to users and it is recorded only for the user who activates it.

Trace Level

Trace level is used for determining how detailed the trace is. Trace level 5 consists of general information and trace level 80 determines the most detailed trace level. To activate Trace level, click on the Switch on option as shown in below screenshot.


Below settings are possible when a trace is active

  • Level − Detailed level in a trace output.
  • Logical Page − Used for restricting the trace output to a specific page. This is useful at Trace level 30.
  • Window − Used for restricting the trace output to a specific window in a smart form.
  • ABAP Break Point − These options are used internally while performing a trace level.


Trace Settings

Various trace levels are defined in Trace settings. Some of the most common ones are listed below


  • Warning or Error (Trace Level 5) − Trace level, trace version, date and time and system information.
  • Document Information (Trace Level 15) − This consists of additional information- Output channel, form attributes, form structure and output results.
  • Pages (Trace Level 30) – consist of name of the processed pages.
  • Window (Trace Level 40) − This consists of information about name of processed windows.
  • Output area (Trace Level 45) − This consists of information about table output areas.
  • Cell change (Trace Level 47) − This trace level is used contain outputs on line types and cells processed in tables.
  • Text information (Trace Level 50) − This consists of attribute values of processed output nodes.
  • Fields (Trace Level 60) − This consists of names and values of fields in output texts.
  • Scanner token (Trace Level 80) − This is the maximum trace level and defines the scanner outputs while analyzing texts in text nodes.

In the next chapter, we will discuss in detail about the Advance Development Concepts in SAP Smart Forms.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

SAP Smart Forms Topics