Entering content frame

Function documentation Automatically Generated Variable Declarations Locate the document in its SAP Library structure

Use

With each form level or 1:1 level, a global work area and a global internal ABAP/4 table are defined. Both have the DDIC table structure that is defined in the attributes for the level. The naming of the global work area follows the convention WA_<level name>, the internal table T_<level name>. For the subsequent print process, the work areas are particularly important. They represent relevant data interfaces used, for example, in SAPscript texts for a user. The total of all global work areas represents the maximum data list for an application form.

This graphic is explained in the accompanying textIn application forms, you can use global data areas (WA_*) that are at the same hierarchical level or higher. 1:1 levels are at the same hierarchical level as the related form level. The applications are responsible for initializing the generated data areas. Since the generated print programs consist of function groups, data is retained, particularly for multiple calls.

Integration

The data declarations are generated by the Print Workbench automatically in a data area defined for this purpose. They are update with every change in the form class hierarchy.

Example

Source text of the form class PWB_FLIGHT_NOTIFICATION

***********************************************************************

*****THE FOLLOWING CODE IS GENERATED, NEVER CHANGE IT MANUALLY**********

**DATA ONLY FOR SYNTAX-CHECK, WILL NOT BE TRANSFERED TO PRINT PROGRAMS**

************************************************************************

*******************global table declarations****************************

DATA: T_CUSTOMER      TYPE TABLE OF SCUSTOM

                                WITH HEADER LINE.

DATA: T_BOOKING       TYPE TABLE OF SBOOK

                                WITH HEADER LINE.

DATA: T_FLIGHT        TYPE TABLE OF SPFLI

                         WITH HEADER LINE.

*******************global workarea declarations*************************

DATA: WA_CUSTOMER      TYPE SCUSTOM       .

DATA: WA_BOOKING       TYPE SBOOK         .

DATA: WA_FLIGHT       TYPE SPFLI          .

**end*******END-OF-GENERATED-CODE**************************************

 

Leaving content frame