Options for XML/HTML Output

Besides the standard format for print output (OTF), SAP Smart Forms offers the following output formats:

The parameters below refer to these output formats. It is not possible to generate several different output formats in one call of the generated function module.

Back to: Output Options

Options for XSF Output

Parameter Name

Component Type
Data Type(Length)

Description

XSFCMODE

SSFXSFCMOD
CHAR(1)

Use this parameter to determine which settings you want to evaluate for XSF:

  • XSFCMODE = SPACE: SAP Smart Forms copies the static settings in the form, see Output Options. The XSFFORMAT parameter is set automatically for HTML output (see below).
  • XSFCMODE = 'X'. Instead of the static settings, SAP Smart Forms evaluates the parameters XSF, XSFOUTMODE, and XSFOUTDEV.

This parameter does not determine whether there is an XSF output, but rather whether the settings made in the form or those made in this structure are evaluated.

XSF

SSFXSF
CHAR(1)

If set and if XSFCMODE = 'X' (see above), the generated output is XSF, otherwise it is OTF or XDF. You cannot have more than one output format at the same time. For an output in HTML format, XSF output must have been activated.

XSFOUTMODE

SSFXSFOMOD
CHAR(1)

Use this parameter to specify the output mode:

  • XSFOUTMODE=‘A‘ (Application): You get XSF output using the export parameter JOB_OUTPUT_INFO-XMLOUTPUT-XSFDATA.
  • XSFOUTMODE=‘S‘ (Spool): SAP Smart Forms creates a spool request for XSF output and returns its ID using the export parameter JOB_OUTPUT_INFO-SPOOLIDS.

See: Querying the Output Result.

XSFOUTDEV

RSPOPNAME
CHAR(4)

Prerequisite: XSFOUTMODE = 'S'.

Determines the output device in the spool (usually a printer name of type XSF). If TDDEST is filled as well, the system ignores XSFOUTDEV.

Output in HTML Format

Output in HTML format enables you to develop Web forms for Internet applications. The following parameters only have an effect if XSF output was activated before (see below).

Parameter Name

Component Type
Data Type(Length)

Description

XSFFORMAT

SSFXSFFRMT
CHAR(1)

Prerequisite: XSFOUTMODE = 'A'.

If set, SAP Smart Forms uses an XSLT program to create CSS and HTML output, in addition to XSF. The CSS style sheet is embedded in the HTML output. See: Output in HTML Format and XML/HTML Output Structure.

XSFACTION

SSFACTION
CHAR(255)

Prerequisite: XSFFORMAT = 'X'.

Determines the URL to which you want to pass the values of the HTML form. See also: Evaluating Form Input.

Options for XDF Output

The XDF document contains all data that you pass at the interface of the Smart Form.

Parameter Name

Component Type
Data Type(Length)

Description

XDFCMODE

SSFXDFCMOD
CHAR(1)

Use this parameter to determine which settings you want to evaluate for XDF:

  • XDFCMODE = SPACE: SAP Smart Forms copies the static settings in the form (see Output Options).
  • XDFCMODE = 'X'. SAP Smart Forms evaluates the parameters XDF, XDFOUTMODE, and XDFOUTDEV instead of the static settings.

This parameter does not determine whether there is an XDF output, but rather whether the settings made in the form or those made in this structure are evaluated.

XDF

SSFXDF
CHAR(1)

If set and if XDFCMODE = 'X' (see above), the output is XDF, otherwise it is OTF or XSF. You cannot have more than one output format at the same time.

XDFOUTMODE

SSFXDFOMOD
CHAR(1)

Use this parameter to specify the output mode:

  • XSFOUTMODE=‘A‘ (Application): You get XDF output using the export parameter JOB_OUTPUT_INFO-XMLOUTPUT-XSFDATA (this is not a typing error!).
  • XSFOUTMODE=‘S‘ (Spool): SAP Smart Forms creates a spool request for XDF output and returns its ID using the export parameter JOB_OUTPUT_INFO-SPOOLIDS.

For XDF output, SAP Smart Forms creates a spool request and returns its ID using the export parameter JOB_OUTPUT_INFO-SPOOLIDS.

See: Querying the Output Result.

XDFOUTDEV

RSPOPNAME
CHAR(4)

If you have set XDFOUTMODE to 'S', you can use this parameter to specify an output device for the spool output (usually a printer name of type XSF). If TDDEST is filled as well, XDFOUTDEV is ignored.