Method GET_SCREEN_STRUCTURE
Use
ABAP-OO classes have no direct connection with screens and their elements. This means that the subscreens are located in function groups (or in programs). Data exchange takes place by way of SET and GET methods. You must implement these methods in the maintenance class.
In the PBO of a screen (realized in function module BRF_PBO) you can exchange a maximum of one structure and one table per subscreen.
Method GET_SCREEN_STRUCTURE transfers the SCR structure to the caller.
Sample source text:
METHOD IF_MAINTENANCE_BRF~SET_SCREEN_STRUCTURE .
IF iv_screen <> '2013' OR iv_program <> 'SAPLBRF_MAINTENANCE'.
CALL METHOD super->if_maintenance_brf~set_screen_structure
EXPORTING
iv_screen = iv_screen
iv_program = iv_program
is_screen = is_screen.
ELSE.
ds_brf142 = is_screen.
ENDIF.
ENDMETHOD.
Description:
At the beginning of the method, the system checks whether the method is responsible for subscreen 2013 of function group BRF_MAINTENANCE. If the method is not responsible, it delegates processing to the super-class.
As soon as method GET_SCREEN_STRUCTURE is called by subscreen 2013 of function group BRF_MAINTENANCE, the formatted screen structure ds_brf142 is transferred to the caller (in other words, to subscreen 2013).
You only ever transfer screen structures to the caller.