I need to update the personnel administrator field (P0001-SACHP) for a large number people because the person has been changed. version is ERP2005 and there are several countries included but maintained only in English.
So, the infotype 0001 already exist. I also need to set the date for the change. I am not planning to conduct a pesonnel action just to use "copy" function to update this given field.
What is the best way to proceed?
First read the latest record of 0001 for the given pernr and change the SACHP field in the workarea.
If you want to create a new record with new date then use hr_infotype_operation.
with operation INS.
If you only want to change SACHP in the existing field then use MOD operation.
dont forget to lock the employee useing bapi_employee_enqueue and then after hr_infotype_operation use bapi_employee_dequeue.