Output Media
You want to send your form to an output medium. This can be a printer, a fax, e-mail, or even output as an XML document.
The form output is controlled using the parameters of the generated function module. It is also said that the Smart Form
or form is called. Integrating the Smart Form into the Application describes how you call this module.
In addition, you can set the output format in the Form Builder in the Form Attributes (on the Output Options
tab). The same attributes appear in the standard parameters of the Smart Form (see Output Options). If the application does not pass any standard parameters, SAP Smart Forms takes the output settings from the form attributes.
To control form output directly using a Smart Form, you can pass other parameters at the interface of the Smart Form, depending on the output format. The SAP System must be configured according to the output medium. For example, you have to set up a printer in order for printer output. The settings required for this are too great for the scope of this documentation. The individual chapters refer to further information. However the services required for this should already be configured in a well-maintained system.
To control the output of a form directly using a Smart Form, you can transfer further parameters to the interface depending on the output format. SAP Smart Forms then forwards these parameters to the output interface (for example, for e-mail).
Output Depending on the Output Format
Output Format |
Output Options |
Passed to spool processing (default) |
|
Archiving the form |
|
Passed to spool processing (default) |
|
Returned as table in the application program (see also: Dynamically Activating XSF Output) |
|
Returning a Form as a Table in the Application Program |
|
Passed to spool processing |
With OTF, XSF, and HTML you can pass the form to the output interfaces yourself. Use a parameter of the generated function module to have the data returned to you and then forward it accordingly.