SAP HR_E_GET_MIN_FAM Function Module for









HR_E_GET_MIN_FAM is a standard hr e get min fam 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 e get min fam FM, simply by entering the name HR_E_GET_MIN_FAM into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_E_GET_MIN_FAM 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_E_GET_MIN_FAM'"
EXPORTING
PAR_BEGDA = "
PAR_ENDDA = "
PAR_PERNR = "
* PAR_STPER = "
* PAR_CODAU = "

IMPORTING
IMPORTE = "
IMP_1_2_HIJOS = "
IMP_3_999_HIJOS = "
IMP_0_2_ANIOS = "
IMP_3_16_ANIOS = "
IMP_MINUSVALIDOS = "
IMP_SUMA = "
P_NIF_CONY = "
P_NIF_REPRES = "
P_NOT_FOUND = "
P_FAMILIARES = "
NUM_ASCENDIENTES = "
P_MIN_FAM_RESULT = "
NUM_HIJOS_0_2 = "
NUM_HIJOS_3_16 = "
NUM_HIJOS_17_24 = "
NUM_SUMA_DESCENDIENTES = "
NUM_MINUSVALIDOS = "
NUM_MIN33 = "
NUM_MIN65 = "

TABLES
* T0021 = "
* T0062 = "
* TEWT_DAT = "

EXCEPTIONS
READ_I0021_ERROR = 1 READ_I0062_ERROR = 2 ERROR = 3
.



IMPORTING Parameters details for HR_E_GET_MIN_FAM

PAR_BEGDA -

Data type: PC226-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

PAR_ENDDA -

Data type: PC226-ENDDA
Optional: No
Call by Reference: No ( called with pass by value option)

PAR_PERNR -

Data type: PERNR-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

PAR_STPER -

Data type: P0062-FAMST
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAR_CODAU -

Data type: P0062-CODAU
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HR_E_GET_MIN_FAM

IMPORTE -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_1_2_HIJOS -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_3_999_HIJOS -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_0_2_ANIOS -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_3_16_ANIOS -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_MINUSVALIDOS -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_SUMA -

Data type: PC226-SBRUT
Optional: No
Call by Reference: No ( called with pass by value option)

P_NIF_CONY -

Data type: P0062-CODIM
Optional: No
Call by Reference: No ( called with pass by value option)

P_NIF_REPRES -

Data type: P0062-CODIM
Optional: No
Call by Reference: No ( called with pass by value option)

P_NOT_FOUND -

Data type: PESU0_GFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

P_FAMILIARES -

Data type: PEST0_FAMILIARES_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_ASCENDIENTES -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

P_MIN_FAM_RESULT -

Data type: PEST0_MIN_FAM_RESULT
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_HIJOS_0_2 -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_HIJOS_3_16 -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_HIJOS_17_24 -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_SUMA_DESCENDIENTES -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_MINUSVALIDOS -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_MIN33 -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

NUM_MIN65 -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HR_E_GET_MIN_FAM

T0021 -

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

T0062 -

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

TEWT_DAT -

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

EXCEPTIONS details

READ_I0021_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

READ_I0062_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_E_GET_MIN_FAM 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_t0021  TYPE STANDARD TABLE OF P0021, "   
lv_importe  TYPE PC226-SBRUT, "   
lv_par_begda  TYPE PC226-BEGDA, "   
lv_read_i0021_error  TYPE PC226, "   
lv_imp_1_2_hijos  TYPE PC226-SBRUT, "   
lv_imp_3_999_hijos  TYPE PC226-SBRUT, "   
lv_imp_0_2_anios  TYPE PC226-SBRUT, "   
lv_imp_3_16_anios  TYPE PC226-SBRUT, "   
lv_imp_minusvalidos  TYPE PC226-SBRUT, "   
lv_imp_suma  TYPE PC226-SBRUT, "   
lv_p_nif_cony  TYPE P0062-CODIM, "   
lv_p_nif_repres  TYPE P0062-CODIM, "   
lv_p_not_found  TYPE PESU0_GFLAG, "   
lv_p_familiares  TYPE PEST0_FAMILIARES_TAB, "   
lt_t0062  TYPE STANDARD TABLE OF P0062, "   
lv_par_endda  TYPE PC226-ENDDA, "   
lv_num_ascendientes  TYPE I, "   
lv_read_i0062_error  TYPE I, "   
lv_p_min_fam_result  TYPE PEST0_MIN_FAM_RESULT, "   
lv_error  TYPE PEST0_MIN_FAM_RESULT, "   
lt_tewt_dat  TYPE STANDARD TABLE OF PEST0_EWT_DATA_TAB, "   
lv_par_pernr  TYPE PERNR-PERNR, "   
lv_num_hijos_0_2  TYPE I, "   
lv_par_stper  TYPE P0062-FAMST, "   
lv_num_hijos_3_16  TYPE I, "   
lv_par_codau  TYPE P0062-CODAU, "   
lv_num_hijos_17_24  TYPE I, "   
lv_num_suma_descendientes  TYPE I, "   
lv_num_minusvalidos  TYPE I, "   
lv_num_min33  TYPE I, "   
lv_num_min65  TYPE I. "   

  CALL FUNCTION 'HR_E_GET_MIN_FAM'  "
    EXPORTING
         PAR_BEGDA = lv_par_begda
         PAR_ENDDA = lv_par_endda
         PAR_PERNR = lv_par_pernr
         PAR_STPER = lv_par_stper
         PAR_CODAU = lv_par_codau
    IMPORTING
         IMPORTE = lv_importe
         IMP_1_2_HIJOS = lv_imp_1_2_hijos
         IMP_3_999_HIJOS = lv_imp_3_999_hijos
         IMP_0_2_ANIOS = lv_imp_0_2_anios
         IMP_3_16_ANIOS = lv_imp_3_16_anios
         IMP_MINUSVALIDOS = lv_imp_minusvalidos
         IMP_SUMA = lv_imp_suma
         P_NIF_CONY = lv_p_nif_cony
         P_NIF_REPRES = lv_p_nif_repres
         P_NOT_FOUND = lv_p_not_found
         P_FAMILIARES = lv_p_familiares
         NUM_ASCENDIENTES = lv_num_ascendientes
         P_MIN_FAM_RESULT = lv_p_min_fam_result
         NUM_HIJOS_0_2 = lv_num_hijos_0_2
         NUM_HIJOS_3_16 = lv_num_hijos_3_16
         NUM_HIJOS_17_24 = lv_num_hijos_17_24
         NUM_SUMA_DESCENDIENTES = lv_num_suma_descendientes
         NUM_MINUSVALIDOS = lv_num_minusvalidos
         NUM_MIN33 = lv_num_min33
         NUM_MIN65 = lv_num_min65
    TABLES
         T0021 = lt_t0021
         T0062 = lt_t0062
         TEWT_DAT = lt_tewt_dat
    EXCEPTIONS
        READ_I0021_ERROR = 1
        READ_I0062_ERROR = 2
        ERROR = 3
. " HR_E_GET_MIN_FAM




ABAP code using 7.40 inline data declarations to call FM HR_E_GET_MIN_FAM

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 SBRUT FROM PC226 INTO @DATA(ld_importe).
 
"SELECT single BEGDA FROM PC226 INTO @DATA(ld_par_begda).
 
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_1_2_hijos).
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_3_999_hijos).
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_0_2_anios).
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_3_16_anios).
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_minusvalidos).
 
"SELECT single SBRUT FROM PC226 INTO @DATA(ld_imp_suma).
 
"SELECT single CODIM FROM P0062 INTO @DATA(ld_p_nif_cony).
 
"SELECT single CODIM FROM P0062 INTO @DATA(ld_p_nif_repres).
 
 
 
 
"SELECT single ENDDA FROM PC226 INTO @DATA(ld_par_endda).
 
 
 
 
 
 
"SELECT single PERNR FROM PERNR INTO @DATA(ld_par_pernr).
 
 
"SELECT single FAMST FROM P0062 INTO @DATA(ld_par_stper).
 
 
"SELECT single CODAU FROM P0062 INTO @DATA(ld_par_codau).
 
 
 
 
 
 


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!