Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>PTManagerExtAttAbs



Index

PTManagerExtAttAbs

PTManagerExtAttAbs


The Business Object Manager for External Attendances/Absences
takes evaluated time data from an external system and transfers it to the Attendances (2002) or Absences
infotypes (2001) in SAP HR Time Management.


Structure


Time data is first stored in the interface table for Attendances/Absences 2001/2002 (PTEX2000) and the interface table for
infotypes (directory table) (PTEXDIR). Here the time data is posted to the Attendances (2002) and Absences (2001) infotypes.


Information on cost assignment and activity allocation can be provided along with the time data.


Integration


If time data from external time recording systems is to be posted to the EE Remuneration Info infotype (2010) in
SAP HR Time Management
, use the Business Object BUS 2012 Manager for External Employee Remuneration Specifications
.


11-Dec-2005


Methods

Available Methods


  • Check : Check attendance/absence w/o acct assgmnt [ BAPI_PTMGREXTATTABS_CHECK ]
  • CheckCollision : Collision check [ BAPI_PTMGREXTATTABS_CHECKCOLLI ]
  • CheckQuota : Check quota deduction [ BAPI_PTMGREXTATTABS_CHECKQUOTA ]
  • CheckWithActivityAllocation : Check attendance/absence with activity allocation [ BAPI_PTMGREXTATTABS_CHECKWACT ]
  • CheckWithCostAssignment : Check attendance/absence with cost allocation [ BAPI_PTMGREXTATTABS_CHECKWCOST ]
  • Insert : Insert attendance/absence w/o acct assgmnt [ BAPI_PTMGREXTATTABS_INSERT ]
  • InsertWithActivityAllocation : Insert attendance/absence with activity allocation [ BAPI_PTMGREXTATTABS_INSERTWACT ]
  • InsertWithCostAssignment : Insert attendance/absence with cost allocation [ BAPI_PTMGREXTATTABS_INSWCOST ]

11-Dec-2005


Check

Check


This method performs a plausibility check on evaluated time data from external time management systems in the Absences (2001) and Attendances (2002) infotypes.

Notes

Executing this method is option. It is carried out when transferring data to the SAP R/3 System.


  • Correct data records are transferred to the SAP R/3 System with the method BAPI: Insert ExternalAttendance/Absence in Interface Table without Account Assignement and stored in the interface tables PTEX2000 and PTEXDIR.
  • Incorrect data records are logged in the external time management
    system and not uploaded to the SAP System. These records can only be corrected in the external system.
  • This method also checks any information on different (alternative) payment.

    No cost assignment or activity allocation is supported for this method.



    11-Dec-2005


    CheckCollision

    CheckCollision


    This method checks if the time data records from an external timemanagement system will collide with the time data records in the R/3 System.

    The R/3 System is checked to see if a time data record exists in thesame time period. This checks both the time-related records created, as well as the records created for full days.


    Notes

    The data to be checked is stored in the EXTERNALRECORDS parameter. Thedata records for which a collision occurs in the R/3 System are returned in the COLLISIONRECORDS parameter.

    If values exist in the EXTSYSTEM and EXTAPPLICATION fields then the infotype records are not included with this external key.


    Records for full-days and multiple days must have the ALL_DAY_FLAG selected in EXTERNALRECORDS.

    The message type determines the type of error messages.


    11-Dec-2005


    CheckQuota

    CheckQuota


    This method can simulate quota deduction. In this way, you can check ifthe remaining quotas in the R/3 System is sufficient prior to posting an absence from an external time management system.

    The actual deduction occurs when the attendance/absence is posted in the R/3 System.



    11-Dec-2005


    CheckWithActivityAllocation

    CheckWithActivityAllocation


    This method performs a plausibility check on the evaluated time data from external time management systems in the infotypes Absences (2001) and Attendances (2002). The data related to activity allocation is also checked.

    Notes


    Executing this method is optional. It is carried out when transferring data to the SAP R/3 System.

  • Correct data records are transferred to the SAP R/3 System with the
  • method

    BAPI: Inserts External Attendance/Absence in Interface Table (with Activity Allocation) and
    then stored in the interface tables PTEX2000 and PTEXDIR.

  • Incorrect data records are logged in the external time managementsystem and not uploaded to the SAP R/3 System. These records can then be corrected there.
  • Notes

    This method checks information on different payment.


    No cost assignment is checked with this method.


    11-Dec-2005


    CheckWithCostAssignment

    CheckWithCostAssignment


    1

    Functionality

    This method performs a plausibility check on the evaluated time data from external time management systems in the infotypes Absences (2001) and Attendances (2002). Data related to cost assignment is also checked.


    Notes

    Executing this method is optional. It is carried out when transferring data to the SAP R/3 System.

  • 1Correct data records are transferred to the SAP R/3 System with the method BAPI: Inserts ExternalAttendances/Absences in Interface Table (with Cost Assignment) and then stores it in the interface tables PTEX2000 and PTEXDIR.
  • Incorrect data records are logged in the external time managementsystem and are not not uploaded to the SAP R/3 System. These records can then be corrected there.
  • This method checks information on different (alternative) payment.

    This method does not support activity allocation.


    1

    Example

    1

    Notes


    11-Dec-2005


    Insert

    Insert


    This method transfers evaluated time data from external time managementsystems to the SAP R/3 System. The time data is then stored as attendance or absences.

    Information on different payment is also transferred.

    Notes

    This method stores the data records in the interface tables PTEX2000 and PTEXDIR. Then, the report RPTEXTPT (External
    Transfer -> Time Management
    reads the data from PTEX2000 and stores it as Attendances in infotype 2002 or asAbsences in infotype 2001.

    Neither cost assignment nor activity allocation is supported with this method.


    The method

    BAPI: Checks External Attendances/ Absences (without Account Assignment) and can check the data priorto transferring it for plausibility checks.


    11-Dec-2005


    InsertWithActivityAllocation

    InsertWithActivityAllocation


    This method transfers evaluated time data from external time management systems to the SAP R/3 System.

    Information on different payment and activity allocation is also transferred.

    Notes

    This method stores the data records in the interface tables PTEX2000 and PTEXDIR. Then, the report RPTEXTPT (External
    Transfer -> Time Management
    reads the data from PTEX2000 and stores it as Attendances in infotype 2002 or as Absences in infotype 2001.

    No cost assignment is supported with this method.

    The method

    BAPI: Checks External Attendances/Absences in Interface Table (with Cost Assignment) and
    check the data prior to transferring it for plausibility checks.


    11-Dec-2005


    InsertWithCostAssignment

    InsertWithCostAssignment


    This method transfers evaluated time data from external time managemensystems to the SAP R/3 System. The time data is then stored as attendance or absences.

    Information on different payment and cost assignment is also transferred.

    Notes


    This method stores the data records in the interface tables PTEX2000 and PTEXDIR. Then, the report RPTEXTPT (ExternalTransfer -> Time Management reads the data from PTEX2000 and stores it as Attendances in infotype 2002 or asAbsences in infotype 2001.


    This method does not support activity allocation.

    The method BAPI: Checks External Attendances/Absences (with Cost Assignment) and can check the dataprior to transferring to perform a plausibility check.


    11-Dec-2005