Fonction SAP BAPI_EMPATTABS_GETDETAIL - BAPI: Orginal and Derived Data from Attendances/Absences

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
HRTIMESKEY BAPIHRTIMESKEY u 30 Object key for record to be changed

Paramètre Reférence Type Long. Description
ABSENCE_FLAG BAPIHRTYPES-ABSENCE_FLAG C 1 Absence indicator
ABS_ATT_TYPE BAPIHRTYPES-ABS_ATT_TYPE C 4 Att./absence type
EMPLOYEENUMBER BAPIHRITBASE-EMPLOYEENUM N 8 Personnel number
HRABSATTEXT BAPIHRTYP_TEXT-ATYPE_TEXT C 25 Short name for attendance/absence type
HRABSATT_OUT BAPIHRABSATT_OUT u 68 Detail data on attendance/absence records
HRACTIVITYALLOC BAPIHRACTIVITYALLOC u 328 Activity allocation
HRALTPAYMENT BAPIHRALTPAYMENT u 45 Different payment
HRCOSTASSIGN BAPIHRCOSTASSIGN u 196 Cost assignment
LOCKINDICATOR BAPIHRITBASE-LOCKINDICATOR C 1 Lock indicator for HR master record
WORKTAXAREA BAPIHRTYPES-WORKTAXAREA C 4 Tax area work center

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Message table

Functionality
This method enabley you to query detail information on an attendance orabsence record.

Notes
The attendance or absence record is specified by its key(BAPIHRTIMESKEY). You get the key using the BAPI_EMPATTABS_GETLISTmethod.
Each attendance/absence record is returned in the HRABSATT_OUTstructure.
Additional data is returned in the following structures:

  • Information on different payment in the HRALTPAYMENT
  • structure
    • Information on cost assignment in the HRCOSTASSIGN
    • structure
      • Information on activity allocation in the HRACTIVITYALLOC
      • structure.
        A check of read authorization takes place for each requested infotyperecord.

        Description
        This field indicates an absence record. The indicator (ID) is checkedwhen data from an absence is returned. The field does not change for anattendance.
        You will find more information on indicators (IDs) for interface tablesin the corresponding data element documentation on theID for interface table.

        Description
        You will find more information on attendance and absence types in thecorresponding data element documentation on Attendance orabsence type.

        Description
        You will find more information on personnel numbers in thecorresponding data element documentation on thepersonnel number.

        Description
        The short texts for the attendance and absence types are returned inthis structure.

        Description
        This output structure contains the following information:

        • All original attendance/absence data (see parameter HRABSATT_IN)
        • and
          • All accompanying attendance/absence reasons.

          • Depending on the validity period entered, the following detail data canbe queried for attendance/absence data:
            Calendar days
            Attendance/absence hours
            Attendance/absence days
            Accounting hours
            Accounting days
            Quota Deduction
            When the record is deducted from a time quota, then the time quotataken is entered in this field.
            Time unit of measurement
            Time unit of measurement-ISO code
            Time unit for quota taken in the ISO code
            Time Unit Text
            Short description of the time unit

            Description
            This output structure includes information on activity allocation forthe attendance/absence records.

            Structure:
            COSTCENTER Cost center
            ORDERID Order number
            COST_OBJ Cost object
            WBS_ELEMENT WBS elements
            NETWORK Network number for account assignment
            ACTIVITY Operation number
            SALES_ORD Customer order number
            S_ORD_ITEM Item number in customer order
            CO_BUSPROC Business process number
            ACTTYPE Activity type
            SEND_CCTR Sender cost center
            COMP_CODE Company code
            BUS_AREA Business area
            SEG_TEXT Segment text

            Description
            This output structure contains information for different payment forthe attendance/absence records. For more details on the individualparameters, refer to the corresponding data element documentation.

            Structure:
            PAYSCALEGROUP Payscale group
            PAYSCALELEVEL Payscale level
            BONUSTYPE Premium number
            BONUSVALUE Premium indicator
            POSITION Position
            VALUATION_BASIS Valuation basis
            CURRENCY Currency key
            CURRENCY_ISO ISO code currency
            EXTRAPAYINDICATOR Extra pay indicator

            Description
            This output structure contains the information on cost assignment forthe attendance/absence records.

            Structure:
            COMP_CODE Company code
            BUS_AREA Business area
            COSTCENTER Cost center
            COST_OBJ Cost object
            WBS_ELEMENT WBS elements
            NETWORK Network number for account assignment
            ACTIVITY Vorgangsnummer
            SALES_ORD Customer order number
            S_ORD_ITEM Item number in customer order
            CO_BUSPROC Business process number
            SERVICE_TYPE Service type
            SERVICE_CATEGORY Service subtype
            ACTTYPE Activity type

            Description
            This field indicates the status of a record in the HR System. If thisfield is selected, then the record is locked. Locked records arecreated when the records are in the middle of an approval process.
            They are not taken into account for payroll accounting, whentransferring account assignment data or in quota deduction.
            You can create a locked record if you possess the corresponding HRauthorization. Keep in mind, however, that some HR authorizationsautomatically set lock indicators.

            Description
            You will find more information on the tax area in the work center inthe corresponding data element documentation Tax areawork center.

            Description
            The key for a time data record can be entered in this strucutre.

            Structure:

            • LOGICALSYSTEM

            • DOCUMENTNUMBER
            • Description
              This table contains messages resulting from the processing of the
              records. The critical fields are marked by an E (error) andA (evening). Currencies are indicated with a W.Information and successful messages are indicated by I(information) and S (successful).
              If an E or an A record is included in the table, theattendance/absence record is rejected by the system.