SAP HR_GET_QUOTA_BASE_NZ Function Module for To get the base entitlement
HR_GET_QUOTA_BASE_NZ is a standard hr get quota base nz SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for To get the base entitlement 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 get quota base nz FM, simply by entering the name HR_GET_QUOTA_BASE_NZ into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRIL_NZ
Program Name: SAPLHRIL_NZ
Main Program: SAPLHRIL_NZ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_GET_QUOTA_BASE_NZ 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_GET_QUOTA_BASE_NZ'"To get the base entitlement.
EXPORTING
IPERNR = "Personnel number
IQTYPE = "Absence Quota Type
IKDATE = "
* IMOPGK = "Employee Subgroup Grouping for Time Quota Types
* IMOBDE = "Personnel Subarea Grouping for Time Recording
* IMOZKO = "Personnel Subarea Grouping for Time Quota Types
* IQUOMO = "Quota type selection rule group
IMPORTING
E_ACCNR = "Selection rule for absence quota types
E_RULNO = "Rule for base entitlement for leave accrual
E_SEQNR = "Sequential Number
E_LVNUM = "Constant value of base entitlement for leave accrual
E_RETURN = "Return Parameter
TABLES
* IT559L = "Automatic Absence Quota Generation
* IT559E = "Base Entitlement for Leave Accrual
* I0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
* I0007 = "HR Master Record: Infotype 0007 (Planned Working Time)
* I0008 = "HR Master Record: Infotype 0008 (Basic Pay)
* I0016 = "HR Master Record: Infotype 0016 (Contract Elements)
* I0041 = "HR Master Record: Infotype 0041 (Date Specifications)
IMPORTING Parameters details for HR_GET_QUOTA_BASE_NZ
IPERNR - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
IQTYPE - Absence Quota Type
Data type: T556A-KTARTOptional: No
Call by Reference: Yes
IKDATE -
Data type: DOptional: No
Call by Reference: Yes
IMOPGK - Employee Subgroup Grouping for Time Quota Types
Data type: T503-KONTYOptional: Yes
Call by Reference: Yes
IMOBDE - Personnel Subarea Grouping for Time Recording
Data type: T001P-MOBDEOptional: Yes
Call by Reference: Yes
IMOZKO - Personnel Subarea Grouping for Time Quota Types
Data type: T001P-MOZKOOptional: Yes
Call by Reference: Yes
IQUOMO - Quota type selection rule group
Data type: T559L-QUOMOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_GET_QUOTA_BASE_NZ
E_ACCNR - Selection rule for absence quota types
Data type: T559L-ACCNROptional: No
Call by Reference: Yes
E_RULNO - Rule for base entitlement for leave accrual
Data type: T559L-RULNOOptional: No
Call by Reference: Yes
E_SEQNR - Sequential Number
Data type: T559E-SEQNROptional: No
Call by Reference: Yes
E_LVNUM - Constant value of base entitlement for leave accrual
Data type: T559E-LVNUMOptional: No
Call by Reference: Yes
E_RETURN - Return Parameter
Data type: BAPIRETURN1Optional: No
Call by Reference: Yes
TABLES Parameters details for HR_GET_QUOTA_BASE_NZ
IT559L - Automatic Absence Quota Generation
Data type: T559LOptional: Yes
Call by Reference: Yes
IT559E - Base Entitlement for Leave Accrual
Data type: T559EOptional: Yes
Call by Reference: Yes
I0001 - HR Master Record: Infotype 0001 (Org. Assignment)
Data type: P0001Optional: Yes
Call by Reference: Yes
I0007 - HR Master Record: Infotype 0007 (Planned Working Time)
Data type: P0007Optional: Yes
Call by Reference: Yes
I0008 - HR Master Record: Infotype 0008 (Basic Pay)
Data type: P0008Optional: Yes
Call by Reference: Yes
I0016 - HR Master Record: Infotype 0016 (Contract Elements)
Data type: P0016Optional: Yes
Call by Reference: Yes
I0041 - HR Master Record: Infotype 0041 (Date Specifications)
Data type: P0041Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_GET_QUOTA_BASE_NZ 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_ipernr | TYPE PERNR-PERNR, " | |||
| lt_it559l | TYPE STANDARD TABLE OF T559L, " | |||
| lv_e_accnr | TYPE T559L-ACCNR, " | |||
| lv_iqtype | TYPE T556A-KTART, " | |||
| lt_it559e | TYPE STANDARD TABLE OF T559E, " | |||
| lv_e_rulno | TYPE T559L-RULNO, " | |||
| lt_i0001 | TYPE STANDARD TABLE OF P0001, " | |||
| lv_ikdate | TYPE D, " | |||
| lv_e_seqnr | TYPE T559E-SEQNR, " | |||
| lt_i0007 | TYPE STANDARD TABLE OF P0007, " | |||
| lv_imopgk | TYPE T503-KONTY, " | |||
| lv_e_lvnum | TYPE T559E-LVNUM, " | |||
| lt_i0008 | TYPE STANDARD TABLE OF P0008, " | |||
| lv_imobde | TYPE T001P-MOBDE, " | |||
| lv_e_return | TYPE BAPIRETURN1, " | |||
| lt_i0016 | TYPE STANDARD TABLE OF P0016, " | |||
| lv_imozko | TYPE T001P-MOZKO, " | |||
| lt_i0041 | TYPE STANDARD TABLE OF P0041, " | |||
| lv_iquomo | TYPE T559L-QUOMO. " |
|   CALL FUNCTION 'HR_GET_QUOTA_BASE_NZ' "To get the base entitlement |
| EXPORTING | ||
| IPERNR | = lv_ipernr | |
| IQTYPE | = lv_iqtype | |
| IKDATE | = lv_ikdate | |
| IMOPGK | = lv_imopgk | |
| IMOBDE | = lv_imobde | |
| IMOZKO | = lv_imozko | |
| IQUOMO | = lv_iquomo | |
| IMPORTING | ||
| E_ACCNR | = lv_e_accnr | |
| E_RULNO | = lv_e_rulno | |
| E_SEQNR | = lv_e_seqnr | |
| E_LVNUM | = lv_e_lvnum | |
| E_RETURN | = lv_e_return | |
| TABLES | ||
| IT559L | = lt_it559l | |
| IT559E | = lt_it559e | |
| I0001 | = lt_i0001 | |
| I0007 | = lt_i0007 | |
| I0008 | = lt_i0008 | |
| I0016 | = lt_i0016 | |
| I0041 | = lt_i0041 | |
| . " HR_GET_QUOTA_BASE_NZ | ||
ABAP code using 7.40 inline data declarations to call FM HR_GET_QUOTA_BASE_NZ
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_ipernr). | ||||
| "SELECT single ACCNR FROM T559L INTO @DATA(ld_e_accnr). | ||||
| "SELECT single KTART FROM T556A INTO @DATA(ld_iqtype). | ||||
| "SELECT single RULNO FROM T559L INTO @DATA(ld_e_rulno). | ||||
| "SELECT single SEQNR FROM T559E INTO @DATA(ld_e_seqnr). | ||||
| "SELECT single KONTY FROM T503 INTO @DATA(ld_imopgk). | ||||
| "SELECT single LVNUM FROM T559E INTO @DATA(ld_e_lvnum). | ||||
| "SELECT single MOBDE FROM T001P INTO @DATA(ld_imobde). | ||||
| "SELECT single MOZKO FROM T001P INTO @DATA(ld_imozko). | ||||
| "SELECT single QUOMO FROM T559L INTO @DATA(ld_iquomo). | ||||
Search for further information about these or an SAP related objects