Ansicht
Dokumentation

RH_INSERT_INFTY - Insert Infotype Records

RH_INSERT_INFTY - Insert Infotype Records

ROGBILLS - Synchronize billing plans   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module lets you insert multiple infotype records for OM objects into the Personnel Planning databases (HRPnnnn). The infotype records 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 following meanings:

  • '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 you want to first update internally in the buffer, and then write to the database together, you should set the parameter to 'B' for internal buffer update only. The database update is then carried out by calling the function module 'RH_UPDATE_DATABASE'.

The function module also lets you change the status of multiple infotype records. In that case you should set the FCODE parameter as follows:

  • - BEAN -> submit

  • - GENE -> approve

  • - AKTI -> activate

  • - PLVO -> propose change

  • - ABLN -> reject

In the case of a status change, however, note the following: The fact that the record is deleted with the old status (except PLVO), means that for infotypes with time constraint 1, predecessors (if they exist) are extended. If the system transfers several infotype records of an infotype with time constraint 1 for the same object to the function module, without sorting them according to date, the automatic extension of predecessors can invalidate the transferred infotype records. To avoid this, in the case of a status change, you must either transfer the infotype records sorted in ascending order by date, or call the function module separately for each infotype record.





Parameters

AUTHY
COMMIT_FLG
FCODE
FORM
ILFCODE
INNNN
KEEP_LUPD
OLD_TABNR
ORDER_FLG
PPPAR_IMP
REPID
VTASK
WORKF_ACTV

Exceptions

BEGDA_GREATER_ENDDA
CORR_EXIT
ERROR_DURING_INSERT
NO_AUTHORIZATION
REPID_FORM_INITIAL

Function Group

RHAP

General Data in Customer Master   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3010 Date: 20240523 Time: 181609     sap01-206 ( 64 ms )