Show TOC

Retrieving Application DataLocate this document in the navigation structure

Use

To achieve a good performance when printing a form, you must separate data selection from the use of data in the form. Thus you can bundle database operations before you start processing the form.

The following questions need to be answered about the collection of the data:

  • What application data do you want to appear on the form?

  • Which database tables need to be accessed to get this data?

Process

You write an ABAP program that collects the data or you include an appropriate routine in your application. These routines usually consist of statements that select data from the database. You save the data in internal tables, structures, or variables, which you then bundle and send to the form.

Note

While you initialize the form, you can format the data, which you passed to the form, for output in the form. Formatting data in the form and not in the application program allows you to use one application program for several forms with different formatting routines.

Result

The data is saved to internal tables in the application program. You store the application data in internal tables of the application program. Since you know now which table types occur, you can define a form interface to transfer this data to the appropriate form.