SAP BAPI_TIMEQUOTA_GETDETAILEDLIST Function Module for BAPI: Determines Quota Data for a Personnel Number









BAPI_TIMEQUOTA_GETDETAILEDLIST is a standard bapi timequota getdetailedlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI: Determines Quota Data for a Personnel Number 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 bapi timequota getdetailedlist FM, simply by entering the name BAPI_TIMEQUOTA_GETDETAILEDLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: TIQU
Program Name: SAPLTIQU
Main Program:
Appliation area: P
Release date: 04-Jun-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_TIMEQUOTA_GETDETAILEDLIST 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 'BAPI_TIMEQUOTA_GETDETAILEDLIST'"BAPI: Determines Quota Data for a Personnel Number
EXPORTING
EMPLOYEENUMBER = "Personnel number
* QUOTASELECTIONMOD = '1' "Selection Switch for Quotas
* WAYOFCALCULATION = 'D' "Quota Determination Type
* KEYDATEFORENTITLE = "Key date for entitlement
* KEYDATEFORDEDUCTION = "Key date for deduction
* VALIDITYBEGIN = '18000101' "Valid from
* VALIDITYEND = '99991231' "Valid to
* DEDUCTBEGIN = "Deduction from
* DEDUCTEND = "Deduction to

TABLES
* ABSENCEQUOTATYPESELECTION = "Absence Quota Type Selection
* PRESENCEQUOTATYPESELECTION = "Attendance Quota Types for Selection
* ABSENCEQUOTARETURNTABLE = "Return Table for Absence Quotas
* PRESENCEQUOTARETURNTABLE = "Return Table for Attendance Quotas
* RETURN = "Return Table for General Information
* CUMULATEDVALUES = "Return Table for Cumulated Values
* ABSENCEQUOTATRANSFERPOOL = "
.



IMPORTING Parameters details for BAPI_TIMEQUOTA_GETDETAILEDLIST

EMPLOYEENUMBER - Personnel number

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

QUOTASELECTIONMOD - Selection Switch for Quotas

Data type: BAPIHRQUOTAHELP-TYPEOFQU
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAYOFCALCULATION - Quota Determination Type

Data type: BAPIHRQUOTAHELP-QUOTAMOD
Default: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEYDATEFORENTITLE - Key date for entitlement

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

KEYDATEFORDEDUCTION - Key date for deduction

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

VALIDITYBEGIN - Valid from

Data type: BAPIHRQUOTA-FROM_DATE
Default: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALIDITYEND - Valid to

Data type: BAPIHRQUOTA-TO_DATE
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEDUCTBEGIN - Deduction from

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

DEDUCTEND - Deduction to

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

TABLES Parameters details for BAPI_TIMEQUOTA_GETDETAILEDLIST

ABSENCEQUOTATYPESELECTION - Absence Quota Type Selection

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

PRESENCEQUOTATYPESELECTION - Attendance Quota Types for Selection

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

ABSENCEQUOTARETURNTABLE - Return Table for Absence Quotas

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

PRESENCEQUOTARETURNTABLE - Return Table for Attendance Quotas

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

RETURN - Return Table for General Information

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

CUMULATEDVALUES - Return Table for Cumulated Values

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

ABSENCEQUOTATRANSFERPOOL -

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

Copy and paste ABAP code example for BAPI_TIMEQUOTA_GETDETAILEDLIST 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_employeenumber  TYPE BAPIHRITBASE-EMPLOYEENUM, "   
lt_absencequotatypeselection  TYPE STANDARD TABLE OF BAPIHRSELQTYPE, "   
lv_quotaselectionmod  TYPE BAPIHRQUOTAHELP-TYPEOFQU, "   '1'
lt_presencequotatypeselection  TYPE STANDARD TABLE OF BAPIHRSELQTYPE, "   
lv_wayofcalculation  TYPE BAPIHRQUOTAHELP-QUOTAMOD, "   'D'
lt_absencequotareturntable  TYPE STANDARD TABLE OF BAPIHRQUOTA, "   
lv_keydateforentitle  TYPE BAPIHRQUOTAHELP-KEYDATE_EN, "   
lt_presencequotareturntable  TYPE STANDARD TABLE OF BAPIHRQUOTA, "   
lt_return  TYPE STANDARD TABLE OF BAPIRETURN1, "   
lv_keydatefordeduction  TYPE BAPIHRQUOTAHELP-KEYDATE_DE, "   
lv_validitybegin  TYPE BAPIHRQUOTA-FROM_DATE, "   '18000101'
lt_cumulatedvalues  TYPE STANDARD TABLE OF BAPIHRQUOTACV, "   
lv_validityend  TYPE BAPIHRQUOTA-TO_DATE, "   '99991231'
lt_absencequotatransferpool  TYPE STANDARD TABLE OF BAPIHRTRANSFER, "   
lv_deductbegin  TYPE BAPIHRQUOTA-DEDUCTBEGIN, "   
lv_deductend  TYPE BAPIHRQUOTA-DEDUCTEND. "   

  CALL FUNCTION 'BAPI_TIMEQUOTA_GETDETAILEDLIST'  "BAPI: Determines Quota Data for a Personnel Number
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         QUOTASELECTIONMOD = lv_quotaselectionmod
         WAYOFCALCULATION = lv_wayofcalculation
         KEYDATEFORENTITLE = lv_keydateforentitle
         KEYDATEFORDEDUCTION = lv_keydatefordeduction
         VALIDITYBEGIN = lv_validitybegin
         VALIDITYEND = lv_validityend
         DEDUCTBEGIN = lv_deductbegin
         DEDUCTEND = lv_deductend
    TABLES
         ABSENCEQUOTATYPESELECTION = lt_absencequotatypeselection
         PRESENCEQUOTATYPESELECTION = lt_presencequotatypeselection
         ABSENCEQUOTARETURNTABLE = lt_absencequotareturntable
         PRESENCEQUOTARETURNTABLE = lt_presencequotareturntable
         RETURN = lt_return
         CUMULATEDVALUES = lt_cumulatedvalues
         ABSENCEQUOTATRANSFERPOOL = lt_absencequotatransferpool
. " BAPI_TIMEQUOTA_GETDETAILEDLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_TIMEQUOTA_GETDETAILEDLIST

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 EMPLOYEENUM FROM BAPIHRITBASE INTO @DATA(ld_employeenumber).
 
 
"SELECT single TYPEOFQU FROM BAPIHRQUOTAHELP INTO @DATA(ld_quotaselectionmod).
DATA(ld_quotaselectionmod) = '1'.
 
 
"SELECT single QUOTAMOD FROM BAPIHRQUOTAHELP INTO @DATA(ld_wayofcalculation).
DATA(ld_wayofcalculation) = 'D'.
 
 
"SELECT single KEYDATE_EN FROM BAPIHRQUOTAHELP INTO @DATA(ld_keydateforentitle).
 
 
 
"SELECT single KEYDATE_DE FROM BAPIHRQUOTAHELP INTO @DATA(ld_keydatefordeduction).
 
"SELECT single FROM_DATE FROM BAPIHRQUOTA INTO @DATA(ld_validitybegin).
DATA(ld_validitybegin) = '18000101'.
 
 
"SELECT single TO_DATE FROM BAPIHRQUOTA INTO @DATA(ld_validityend).
DATA(ld_validityend) = '99991231'.
 
 
"SELECT single DEDUCTBEGIN FROM BAPIHRQUOTA INTO @DATA(ld_deductbegin).
 
"SELECT single DEDUCTEND FROM BAPIHRQUOTA INTO @DATA(ld_deductend).
 


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!