Functionality You can use this method to lock an employee so that the records storedfor this person cannot be accessed. When an employee is locked, only the user who has set the lock canaccess the records for this employee. Other users are denied access. Only when an employee is locked for other users, can his/her records bemaintained (created, changed, deleted, copied) by the person who hasset the lock. Example:> An employee's address must be changed.
- The employee is locked using the ENQUEUE method.
- The following methods of the Addresses> infotype (0006) are then
called in the order given: GETLIST: overview of all existing infotype records GETDETAIL: selection of the required infotype record CHANGE: maintenance of the selected infotype record
- Finally, the employee is unlocked using the DEQUEUE method.
Notes Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings. For more information on the DEQUEUE method, read the documentation onthe function module BAPI_EMPLOYEE_DEQUEUE. Description Method return code Value range In case of an error, this structure contains the following information:
- Message type (TYPE> field)
- Message code (CODE> field)
- Message text (MESSAGE> field)
If the operation is successful, this structure contains the initialvalue.Description For information on the personnel number, read the relevant data elementdocumentation: Personnel number>.Description This method can be called for two different objects, namely forEmployeeAbstract(BUS1065) and EmployeeT(Employee). The key fields ofthese two methods differ; EmployeeT has an additional key field for thestart date. For technical reasons, the date is an import parameter of this method.The function is not influenced by the parameter.
|