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

Function HR_DEDUCE_SHARED_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_DEDUCE_SHARED_QUOTA'".
EXPORTING
PERNR = "
INFTY = "
AWART = "
DOCNR = "
* BUFFER_REFRESH = 'X' "
* QTYPE_DOWN_TO_ZERO = ' ' "
TABLES
TIMES_PER_DAY = "
T2006X = "
T2007X = "
TQUODED = "
P_PERNR_TAB = "
P_PERNR_QUOTA_TAB = "
EXCEPTIONS
ERROR_OCCURRED = 1 ZERO_DEDUCTION = 2 WRONG_INFTY = 3 NOT_ENOUGH_QUOTA = 4 SYSTEM_ERROR = 5 ZERO_DOCNR = 6
IMPORTING Parameters details for HR_DEDUCE_SHARED_QUOTA
PERNR -
Data type: P2001-PERNROptional: No
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)
AWART -
Data type: P2001-AWARTOptional: 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)
BUFFER_REFRESH -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
QTYPE_DOWN_TO_ZERO -
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_DEDUCE_SHARED_QUOTA
TIMES_PER_DAY -
Data type: PTM_TIMES_PER_DAYOptional: No
Call by Reference: Yes
T2006X -
Data type: P2006XOptional: No
Call by Reference: Yes
T2007X -
Data type: P2007XOptional: No
Call by Reference: Yes
TQUODED -
Data type: PTQUODEDOptional: No
Call by Reference: Yes
P_PERNR_TAB -
Data type: HRCCE_S_PERNROptional: No
Call by Reference: Yes
P_PERNR_QUOTA_TAB -
Data type: HRCCE_PERNR_QUOTA_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURRED -
Data type:Optional: No
Call by Reference: Yes
ZERO_DEDUCTION -
Data type:Optional: No
Call by Reference: Yes
WRONG_INFTY -
Data type:Optional: No
Call by Reference: Yes
NOT_ENOUGH_QUOTA -
Data type:Optional: No
Call by Reference: Yes
SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: Yes
ZERO_DOCNR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_DEDUCE_SHARED_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: | ||||
| lv_pernr | TYPE P2001-PERNR, " | |||
| lt_times_per_day | TYPE STANDARD TABLE OF PTM_TIMES_PER_DAY, " | |||
| lv_error_occurred | TYPE PTM_TIMES_PER_DAY, " | |||
| lv_infty | TYPE P2001-INFTY, " | |||
| lt_t2006x | TYPE STANDARD TABLE OF P2006X, " | |||
| lv_zero_deduction | TYPE P2006X, " | |||
| lv_awart | TYPE P2001-AWART, " | |||
| lt_t2007x | TYPE STANDARD TABLE OF P2007X, " | |||
| lv_wrong_infty | TYPE P2007X, " | |||
| lv_docnr | TYPE PTQUODED-DOCNR, " | |||
| lt_tquoded | TYPE STANDARD TABLE OF PTQUODED, " | |||
| lv_not_enough_quota | TYPE PTQUODED, " | |||
| lt_p_pernr_tab | TYPE STANDARD TABLE OF HRCCE_S_PERNR, " | |||
| lv_system_error | TYPE HRCCE_S_PERNR, " | |||
| lv_buffer_refresh | TYPE CHAR1, " 'X' | |||
| lv_zero_docnr | TYPE CHAR1, " | |||
| lt_p_pernr_quota_tab | TYPE STANDARD TABLE OF HRCCE_PERNR_QUOTA_TAB, " | |||
| lv_qtype_down_to_zero | TYPE CHAR1. " ' ' |
|   CALL FUNCTION 'HR_DEDUCE_SHARED_QUOTA' " |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| INFTY | = lv_infty | |
| AWART | = lv_awart | |
| DOCNR | = lv_docnr | |
| BUFFER_REFRESH | = lv_buffer_refresh | |
| QTYPE_DOWN_TO_ZERO | = lv_qtype_down_to_zero | |
| TABLES | ||
| TIMES_PER_DAY | = lt_times_per_day | |
| T2006X | = lt_t2006x | |
| T2007X | = lt_t2007x | |
| TQUODED | = lt_tquoded | |
| P_PERNR_TAB | = lt_p_pernr_tab | |
| P_PERNR_QUOTA_TAB | = lt_p_pernr_quota_tab | |
| EXCEPTIONS | ||
| ERROR_OCCURRED = 1 | ||
| ZERO_DEDUCTION = 2 | ||
| WRONG_INFTY = 3 | ||
| NOT_ENOUGH_QUOTA = 4 | ||
| SYSTEM_ERROR = 5 | ||
| ZERO_DOCNR = 6 | ||
| . " HR_DEDUCE_SHARED_QUOTA | ||
ABAP code using 7.40 inline data declarations to call FM HR_DEDUCE_SHARED_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_pernr). | ||||
| "SELECT single INFTY FROM P2001 INTO @DATA(ld_infty). | ||||
| "SELECT single AWART FROM P2001 INTO @DATA(ld_awart). | ||||
| "SELECT single DOCNR FROM PTQUODED INTO @DATA(ld_docnr). | ||||
| DATA(ld_buffer_refresh) | = 'X'. | |||
| DATA(ld_qtype_down_to_zero) | = ' '. | |||
Search for further information about these or an SAP related objects