
Dynamically Activating XSF Output
Use
Independent of the static settings on XSF output, you may want to print a form in XSF format or select a different output mode or output device for the form output.
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
data: output_options type SSFCOMPOP,
job_output_info type SSFCRESCL.
output_options-xdfcmode = 'X'.
output_options-xdf = SPACE.
output_options-xsfcmode = 'X'.
output_options-XSF = 'X'.
output_options-XSFOUTMODE = 'S'.
output_options-XSFOUTDEV = 'P863'.

If the
TDDEST parameter of the output options contains a value, SAP Smart Forms ignores XSFOUTDEV .Result
Since the
XSFCMODE field is set, the value of field XSF determines whether OTF or XSF is generated (you cannot have both in the same call):
If
With output mode
'A' SAP Smart Forms returns the form as table. The table is returned using the XSFDATA parameter of the formal parameter JOB_OUTPUT_INFO of the generated function module.With output mode
'S' SAP Smart Forms sends the form to spool processing.