Method FMOD
Use
In this method you can use field modifications to control the following characteristics of screen elements:
-
Visibility of screen elements (visible / not visible)
-
Input behavior of screen elements (ready for input / not ready for input)
For example, with the activity type Display you can set all screen elements to 'Not Ready for Input'.
In addition, in the following sample source text, the fields that characterize the result type of the expression are always set to 'Not Ready for Input'.
Sample source text:
method IF_MAINTENANCE_BRF~FMOD .
IF iv_screen <> '2013' or iv_program <> 'SAPLBRF_MAINTENANCE'.
CALL METHOD super->if_maintenance_brf~fmod
EXPORTING
iv_screen = iv_screen
iv_program = iv_program
CHANGING
cs_screen = cs_screen.
IF cs_screen-name = 'SBRF150-RESULT_TYPE' OR
cs_screen-name = 'SBRF150-RESULT_LENGTH' OR
cs_screen-name = 'SBRF150-RESULT_OUT_LEN' OR
cs_screen-name = 'SBRF150-RESULT_DECIMALS'.
cs_screen-input = 0.
ENDIF.
ELSE.
CASE mv_edit_mode.
WHEN '1'.
WHEN '2'.
WHEN '3'.
cs_screen-input = 0.
ENDCASE.
ENDIF.
endmethod.