Method GET_SCREENS

Use

The GET_SCREENS method transfers the subscreens used by the maintenance class to the caller.

Sample source text:

method IF_MAINTENANCE_BRF~GET_SCREENS .

DATA:

ls_screens TYPE sbrf_mnt_screen.

CALL METHOD super->if_maintenance_brf~get_screens

IMPORTING

et_screens = et_screens.

ls_screens-index = 2.

ls_screens-screen = '2013'.

ls_screens-program = 'SAPLBRF_MAINTENANCE'.

ls_screens-instance = me.

APPEND ls_screens TO et_screens.

endmethod.

Description:

To start with, the same-name method of the superclass is called. This means that the method can register the subscreens of the superclass.

The following rules apply:

  • The superclass occupies the positions (field Index) 1 and 4.

    Administrative data and the text description are displayed in these positions 1 and 4.

  • The subclasses occupy positions 2 and 3.

Note that the subclass has the possibility of replacing the subscreens of the superclass with other subscreens. The deciding factor is what the specialization class delivers in table et_screens.

In this example, subscreen 2013 (from function group BRF_MAINTENANCE) is assigned to position 2.

The program name of a function group comprises the name of the function group, preceded by "SAPL".