HR_SEN_EVALUATE_DURATION is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name HR_SEN_EVALUATE_DURATION into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
HRSEN00MODEL_EVALUATION
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HR_SEN_EVALUATE_DURATION' "
EXPORTING
p_pernr = " persno
p_tspst = " tspst
p_begda = " begda
p_endda = " endda
p_sdate = " d
p_crule = " psen_crule
* p_autho = " psen_autho
* is_tspst_control = " psen_tspst_control
* p_proto = " psen_proto
IMPORTING
p_durat = " psen_duration_dec
et_weight_period = " hrsen00_weight_period
et_weight_peak = " hrsen00_weight_peak_dec
EXCEPTIONS
E_MISSING_AUTHORIZATION = 1 "
E_OTHERS = 2 "
. " HR_SEN_EVALUATE_DURATION
The ABAP code below is a full code listing to execute function module HR_SEN_EVALUATE_DURATION including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_p_durat | TYPE PSEN_DURATION_DEC , |
| ld_et_weight_period | TYPE HRSEN00_WEIGHT_PERIOD , |
| ld_et_weight_peak | TYPE HRSEN00_WEIGHT_PEAK_DEC . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_p_durat | TYPE PSEN_DURATION_DEC , |
| ld_p_pernr | TYPE PERSNO , |
| ld_et_weight_period | TYPE HRSEN00_WEIGHT_PERIOD , |
| ld_p_tspst | TYPE TSPST , |
| ld_et_weight_peak | TYPE HRSEN00_WEIGHT_PEAK_DEC , |
| ld_p_begda | TYPE BEGDA , |
| ld_p_endda | TYPE ENDDA , |
| ld_p_sdate | TYPE D , |
| ld_p_crule | TYPE PSEN_CRULE , |
| ld_p_autho | TYPE PSEN_AUTHO , |
| ld_is_tspst_control | TYPE PSEN_TSPST_CONTROL , |
| ld_p_proto | TYPE PSEN_PROTO . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_SEN_EVALUATE_DURATION or its description.