
Returning a Form as a Table in the Application Program
Use
By default, at the end of the form processing, SAP Smart Forms sends the form to spool processing. However, you can use the standard parameters to send the form to different
output media instead (for example, to the BCI to send the form by e-mail). At the interface of the generated function module, SAP Smart Forms provides standard parameters for the selection of transmission settings. In many cases, this selection may not be comprehensive enough (for example, if the sender wants to receive the document in their SAPoffice outbox when it is sent). In such a case, the application can request the form to be returned as a table and can then address the relevant BCI interface itself.
This section describes how
Activities
If you want the form to be returned as a table in OTF format, proceed as follows:
DATA: my_control_pars TYPE ssfctrlop. "for CONTROL_PARAMETERS
DATA: my_output_info TYPE ssfcrescl. "for JOB_OUTPUT_INFO
my_control_pars-no_dialog = 'X'.
my_control_pars-getotf = 'X'.
You can now access the OTF table in the formal parameter
JOB_OUTPUT_INFO using the OTFDATA parameter of your structure.
If the