Use
An XSF schema uses XML to describe the contents of a form. All the data you pass to the form from the form interface and include in the form is visible in the XSF data stream as the body of the
<sym> tag, for example, the value 1349,00 in:<sym name="WA_BOOKING-FORCURAM">1349,00</sym>
The XSF schema does not contain information on the type of
WA_BOOKING, since this format only describes the form output. The symbol values have already been formatted according to the specified currency and language.Applications that call forms in the SAP System actually 'know' which data they passed to the form at the form interface. However, if you want to process this data outside the SAP System, the XSF schema is not sufficient.
In this case, you can use the XDF format. This enables you to transfer the data of a form call to
spool processing or to return it as a table.
See also:
Prerequisites
To output XDF using spool processing, at least one printer of type
'PLAIN' must be set up in the system. SAP Smart Forms stores XDF in the spool in binary format to ensure that no information is lost during a conversion (see also: Output of XML Documents).Features
An XDF document contains both the import and table parameters passed by the application and the defined
standard parameters. Even if the application did not pass any parameters, there is a tag that contains the following information for each parameter defined in the form interface:The values of these attributes are determined at the time of the call. The body of each tag contains the values passed by the application. To present the values, SAP Smart Forms uses the same XML representation as the Interface Repository. For more information on mapping ABAP data types to this representation, see
http://ifr.sap.com/home/Documents/ABAP_Serialization.htm.
Numeric values for which it is undecided whether the value is 0 or initial are included in the output.
Activities
Statically Activating XDF Output in the Form
Dynamically Activating XDF Output in the Function Module Call
data: output_options type SSFCOMPOP.
output_options-xdfcmode = 'X'.
output_options-XDF = 'X'.
output_options-XDFOUTMODE = 'S'.
output_options-XDFOUTDEV = 'P863'.

If the
TDDEST parameter of the Output Options is filled with a value, SAP Smart Forms ignores XSFOUTDEV.Returning XDF as a Table (XSFOUTMODE='A')
The XDF table is passed with the same parameters as with XSF output, that is, with the
XML/HTML output structure (XMLOUTPUT) of the standard export parameter JOB_OUTPUT_INFO.