Show TOC

 Transferring Own Data to a Smart Form or PDF-Based Form

Use

If the data defined in the form class is insufficient, or the structures do not correspond to the respective aim, you can define your own data areas in the user top include, fill them in a user exit, and use them in the related Smart Form or PDF-based form.

Procedure

  1. Define your own data as global variables in the user top include.

  2. Fill these variables with runtime data using user exits at appropriate places in the hierarchy.

  3. In the interface of the Smart Form or in the form interface of the PDF-based form, define import parameters with the same name as the variables in the user top include.Make sure that the data categories are identical, otherwise errors may occur. In addition to manual maintenance, you can also generate the data definitions in a user top include automatically in the respective form interface. To do this, choose Start of the navigation path Edit Next navigation step Smart Form Next navigation step Compare End of the navigation path or Start of the navigation path Edit Next navigation step PDF-Based Form Next navigation step Compare Form Interface End of the navigation path .

Result

You can use your own global data of an application in a Smart Form or PDF-based form in the same way as the standard data transferred.

Note Note

If you do not need the standard variables PWB_DATA and C in the form, or they disrupt, you can remove them from the form interface. The Print Workbench indicates that the standard parameters are missing by issuing warning messages that have no consequences.

End of the note.