SAP HR_FMLA_GET_COMPL_RULE Function Module for









HR_FMLA_GET_COMPL_RULE is a standard hr fmla get compl rule 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 fmla get compl rule FM, simply by entering the name HR_FMLA_GET_COMPL_RULE into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_FMLA_GET_COMPL_RULE 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_FMLA_GET_COMPL_RULE'"
EXPORTING
PERNR = "
BEGDA = "
ENDDA = "
REASN = "
FMLAN = "

IMPORTING
IPT_FMLCOMPL = "
WARNING_TAB = "

TABLES
* P0001 = "

EXCEPTIONS
CUSTOMIZING_ERROR = 1 DET_PERIOD_ERROR = 10 RPTIME_SIM_ERROR = 11 RPTIME_RES_ERROR = 12 NOT_HIRED_OR_FIRED = 13 NO_PERMISSION = 14 NO_FMLA_RULES = 2 NO_FMLMO = 3 NO_WWK_RULES = 4 CONSISTENCY_ERROR = 5 NO_WWKMO = 6 OBJECT_NOT_FOUND = 7 NUMBER_GET_ERROR = 8 PERIOD_CROSS_OVER = 9
.



IMPORTING Parameters details for HR_FMLA_GET_COMPL_RULE

PERNR -

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

BEGDA -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

ENDDA -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

REASN -

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

FMLAN -

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

EXPORTING Parameters details for HR_FMLA_GET_COMPL_RULE

IPT_FMLCOMPL -

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

WARNING_TAB -

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

TABLES Parameters details for HR_FMLA_GET_COMPL_RULE

P0001 -

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

EXCEPTIONS details

CUSTOMIZING_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DET_PERIOD_ERROR -

Data type:
Optional: No
Call by Reference: Yes

RPTIME_SIM_ERROR -

Data type:
Optional: No
Call by Reference: Yes

RPTIME_RES_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NOT_HIRED_OR_FIRED -

Data type:
Optional: No
Call by Reference: Yes

NO_PERMISSION -

Data type:
Optional: No
Call by Reference: Yes

NO_FMLA_RULES -

Data type:
Optional: No
Call by Reference: Yes

NO_FMLMO -

Data type:
Optional: No
Call by Reference: Yes

NO_WWK_RULES -

Data type:
Optional: No
Call by Reference: Yes

CONSISTENCY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_WWKMO -

Data type:
Optional: No
Call by Reference: Yes

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NUMBER_GET_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PERIOD_CROSS_OVER -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_FMLA_GET_COMPL_RULE 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:
lt_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_pernr  TYPE PERNR-PERNR, "   
lv_ipt_fmlcompl  TYPE FMLCOMPL_TYPE, "   
lv_customizing_error  TYPE FMLCOMPL_TYPE, "   
lv_det_period_error  TYPE FMLCOMPL_TYPE, "   
lv_rptime_sim_error  TYPE FMLCOMPL_TYPE, "   
lv_rptime_res_error  TYPE FMLCOMPL_TYPE, "   
lv_not_hired_or_fired  TYPE FMLCOMPL_TYPE, "   
lv_no_permission  TYPE FMLCOMPL_TYPE, "   
lv_begda  TYPE SY-DATUM, "   
lv_warning_tab  TYPE FMLA_MSG_TYPE, "   
lv_no_fmla_rules  TYPE FMLA_MSG_TYPE, "   
lv_endda  TYPE SY-DATUM, "   
lv_no_fmlmo  TYPE SY, "   
lv_reasn  TYPE PT_FMLA_REASON, "   
lv_no_wwk_rules  TYPE PT_FMLA_REASON, "   
lv_fmlan  TYPE PT_FMLA_REQNR, "   
lv_consistency_error  TYPE PT_FMLA_REQNR, "   
lv_no_wwkmo  TYPE PT_FMLA_REQNR, "   
lv_object_not_found  TYPE PT_FMLA_REQNR, "   
lv_number_get_error  TYPE PT_FMLA_REQNR, "   
lv_period_cross_over  TYPE PT_FMLA_REQNR. "   

  CALL FUNCTION 'HR_FMLA_GET_COMPL_RULE'  "
    EXPORTING
         PERNR = lv_pernr
         BEGDA = lv_begda
         ENDDA = lv_endda
         REASN = lv_reasn
         FMLAN = lv_fmlan
    IMPORTING
         IPT_FMLCOMPL = lv_ipt_fmlcompl
         WARNING_TAB = lv_warning_tab
    TABLES
         P0001 = lt_p0001
    EXCEPTIONS
        CUSTOMIZING_ERROR = 1
        DET_PERIOD_ERROR = 10
        RPTIME_SIM_ERROR = 11
        RPTIME_RES_ERROR = 12
        NOT_HIRED_OR_FIRED = 13
        NO_PERMISSION = 14
        NO_FMLA_RULES = 2
        NO_FMLMO = 3
        NO_WWK_RULES = 4
        CONSISTENCY_ERROR = 5
        NO_WWKMO = 6
        OBJECT_NOT_FOUND = 7
        NUMBER_GET_ERROR = 8
        PERIOD_CROSS_OVER = 9
. " HR_FMLA_GET_COMPL_RULE




ABAP code using 7.40 inline data declarations to call FM HR_FMLA_GET_COMPL_RULE

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.

 
"SELECT single PERNR FROM PERNR INTO @DATA(ld_pernr).
 
 
 
 
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_begda).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_endda).
 
 
 
 
 
 
 
 
 
 


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!