Start of Content Area

Function documentation Output in OTF Format (Standard Output)  Locate the document in its SAP Library structure


The Output Text Format (OTF) is the established SAP output format for printing forms. It consists of a number of simple, device-independent commands, thus allowing output to be directed to different output devices such as line printers and laser printers, or as an on-screen print preview. OTF is an explicit output format, which means that once SAP Smart Forms has generated an OTF output, no modifications can be made.


OTF is set as the default in the Form Builder.


OTF is usually output using spool processing. For this output, a printer must be set up in the system with a device type that understands OTF.


See also: SAP Printing Guide (BC-CCM-PRN).


You can convert OTF into other formats:


Activating OTF Statically

In the Form Attributes in the Form Builder, go to the Output Options tab page and set the Output Format in the Output box to Standard Output. The attributes Output Mode and Output Device are not filled and are locked.

By default, OTF output is sent to spool processing. The printer specified in the printer settings is used as the output device (prerequisite: the standard parameter USER_SETTINGS is set; otherwise a printer must be specified either dynamically using the spool settings or manually in the spool dialog).


See also: Default Settings (Standard Output).

For information on other output options, see Output Media.

Activating OTF Dynamically

There is no standard parameter for activating OTF output dynamically. OTF is the default output format. To override this setting, activate either XSF output, HTML output, or XDF output. However, even if one of these output formats is set in the form, you can still use OTF output:

  1. Define a structure for the output options (type: SSFCOMPOP):
  2. data: output_options    type SSFCOMPOP.

  3. Deactivate all other output formats set in the form:
  4. * Deactivate XDF

    output_options-xdfcmode = 'X'.
    output_options-xdf = SPACE.

    * Deactivate XSF and XSF + HTML

    output_options-xsfcmode = 'X'.
    output_options-xsf = SPACE.


    Since HTML output is based on XSF, you only need to deactivate XSF output.

  5. Now you can set other parameters for standard output. Some parameters are already set in the default settings (see Default Settings (Standard Output)).
  6. Call the generic function module and pass the output_options structure to the standard parameter with the same name.






End of Content Area