SAP HR_SEN_EVALUATE_DURATION Function Module for









HR_SEN_EVALUATE_DURATION is a standard hr sen evaluate duration SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hr sen evaluate duration FM, simply by entering the name HR_SEN_EVALUATE_DURATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRSEN00MODEL_EVALUATION
Program Name: SAPLHRSEN00MODEL_EVALUATION
Main Program: SAPLHRSEN00MODEL_EVALUATION
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_SEN_EVALUATE_DURATION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HR_SEN_EVALUATE_DURATION'"
EXPORTING
P_PERNR = "
P_TSPST = "
P_BEGDA = "
P_ENDDA = "
P_SDATE = "
P_CRULE = "
* P_AUTHO = "
* IS_TSPST_CONTROL = "
* P_PROTO = "

IMPORTING
P_DURAT = "
ET_WEIGHT_PERIOD = "
ET_WEIGHT_PEAK = "

EXCEPTIONS
E_MISSING_AUTHORIZATION = 1 E_OTHERS = 2
.



IMPORTING Parameters details for HR_SEN_EVALUATE_DURATION

P_PERNR -

Data type: PERSNO
Optional: No
Call by Reference: Yes

P_TSPST -

Data type: TSPST
Optional: No
Call by Reference: Yes

P_BEGDA -

Data type: BEGDA
Optional: No
Call by Reference: Yes

P_ENDDA -

Data type: ENDDA
Optional: No
Call by Reference: Yes

P_SDATE -

Data type: D
Optional: No
Call by Reference: Yes

P_CRULE -

Data type: PSEN_CRULE
Optional: No
Call by Reference: Yes

P_AUTHO -

Data type: PSEN_AUTHO
Optional: Yes
Call by Reference: Yes

IS_TSPST_CONTROL -

Data type: PSEN_TSPST_CONTROL
Optional: Yes
Call by Reference: Yes

P_PROTO -

Data type: PSEN_PROTO
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HR_SEN_EVALUATE_DURATION

P_DURAT -

Data type: PSEN_DURATION_DEC
Optional: No
Call by Reference: Yes

ET_WEIGHT_PERIOD -

Data type: HRSEN00_WEIGHT_PERIOD
Optional: No
Call by Reference: Yes

ET_WEIGHT_PEAK -

Data type: HRSEN00_WEIGHT_PEAK_DEC
Optional: No
Call by Reference: Yes

EXCEPTIONS details

E_MISSING_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

E_OTHERS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_SEN_EVALUATE_DURATION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_p_durat  TYPE PSEN_DURATION_DEC, "   
lv_p_pernr  TYPE PERSNO, "   
lv_e_missing_authorization  TYPE PERSNO, "   
lv_p_tspst  TYPE TSPST, "   
lv_e_others  TYPE TSPST, "   
lv_et_weight_period  TYPE HRSEN00_WEIGHT_PERIOD, "   
lv_p_begda  TYPE BEGDA, "   
lv_et_weight_peak  TYPE HRSEN00_WEIGHT_PEAK_DEC, "   
lv_p_endda  TYPE ENDDA, "   
lv_p_sdate  TYPE D, "   
lv_p_crule  TYPE PSEN_CRULE, "   
lv_p_autho  TYPE PSEN_AUTHO, "   
lv_is_tspst_control  TYPE PSEN_TSPST_CONTROL, "   
lv_p_proto  TYPE PSEN_PROTO. "   

  CALL FUNCTION 'HR_SEN_EVALUATE_DURATION'  "
    EXPORTING
         P_PERNR = lv_p_pernr
         P_TSPST = lv_p_tspst
         P_BEGDA = lv_p_begda
         P_ENDDA = lv_p_endda
         P_SDATE = lv_p_sdate
         P_CRULE = lv_p_crule
         P_AUTHO = lv_p_autho
         IS_TSPST_CONTROL = lv_is_tspst_control
         P_PROTO = lv_p_proto
    IMPORTING
         P_DURAT = lv_p_durat
         ET_WEIGHT_PERIOD = lv_et_weight_period
         ET_WEIGHT_PEAK = lv_et_weight_peak
    EXCEPTIONS
        E_MISSING_AUTHORIZATION = 1
        E_OTHERS = 2
. " HR_SEN_EVALUATE_DURATION




ABAP code using 7.40 inline data declarations to call FM HR_SEN_EVALUATE_DURATION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!