1, through the function operation.
infotypes:0001.DATA: ZreturnTYPEBAPIRETURN1, ZpakeyTYPEBapipakey.GETPernr.LOOP atP0001WHERE ...*Lock Personnel number Pager FUNCTION 'Bapi_employee_enqueue' Exporting Number= pernr-Pernr*Importing*RETURN = . ...*new information Type Pager FUNCTION 'hr_infotype_operation' Exportinginfty='0001' Number= p0001-Pernr*subtype = ' '*OBJECTID =Lockindicator = p0001-Sprps validityend= p0001-Endda Validitybegin= p0001-Begda recordnumber= p0001-SEQNR RECORD=P0001 Operation='INS'*Tclas = ' A 'Dialog_mode ='1'*Nocommit =*View_identifier =*Secondary_record = ImportingRETURN=Zreturn KEY=Zpakey. COMMIT work.
*Release Lock Pager FUNCTION 'Bapi_employee_dequeue' Exporting Number= pernr-Pernr*Importing*RETURN = .Endloop.
Operation:mod (change) INS (insert) COPY (copy) DEL (delete) LIS9 (delimit)
2, update the database.
PARAMETERS: p_natio_o likeP0002-natio DEFAULT'DE', P_natio_n likeP0002-natio DEFAULT'D'.UPDATEPA0002SETNatio =P_natio_nWHEREPernr = p0002-Pernr andNatio =p_natio_o.IFSY-SUBRC =0. ENDIF.
HR Development Operation Information Type data