SAP BAPI_EMPATTABS_GETLIST Function Module for BAPI: List of Attendances/Absences for Online Interface
BAPI_EMPATTABS_GETLIST is a standard bapi empattabs getlist 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: List of Attendances/Absences for Online Interface 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 empattabs getlist FM, simply by entering the name BAPI_EMPATTABS_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRTIM00BAPIABSATT
Program Name: SAPLHRTIM00BAPIABSATT
Main Program:
Appliation area: P
Release date: 26-Jun-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_EMPATTABS_GETLIST 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_EMPATTABS_GETLIST'"BAPI: List of Attendances/Absences for Online Interface.
EXPORTING
* FROM_DATE = "Start date for selection
* TO_DATE = "End date for selection
TABLES
* SEL_EMPLOYEE = "Selection options for personnel number
* SEL_ATYPE = "Selection options for attendance/absence type
HRTIMESREC_LIST = "Result table with record keys and details
RETURN = "Message table
IMPORTING Parameters details for BAPI_EMPATTABS_GETLIST
FROM_DATE - Start date for selection
Data type: BAPIHRITBASE-FROM_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
TO_DATE - End date for selection
Data type: BAPIHRITBASE-TO_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_EMPATTABS_GETLIST
SEL_EMPLOYEE - Selection options for personnel number
Data type: BAPIHRSELEMPLOYEEOptional: Yes
Call by Reference: No ( called with pass by value option)
SEL_ATYPE - Selection options for attendance/absence type
Data type: BAPIHRSELABSTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
HRTIMESREC_LIST - Result table with record keys and details
Data type: BAPIHRTIMRECLISTOptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Message table
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_EMPATTABS_GETLIST 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_from_date | TYPE BAPIHRITBASE-FROM_DATE, " | |||
| lt_sel_employee | TYPE STANDARD TABLE OF BAPIHRSELEMPLOYEE, " | |||
| lv_to_date | TYPE BAPIHRITBASE-TO_DATE, " | |||
| lt_sel_atype | TYPE STANDARD TABLE OF BAPIHRSELABSTYPE, " | |||
| lt_hrtimesrec_list | TYPE STANDARD TABLE OF BAPIHRTIMRECLIST, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_EMPATTABS_GETLIST' "BAPI: List of Attendances/Absences for Online Interface |
| EXPORTING | ||
| FROM_DATE | = lv_from_date | |
| TO_DATE | = lv_to_date | |
| TABLES | ||
| SEL_EMPLOYEE | = lt_sel_employee | |
| SEL_ATYPE | = lt_sel_atype | |
| HRTIMESREC_LIST | = lt_hrtimesrec_list | |
| RETURN | = lt_return | |
| . " BAPI_EMPATTABS_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_EMPATTABS_GETLIST
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 FROM_DATE FROM BAPIHRITBASE INTO @DATA(ld_from_date). | ||||
| "SELECT single TO_DATE FROM BAPIHRITBASE INTO @DATA(ld_to_date). | ||||
Search for further information about these or an SAP related objects