Sapass

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



Index

PTManagerAttAbsence

PTManagerAttAbsence


The Business Object Manager for Attendances/Absences takes time
data recorded within and by the SAP R/3 System. Time data is then posted in the Attendances (2002) and Absences
(2001) infotypes in SAP HR Time Management (PT) Prior to the posting, a consistency check is performed.


Purpose


  1. Time data recorded in an external time management system can be transferred to SAP HR Time Management.

  2. Time data recorded by your employees in Employee Self-Services (ESS services) can be transferred to SAP HR Time Management
    .

Integration


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


11-Dec-2005


Methods

Available Methods


  • ManageChange : Start and control "Change att./absences" process [ BAPI_PTMGRATTABS_MNGCHANGE ]
  • ManageCreation : Start and control "Create attendances/absences" process [ BAPI_PTMGRATTABS_MNGCREATION ]
  • ManageDelete : Start and control "Delete attendances/absences" process [ BAPI_PTMGRATTABS_MNGDELETE ]

11-Dec-2005


ManageChange

ManageChange


Thi method changes data records in the Absences (2001) and Attendances (2002) infotypes.

Notes

The record to be changed is specified in the Object key for record to be changed.

The new attendance/absence data is entered in the structure HRABSATT_IN
. New account assignment or different payment information is transferred by the structures HRCOSTASSIGN, HRACTIVITYALLOC, and HRALTPAYMENT.

If the SIMULATE parameter is marked, then only a consistency
check of the changed data and a collision check with the existingdatabase records takes place. No check is performed for any of the newattendance/absence records and those records that are not yet saved.

For more information on function modules, see the documentation on the function module in BAPI_PTMGRATTABS_MNGCREATE
.

Further Information

You will find the valid record key for calling the BAPI_MGRATTABS_MNGCHANGE in the function module BAPI_EMPATTABS_GETLIST.

Prior to calling the function module Update mode (SIMULATE = "
"), you have to lock the personnel number for the employee whose time record you want to change.

The function module BAPI_TRANSACTION_COMMIT must be called to write the changed time record to the database.

If any critical errors occur during processing, the database changes in the Logical Unit of W
ork are also changed in the embedded function module. The BAPI_TRANSACTION_ROLLBACK is then called.


11-Dec-2005


ManageCreation

ManageCreation


This method creates attendance/absence records. The record to be created is checked for consistency. Information for different(alternative) payment and for account assignment (cost assignment and activity allocation) can also be created here.


Notes

This method does not support country-specific information such as anyillnesses linked to the records or any manual changes for continued pay data and the like.

This method uses single entry of data records. Thus, you have to callup this method frequently when creating several attendance/absence records at a time.



11-Dec-2005


ManageDelete

ManageDelete


This method deletes attendance or absence records.

Notes

If a simulation mode is being used, then no changes are made to thedatabase. The system displays a message stating whether or not an error would occur when deleting the record.


If the update mode is being used, then changes are made to the corresponding database only when the function BAPI_TRANSACTION_COMMIT is called.


11-Dec-2005