These fields can be further read in the Generic Service as special field for any purpose, example validation/data filtering, and etc.
Or this can be further pass to your form need to be behaved accordingly based on the scenario step (FORM_SCENARIO_STAGE) and initiator(INITIATOR_ROLE).
How to do this?
1. Add this in your generic service IF_HRASR00GEN_SERVICE~GET_SPECIAL_FIELDS method
DATA lc_form_scenario_stage TYPE CHAR20 VALUE 'FORM_SCENARIO_STAGE'.
DATA lc_initiator_role TYPE CHAR20 VALUE 'INITIATOR_ROLE'.
" Append fields that's to be read in others method
APPEND lc_form_scenario_stage TO special_fields.
APPEND lc_initiator_role TO special_fields.
2. You should able to read these 2 fields value in method below:
IF_HRASR00GEN_SERVICE~INITIALIZE
IF_HRASR00GEN_SERVICE~DO_OPERATIONS
IF_HRASR00GEN_SERVICE~GET_HELP_VALUES
No comments:
Post a Comment