Functionality 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 errorwould occur when deleting the record. If the update mode is being used, then changes are made to thecorresponding database only when the functionBAPI_TRANSACTION_COMMIT> is called.Description In this structure, you specify the general parameters for theattendance or absence: Start and end date: required> Start and end time: optional> Number of hours : optional> The following dependiencies and conditions apply to the clock times andnumber of hours:
- If the start and end times have been entered, the number of hours is
ignored. The number of hours is then calculated when the record iscounted based on the clock times and the employee's daily workschedule.
- If the start time and number of hours, but not the end time, have been
entered, the end time is calculated during counting based on the firsttwo entries.
- If the end time and number of hours, but not the start time, have been
entered, the start time is calculated during counting based on thefirst two entries.
- If only the number of hours has been entered, the system reacts in one
of two ways: Time recording without clock times: (feature HRSIF returns value "X").No clock times are generated. Time recording with clock times: (feature HRSIF returns value " "). Thesystem generates clock times based on the personal work schedule.
- The HR system only accepts a number of hours or clock times for
partial-day and one-day records (start date = end date). Note that the function module does not allow you to make changes to thegenerated clock times or number of hours, as you can if you enter themdirectly. If you use this method, you should make a change modeavailable in your transaction for the new data. The function moduleBAPI_PTMGRATTABS_MANAGECHANGE> is provided for this purpose. Flag Full-day> : optional> Specifies that the record you want to create must be for a full day. Ifthis parameter is set, entries made in the Start time>, Endtime>, and Number of hours> fields are ignored. Flag Previous day> : optional> You can only select this field for partial-day attendances. Forabsences, the contents is ignored. For more information on previous dayassignment in the HR system, see the R/3 Library.Description Each attendance and absence record is identified by a unique key. Thekey differs from the usual infotype key and comprises the fields inthis structure. The attendance or absence key is assigned automaticallyby the system when a new record is created and comprises the followingfields:
- LOGICALSYSTEM> - logical system of original document
- DOCUMENTNUMBER> - internal document number
The key clearly identiifes the data record for deletion.Description If this parameter is marked, then you are in simulation mode. All ofthe checks (validations) required when creating a new informationrecord are performed. The database buffer is then initialized. The current info record is nolonger available for further validation, such as collision checks withother attendance/absence records. For more details, see the notes on list entry time recording in thegeneral function module documentation. Note
- The personnel number is not locked in simulation mode.
- For technical reasons, details for the time record can not be displayed
(or printed), as the HRABSATT_OUT> structure is blank.Description Table with messages from record processing. Critical errors are assigned the categories E> (error) and A > (abort). Warnings are indicated by a W>, information andsuccess messages by I> and S> respectively. If at least one E> or A> record appears in the table, theattendance/absence record was rejected by the system.
|