Output Media

Use

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.

Prerequisites

To be able to print forms on or send them to different output media, SAP Smart Forms forwards the form to other interfaces. In each case, the SAP System must be configured for that particular output medium. For printing output on a printer, for example, a printer must be set up. The settings required for setting up the different output media would go beyond the scope of this documentation, but each section gives references to more detailed documentation. Usually, in a well-administered system all the services you may need are configured.

Integration

Form output is controlled via parameters of the generated function module. This is also referred to as calling the Smart Form or the form. How to call this function module is described under Integrating the Smart Form into the Application.

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.

Features

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. SAP Smart Forms then forwards these parameters to the appropriate output interface (for example, for e-mail).

Output Depending on the Output Format

Output Format

Output

OTF

Passed to spool processing (default)

Sent as fax or in an e-mail

Archiving the form

Returned as table in the application program

XSF

Passed to spool processing (default)

Returned as table in the application program (see also: Dynamically Activating XSF Output)

HTML

Returned as table in the application program

XDF

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.