Functionality This function module lets you insert multiple infotype records for OMobjects into the Personnel Planning databases (HRPnnnn). The infotyperecords in the table parameter INNNN must all have the structure Pnnnn(logical structure for nnnn infotype). The FCODE (function code) parameter should be set to 'INSE' (default). The individual parameter values VTASK (update type) have the followingmeanings: 'D' -> update in dialog 'S' -> synchronous update via update task 'V' -> asynchronous update via update task 'B' -> update internal in buffer only, no database update In HR applications, the parameter is set to 'D' for update in dialog.However, if you have multiple, logically-connected operations that youwant to first update internally in the buffer, and then write to thedatabase together, you should set the parameter to 'B' for internalbuffer update only. The database update is then carried out by callingthe function module 'RH_UPDATE_DATABASE'. The function module also lets you change the status of multipleinfotype records. In that case you should set the FCODE parameter asfollows: - BEAN -> submit - GENE -> approve - AKTI -> activate - PLVO -> propose change - ABLN -> reject In the case of a status change, however, note the following:> Thefact that the record is deleted with the old status (except PLVO),means that for infotypes with time constraint 1, predecessors (if theyexist) are extended. If the system transfers several infotype recordsof an infotype with time constraint 1 for the same object to thefunction module, without sorting them according to date, the automaticextension of predecessors can invalidate the transferred infotyperecords. To avoid this, in the case of a status change, you must eithertransfer the infotype records sorted in ascending order by date, orcall the function module separately for each infotype record. |