SAP HR_DEPENDENT_CHECK Function Module for HR-J:Dependent check
HR_DEPENDENT_CHECK is a standard hr dependent check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR-J:Dependent check processing and below is the pattern details for this FM, 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 dependent check FM, simply by entering the name HR_DEPENDENT_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRJE
Program Name: SAPLHRJE
Main Program: SAPLHRJE
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function HR_DEPENDENT_CHECK 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_DEPENDENT_CHECK'"HR-J:Dependent check.
EXPORTING
* I_NONRE = "Non residence
I_DEATH = "Dead
I_DP5ID = "Dependent ID (YEA)
I_DP1ID = "Dependent ID (TAX)
* I_BEGDA = "Begda1
I_DATE1 = "Check date1
* I_PBEGD = "Begda2
I_DATE2 = "Check date2
IMPORTING
DEPEND_ST = "Status
IMPORTING Parameters details for HR_DEPENDENT_CHECK
I_NONRE - Non residence
Data type: P0148-NONREOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DEATH - Dead
Data type: P0148-DEATHOptional: No
Call by Reference: No ( called with pass by value option)
I_DP5ID - Dependent ID (YEA)
Data type: P0148-DP5IDOptional: No
Call by Reference: No ( called with pass by value option)
I_DP1ID - Dependent ID (TAX)
Data type: P0148-DP1IDOptional: No
Call by Reference: No ( called with pass by value option)
I_BEGDA - Begda1
Data type: P0148-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE1 - Check date1
Data type: P0148-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
I_PBEGD - Begda2
Data type: P0148-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE2 - Check date2
Data type: P0148-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_DEPENDENT_CHECK
DEPEND_ST - Status
Data type: P0148-DP1IDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_DEPENDENT_CHECK 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_i_nonre | TYPE P0148-NONRE, " | |||
lv_depend_st | TYPE P0148-DP1ID, " | |||
lv_i_death | TYPE P0148-DEATH, " | |||
lv_i_dp5id | TYPE P0148-DP5ID, " | |||
lv_i_dp1id | TYPE P0148-DP1ID, " | |||
lv_i_begda | TYPE P0148-BEGDA, " | |||
lv_i_date1 | TYPE P0148-BEGDA, " | |||
lv_i_pbegd | TYPE P0148-BEGDA, " | |||
lv_i_date2 | TYPE P0148-BEGDA. " |
  CALL FUNCTION 'HR_DEPENDENT_CHECK' "HR-J:Dependent check |
EXPORTING | ||
I_NONRE | = lv_i_nonre | |
I_DEATH | = lv_i_death | |
I_DP5ID | = lv_i_dp5id | |
I_DP1ID | = lv_i_dp1id | |
I_BEGDA | = lv_i_begda | |
I_DATE1 | = lv_i_date1 | |
I_PBEGD | = lv_i_pbegd | |
I_DATE2 | = lv_i_date2 | |
IMPORTING | ||
DEPEND_ST | = lv_depend_st | |
. " HR_DEPENDENT_CHECK |
ABAP code using 7.40 inline data declarations to call FM HR_DEPENDENT_CHECK
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 NONRE FROM P0148 INTO @DATA(ld_i_nonre). | ||||
"SELECT single DP1ID FROM P0148 INTO @DATA(ld_depend_st). | ||||
"SELECT single DEATH FROM P0148 INTO @DATA(ld_i_death). | ||||
"SELECT single DP5ID FROM P0148 INTO @DATA(ld_i_dp5id). | ||||
"SELECT single DP1ID FROM P0148 INTO @DATA(ld_i_dp1id). | ||||
"SELECT single BEGDA FROM P0148 INTO @DATA(ld_i_begda). | ||||
"SELECT single BEGDA FROM P0148 INTO @DATA(ld_i_date1). | ||||
"SELECT single BEGDA FROM P0148 INTO @DATA(ld_i_pbegd). | ||||
"SELECT single BEGDA FROM P0148 INTO @DATA(ld_i_date2). | ||||
Search for further information about these or an SAP related objects