SAP HR_QTACC_QUOTAS_GENERATE Function Module for
HR_QTACC_QUOTAS_GENERATE is a standard hr qtacc quotas generate 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 qtacc quotas generate FM, simply by entering the name HR_QTACC_QUOTAS_GENERATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRLV
Program Name: SAPLHRLV
Main Program: SAPLHRLV
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_QTACC_QUOTAS_GENERATE 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_QTACC_QUOTAS_GENERATE'".
EXPORTING
GEN_PERNR = "
GEN_DATE = "
GEN_QUOMO = "
* GEN_CTYPE = 'T' "
CHANGING
* GEN_BEGDA = "
* GEN_ENDDA = "
TABLES
GEN_P0000 = "
* GEN_WPBP = "
GEN_AB = "
* GEN_ZES = "
* GEN_SALDO = "
GEN_DQTACC = "
GEN_DQTBASE = "
* GEN_PROTO = "
* GEN_ABWKTART_SEL = "
GEN_P0001 = "
GEN_P0002 = "
GEN_P0004 = "
GEN_P0007 = "
GEN_P0008 = "
GEN_P0019 = "
GEN_P0041 = "
GEN_PSP = "
EXCEPTIONS
ENDDA_LT_BEGDA = 1 ENDDE_LT_BEGDE = 2 CUSTOMIZING_ERROR = 3 WORK_SCHEDULE_ERROR = 4 SEN_CALC_ERROR = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLHRLV_001 Customer Enhancement for Quota Generation: Applicability
EXIT_SAPLHRLV_002 Customer Enhancement for Quota Generation: Accrual Entitlement
EXIT_SAPLHRLV_003 Customer Enhancement for Quota Generation: Reduction Rule
EXIT_SAPLHRLV_004 Customer Enhancement for Quota Generation: Base Entitlement
EXIT_SAPLHRLV_005 Customer Enhancement for Quota Generation: Transfer Specification
EXIT_SAPLHRLV_006 Customer Enhancement for Quota Generation: Entry/Leaving Date
EXIT_SAPLHRLV_007 Customer Enhancement for Quota Generation: Defaults for Validity Interval
EXIT_SAPLHRLV_008 Customer Enhancement for Quota Generation: Selection Rule Group
EXIT_SAPLHRLV_009 Cust. Enhancement for Quota Generation: Result of Generation for Defaults
EXIT_SAPLHRLV_010 Cust. Enhancement for Quota Generation: IT2013 Validity/Deduction Interval
EXIT_SAPLHRLV_011 Customer Enhancement for Quota Generation: Validity and Deduction Interval
EXIT_SAPLHRLV_012 Customer Enhancement for Quota Generation: Accrual Period
IMPORTING Parameters details for HR_QTACC_QUOTAS_GENERATE
GEN_PERNR -
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
GEN_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
GEN_QUOMO -
Data type: T559L-QUOMOOptional: No
Call by Reference: No ( called with pass by value option)
GEN_CTYPE -
Data type: CDefault: 'T'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for HR_QTACC_QUOTAS_GENERATE
GEN_BEGDA -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
GEN_ENDDA -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_QTACC_QUOTAS_GENERATE
GEN_P0000 -
Data type: P0000Optional: No
Call by Reference: No ( called with pass by value option)
GEN_WPBP -
Data type: PC205Optional: Yes
Call by Reference: Yes
GEN_AB -
Data type: PC20IOptional: No
Call by Reference: No ( called with pass by value option)
GEN_ZES -
Data type: PC2B6Optional: Yes
Call by Reference: No ( called with pass by value option)
GEN_SALDO -
Data type: PC2B5Optional: Yes
Call by Reference: No ( called with pass by value option)
GEN_DQTACC -
Data type: PC2BJOptional: No
Call by Reference: No ( called with pass by value option)
GEN_DQTBASE -
Data type: PC2BKOptional: No
Call by Reference: No ( called with pass by value option)
GEN_PROTO -
Data type: QTPROTOOptional: Yes
Call by Reference: No ( called with pass by value option)
GEN_ABWKTART_SEL -
Data type: PTGQD_T_KT_SELOptional: Yes
Call by Reference: Yes
GEN_P0001 -
Data type: P0001Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0002 -
Data type: P0002Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0004 -
Data type: P0004Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0007 -
Data type: P0007Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0008 -
Data type: P0008Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0019 -
Data type: P0019Optional: No
Call by Reference: No ( called with pass by value option)
GEN_P0041 -
Data type: P0041Optional: No
Call by Reference: No ( called with pass by value option)
GEN_PSP -
Data type: PTPSPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENDDA_LT_BEGDA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENDDE_LT_BEGDE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CUSTOMIZING_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WORK_SCHEDULE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SEN_CALC_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_QTACC_QUOTAS_GENERATE 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_gen_begda | TYPE SY-DATUM, " | |||
| lt_gen_p0000 | TYPE STANDARD TABLE OF P0000, " | |||
| lv_gen_pernr | TYPE PERNR-PERNR, " | |||
| lv_endda_lt_begda | TYPE PERNR, " | |||
| lt_gen_wpbp | TYPE STANDARD TABLE OF PC205, " | |||
| lt_gen_ab | TYPE STANDARD TABLE OF PC20I, " | |||
| lt_gen_zes | TYPE STANDARD TABLE OF PC2B6, " | |||
| lt_gen_saldo | TYPE STANDARD TABLE OF PC2B5, " | |||
| lt_gen_dqtacc | TYPE STANDARD TABLE OF PC2BJ, " | |||
| lt_gen_dqtbase | TYPE STANDARD TABLE OF PC2BK, " | |||
| lt_gen_proto | TYPE STANDARD TABLE OF QTPROTO, " | |||
| lt_gen_abwktart_sel | TYPE STANDARD TABLE OF PTGQD_T_KT_SEL, " | |||
| lv_gen_date | TYPE SY-DATUM, " | |||
| lv_gen_endda | TYPE SY-DATUM, " | |||
| lt_gen_p0001 | TYPE STANDARD TABLE OF P0001, " | |||
| lv_endde_lt_begde | TYPE P0001, " | |||
| lt_gen_p0002 | TYPE STANDARD TABLE OF P0002, " | |||
| lv_gen_quomo | TYPE T559L-QUOMO, " | |||
| lv_customizing_error | TYPE T559L, " | |||
| lv_gen_ctype | TYPE C, " 'T' | |||
| lt_gen_p0004 | TYPE STANDARD TABLE OF P0004, " | |||
| lv_work_schedule_error | TYPE P0004, " | |||
| lt_gen_p0007 | TYPE STANDARD TABLE OF P0007, " | |||
| lv_sen_calc_error | TYPE P0007, " | |||
| lt_gen_p0008 | TYPE STANDARD TABLE OF P0008, " | |||
| lt_gen_p0019 | TYPE STANDARD TABLE OF P0019, " | |||
| lt_gen_p0041 | TYPE STANDARD TABLE OF P0041, " | |||
| lt_gen_psp | TYPE STANDARD TABLE OF PTPSP. " |
|   CALL FUNCTION 'HR_QTACC_QUOTAS_GENERATE' " |
| EXPORTING | ||
| GEN_PERNR | = lv_gen_pernr | |
| GEN_DATE | = lv_gen_date | |
| GEN_QUOMO | = lv_gen_quomo | |
| GEN_CTYPE | = lv_gen_ctype | |
| CHANGING | ||
| GEN_BEGDA | = lv_gen_begda | |
| GEN_ENDDA | = lv_gen_endda | |
| TABLES | ||
| GEN_P0000 | = lt_gen_p0000 | |
| GEN_WPBP | = lt_gen_wpbp | |
| GEN_AB | = lt_gen_ab | |
| GEN_ZES | = lt_gen_zes | |
| GEN_SALDO | = lt_gen_saldo | |
| GEN_DQTACC | = lt_gen_dqtacc | |
| GEN_DQTBASE | = lt_gen_dqtbase | |
| GEN_PROTO | = lt_gen_proto | |
| GEN_ABWKTART_SEL | = lt_gen_abwktart_sel | |
| GEN_P0001 | = lt_gen_p0001 | |
| GEN_P0002 | = lt_gen_p0002 | |
| GEN_P0004 | = lt_gen_p0004 | |
| GEN_P0007 | = lt_gen_p0007 | |
| GEN_P0008 | = lt_gen_p0008 | |
| GEN_P0019 | = lt_gen_p0019 | |
| GEN_P0041 | = lt_gen_p0041 | |
| GEN_PSP | = lt_gen_psp | |
| EXCEPTIONS | ||
| ENDDA_LT_BEGDA = 1 | ||
| ENDDE_LT_BEGDE = 2 | ||
| CUSTOMIZING_ERROR = 3 | ||
| WORK_SCHEDULE_ERROR = 4 | ||
| SEN_CALC_ERROR = 5 | ||
| . " HR_QTACC_QUOTAS_GENERATE | ||
ABAP code using 7.40 inline data declarations to call FM HR_QTACC_QUOTAS_GENERATE
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 DATUM FROM SY INTO @DATA(ld_gen_begda). | ||||
| "SELECT single PERNR FROM PERNR INTO @DATA(ld_gen_pernr). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_gen_date). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_gen_endda). | ||||
| "SELECT single QUOMO FROM T559L INTO @DATA(ld_gen_quomo). | ||||
| DATA(ld_gen_ctype) | = 'T'. | |||
Search for further information about these or an SAP related objects