Form Output
You can send a PDF-based form to various types of output media. You can choose one of the following options:
...
● Printer
● Archiving
In this case, the form is forwarded to ArchiveLink. ArchiveLink is a communication interface that manages archiving systems in the SAP system. This interface allows you to link the form with application data, for example.

For more information, see the
ArchiveLink
documentation under
Storing Outgoing
Documents.
● Fax and e-mail
If you send
the form back to the application program as a PDF, the application program can
forward it to
Business Communication
Services, from where it can be sent as a fax or e-mail.
The form is sent to the output media through interfaces. The SAP system must be configured to be compatible with each output medium. For example, if you want to print your PDF form, you must configure a PCL-compatible printer.
To control the output of the form, you use various fields in a structure with the type SFPOUTPUTPARAMS. When the form is called in the application program, these fields are sent to the function module FP_JOB_OPEN as parameters (IE_OUTPUTPARAMS).

To see how function modules are called, see Example: Calling Forms in the Application Program.
For the individual fields of the structure SFPOUTPUTPARAMS and their meaning, see the ABAP Dictionary (transaction SE11).
Forms are sent to a printer by default; this is what happens when you use the initial values of the structure when you call FP_JOB_OPEN. You can modify the print parameters and the spool dialog parameters by setting the fields accordingly.

For more information, see Spool Processing and Controlling the Spool Dialog.
For general information about printing and printer setups, see
SAP Printing Guide
(BC-CCM-PRN)..
1. If you create the form output with a dialog, you see the spool dialog. Here, you specify an archiving mode for the document:
○ Archive only
○ Print and archive
If you create the form output without a dialog, specify the archiving mode in the ARCMODE field of the structure mentioned above.
○ Archive only: SFPOUTPUTPARAMS-ARCMODE = ’2’
○ Print and archive: SFPOUTPUTPARAMS-ARCMODE = ’3’

You use the NODIALOG field to display the output of the dialog. For more information, see Controlling the Spool Dialog.
2. You write at least one entry to the table with archive indexes (SFPDOCPARAMS-DARATAB).
3. The system forwards the form to ArchiveLink.
...
1. In your application program, set the field SFPOUTPUTPARAMS-GETPDF.
2. The system sends the generated PDF form back to the application program, where it can then be forwarded to the interface of the Business Communication Services.