Show TOC

Passing Data to the FormLocate this document in the navigation structure

Use

You can pass any data retrieved by the application 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 application program must react. To determine other settings for form printing, SAP Smart Forms offers standard parameters whose definitions you cannot change.

Process
  1. In the application program, select all data you want to display in the form.

  2. In Form Builder the define the form interface. You know the parameter types from the applications program.

  3. Activate your form. SAP 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.