Global Declarations in the Function Group

Use

To be able to display your fields on the subscreen, you must perform some global declarations in the TOP include of your function group (in other words, in the function group in which the maintenance subscreen should be located).

Sample source text:

FUNCTION-POOL icl_brf_maintain.

TABLES:

sbrf142.

DATA:

go_instance TYPE REF TO if_maintenance_brf,

gc_this_program TYPE syrepid VALUE 'SAPLBRF_MAINTENANCE'.

Description:

  • TABLES statement:

    The TABLES statement enables you to use the structures declared here in your subscreen.

    • Structure SBRF142 is a simple structure.

      The fields of the structure should be displayed outside the Table Control .

  • DATA statement:

    The DATA statement declares the following fields/structures/tables:

    • GO_INSTANCE

      This provides a reference variable for the current instance of the maintenance class. You only need to declare this reference variable once per function group

    • The DATA statement provides the name of the current program as a constant.