Fonction SAP BAPI_EMPATTABS_GETLIST - BAPI: List of Attendances/Absences for Online Interface

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FROM_DATE BAPIHRITBASE-FROM_DATE D 8 X Start date for selection
TO_DATE BAPIHRITBASE-TO_DATE D 8 X End date for selection

Paramètre Reférence Long. Facultatif Description
HRTIMESREC_LIST BAPIHRTIMRECLIST 95 Result table with record keys and details
RETURN BAPIRET2 548 Message table
SEL_ATYPE BAPIHRSELABSTYPE 11 X Selection options for attendance/absence type
SEL_EMPLOYEE BAPIHRSELEMPLOYEE 19 X Selection options for personnel number

Functionality
This method produces a list with the keys for selecting attendance/absence records. You can restrict the quantity in the list by enteringcertain selection criteria. Only the keys of the infotype are returnedfor which you have the applicable read authorization.

Notes
In the list of results only the existing database records are takeninto account.
To avoid memory overflow from not entering enough restriction criteria,the amount of hits is limited per time entry type (attendance orabsence) to a maximum of 50,000 database records.
If the actual number of hits exceeds this number, a warning is returnedin the table RETURN.

Description
Here you determine the start date for the selection period.

Default
01.01.1800

Description
Here you specify the end date of the selection period.

Default
12/31/9999

Description
This is a return parameter. In the corresponding table you will findthe key and the basic data of the time records that match the selectioncriteria for data transfer and for which you have the appropriate readauthorization.

Structure:
LOGICALSYSTEM Logical system of original document(personal labor time)
DOCUMENTNUMBER Document number for time data
EMPLOYEENUMBER Personnel Number
RECTYPE Subtype
Validity interval is entered in the following fields:

  • FROM_DATE From date

  • TO_DATE To date

  • START_TIME Start time

  • END_TIME End time

  • For more details on the individual time records, see the documentationon the BAPI_EMPATTABS_GETDETAIL.

    Description
    Table with Notifications from Record Processing
    Critical errors are indicated by the characters E (error) andA (evening). Warnings are indicated by a W. Informationand successful messages are indicated by the characters I andS, respectively.
    The presence of at least one E or A record in the tablemeans that this attendance/absence record was rejected by the system.

    Description
    Here you can create a list of selection options which defines thetransfer of attendance/absence types in ABAP format.

    Value range
    In contrast to online transactions and ABAP reports, you have tocomplete the fields SIGN undOPTION in the table with valid values.
    There are no "default" field contents. Invalid table entries areremoved from the selection, and are not replaced by default values. Inother words, an incomplete or limited selection will be created.

    Description
    Here you can create a list of selection options which defines thetransfer of personnel numbers in ABAP format.

    Value range
    In contrast to online transactions and ABAP reports, you have tocomplete the fields SIGN undOPTION in the table with valid values.
    There are no "default" field contents. Invalid table entries areremoved from the selection, and are not replaced by default values. Inother words, an incomplete or limited selection will be created.