Caution! This API method only writes the Absences infotype (2001). Itshould no longer be used as it can lead to inconsistent time data. Instead, please use the corresponding API method for business objectBUS7007.Functionality This method can be used to create an Absences> infotype record(2001). Used together with the APPROVE method, it allows you to implement the"double verification principle" whereby at least two users are involvedin writing an active data record to the database. One of the userscreates a locked infotype record using the APPROVE method. Anotheruser unlocks the record, that is activates it using the APPROVE method.Notes Messages are returned in the RETURN parameter. The parameterdocumentation contains the return codes and their meanings. The key fields used by the method are described under the parameters. This method can only be used if the ENQUEUE method for the businessobject EMPLOYEE> has already been called. For information on theENQUEUE method, please see the documentation on the function moduleBAPI_EMPLOYEE_ENQUEUE. For more information on the APPROVE method, please see thedocumentation on the function module BAPI_ABSENCE_APPROVE.Description For information on the meaning of the personnel number, please see thecorresponding data element documentation: Personnelnumber>.Description For information on the meaning of the lock indicator for the HR masterrecord, please see the corresponding data element documentation:Lock indicator for HR master record>.Description For information on the meaning of the object ID, please see thecorresponding data element documentation: Objectidentification>.Description For information on the meaning of the number of an infotype record withthe same key, please see the corresponding data element documentation:Number of infotype record with same key>.Description Return code of method Value range If there is an error, the structure may contain the followinginformation:
- Message type (field TYPE>)
- Message code (field CODE>)
- Message text (field MESSAGE>)
If there are no errors, the field string is initial.Description For information on the meaning of the subtype, please see thecorresponding data element documentation: Subtype>.Description For information on the meaning of absence hours, please see thecorresponding data element documentation: Absence hours>.Note If there is an entry in parameter ABSENCEHOURS, parameters START andEND are filled automatically based on the Customizing settings for TimeManagement. Description For information on the meaning of the absence or attendance type,please see the corresponding data element documentation:Absence or attendance type>.Description For information on the meaning of the personnel number, please see thecorresponding data element documentation: Personnelnumber>.Description If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically, based on the Customizing settingsfor Time Management. Description For information on the meaning of the COMMIT control, please see thecorresponding data element documentation: COMMITcontrol at BAPI interface>.Description If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically, based on the Customizing settingsfor Time Management.
|