Passing Data to the Form 

Purpose

You can pass any data retrieved by the data retrieval program to the form using the form interface. Since the system generates a function module from the Smart Form as soon as you activate it, the form interface equals that of the generated function module. For this reason, you can pass the same data in the form interface as you could pass to a function module. This includes data from database tables which the application wants to display on the form, but also variables that control output to the form. In addition, you can define exceptions to which the data retrieval program must react. To determine other settings for form printing, Smart Forms offers standard parameters whose definitions you cannot change.

See also: Architecture and Creating Forms Using SAP Smart Forms.

Process Flow

  1. In the data retrieval program, select all data you want to display in the form.
  2. In the Form Builder define the form interface. You know the parameter types from the data retrieval program.
  3. Activate your form. Smart Forms generates a function module. The application must call this function module to print the form.
  4. Call the Smart Form in your application. You can copy the interface from the function module.

Result

The generated function module triggers spool processing. The user can now preview the form and print it.