Statically Activating XSF Output

Use

If you want the output of a form to always be in XSF format, you can set this format statically in the SAP Form Builder. However, you can overrule this setting from within the application program if required (see: Output Options).

Prerequisites

If you want to use spool processing for XSF output, in the system at least one printer of type 'XSF' must be set up. SAP Smart Forms stores XSF in the spool in binary format to prevent information from being lost in conversions (see also: Output of XML Documents).

Procedure

  1. Call your form in change mode and double-click on the Form Attributes node.
  2. On the Output Options tab you find the Output box. To statically activate XSF output, set the Output Format to XSF Output.
  3. Select an Output Mode:
    • A (Application): At the function module interface, SAP Smart Forms returns the form as table to the application program (see: Dynamically Activating XSF Output).
    • S (Spool): SAP Smart Forms sends the form to spool processing. Now you can specify an output device. It should have printer type 'XSF' .
  1. Activate your form.

Result

As long as you do not overrule the static setting from within the application program, SAP Smart Forms returns the form in XSF format when you call the generated function module.