ManageChange
Thi method changes data records in the Absences (2001) and Attendances (2002) infotypes. NotesThe 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 InformationYou 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.
|