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

Function HR_SETTLE_QUOTA 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_SETTLE_QUOTA'".
EXPORTING
PERNUM = "
* BUFFER_REFRESH = 'X' "
* ARCH_MODE = ' ' "
INFTY = "
NUMBER = "
DOCNR = "
* QUONR = "
* SRULE = "
* QTYPE = "
* SDATE = "
* IGNORE_INTERVAL = ' ' "
TABLES
T0001 = "
T2006X = "
T2007X = "
TQUODED = "
EXCEPTIONS
IT0001_MISSING = 1 ERROR_OCCURRED = 2 ZERO_SETTLEMENT = 3 WRONG_INFTY = 4 NOT_ENOUGH_QUOTA = 5 QUONR_NOT_FOUND = 6
IMPORTING Parameters details for HR_SETTLE_QUOTA
PERNUM -
Data type: P2001-PERNROptional: No
Call by Reference: No ( called with pass by value option)
BUFFER_REFRESH -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ARCH_MODE -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INFTY -
Data type: P2001-INFTYOptional: No
Call by Reference: No ( called with pass by value option)
NUMBER -
Data type: P2006-ANZHLOptional: No
Call by Reference: No ( called with pass by value option)
DOCNR -
Data type: PTQUODED-DOCNROptional: No
Call by Reference: No ( called with pass by value option)
QUONR -
Data type: PTQUODED-QUONROptional: Yes
Call by Reference: No ( called with pass by value option)
SRULE -
Data type: T556R-DEDRGOptional: Yes
Call by Reference: No ( called with pass by value option)
QTYPE -
Data type: T556A-KTARTOptional: Yes
Call by Reference: No ( called with pass by value option)
SDATE -
Data type: P2006-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
IGNORE_INTERVAL -
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_SETTLE_QUOTA
T0001 -
Data type: P0001Optional: No
Call by Reference: No ( called with pass by value option)
T2006X -
Data type: P2006XOptional: No
Call by Reference: No ( called with pass by value option)
T2007X -
Data type: P2007XOptional: No
Call by Reference: No ( called with pass by value option)
TQUODED -
Data type: PTQUODEDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
IT0001_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_OCCURRED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZERO_SETTLEMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INFTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_ENOUGH_QUOTA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
QUONR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_SETTLE_QUOTA 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_t0001 | TYPE STANDARD TABLE OF P0001, " | |||
| lv_pernum | TYPE P2001-PERNR, " | |||
| lv_it0001_missing | TYPE P2001, " | |||
| lv_buffer_refresh | TYPE CHAR1, " 'X' | |||
| lv_arch_mode | TYPE BOOLE_D, " SPACE | |||
| lv_infty | TYPE P2001-INFTY, " | |||
| lt_t2006x | TYPE STANDARD TABLE OF P2006X, " | |||
| lv_error_occurred | TYPE P2006X, " | |||
| lv_number | TYPE P2006-ANZHL, " | |||
| lt_t2007x | TYPE STANDARD TABLE OF P2007X, " | |||
| lv_zero_settlement | TYPE P2007X, " | |||
| lv_docnr | TYPE PTQUODED-DOCNR, " | |||
| lt_tquoded | TYPE STANDARD TABLE OF PTQUODED, " | |||
| lv_wrong_infty | TYPE PTQUODED, " | |||
| lv_quonr | TYPE PTQUODED-QUONR, " | |||
| lv_not_enough_quota | TYPE PTQUODED, " | |||
| lv_srule | TYPE T556R-DEDRG, " | |||
| lv_quonr_not_found | TYPE T556R, " | |||
| lv_qtype | TYPE T556A-KTART, " | |||
| lv_sdate | TYPE P2006-BEGDA, " | |||
| lv_ignore_interval | TYPE CHAR1. " ' ' |
|   CALL FUNCTION 'HR_SETTLE_QUOTA' " |
| EXPORTING | ||
| PERNUM | = lv_pernum | |
| BUFFER_REFRESH | = lv_buffer_refresh | |
| ARCH_MODE | = lv_arch_mode | |
| INFTY | = lv_infty | |
| NUMBER | = lv_number | |
| DOCNR | = lv_docnr | |
| QUONR | = lv_quonr | |
| SRULE | = lv_srule | |
| QTYPE | = lv_qtype | |
| SDATE | = lv_sdate | |
| IGNORE_INTERVAL | = lv_ignore_interval | |
| TABLES | ||
| T0001 | = lt_t0001 | |
| T2006X | = lt_t2006x | |
| T2007X | = lt_t2007x | |
| TQUODED | = lt_tquoded | |
| EXCEPTIONS | ||
| IT0001_MISSING = 1 | ||
| ERROR_OCCURRED = 2 | ||
| ZERO_SETTLEMENT = 3 | ||
| WRONG_INFTY = 4 | ||
| NOT_ENOUGH_QUOTA = 5 | ||
| QUONR_NOT_FOUND = 6 | ||
| . " HR_SETTLE_QUOTA | ||
ABAP code using 7.40 inline data declarations to call FM HR_SETTLE_QUOTA
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 P2001 INTO @DATA(ld_pernum). | ||||
| DATA(ld_buffer_refresh) | = 'X'. | |||
| DATA(ld_arch_mode) | = ' '. | |||
| "SELECT single INFTY FROM P2001 INTO @DATA(ld_infty). | ||||
| "SELECT single ANZHL FROM P2006 INTO @DATA(ld_number). | ||||
| "SELECT single DOCNR FROM PTQUODED INTO @DATA(ld_docnr). | ||||
| "SELECT single QUONR FROM PTQUODED INTO @DATA(ld_quonr). | ||||
| "SELECT single DEDRG FROM T556R INTO @DATA(ld_srule). | ||||
| "SELECT single KTART FROM T556A INTO @DATA(ld_qtype). | ||||
| "SELECT single BEGDA FROM P2006 INTO @DATA(ld_sdate). | ||||
| DATA(ld_ignore_interval) | = ' '. | |||
Search for further information about these or an SAP related objects