HCM Function module Used the same way in S/4HANA

RH_INSERT_INFTY Insert Organizational Management Infotype Records

Inserts records of an organizational management infotype from table INNNN, for example relationships (1001) or descriptions. It is used in upload programs that build org structures. VTASK controls the update mode: use D for direct update or B to buffer several calls and post them together.

Function group
RHAP
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
FCODEHRRHAP-FCODEFunction code—
VTASKHRRHAP-VTASKUpdate mode (B, D, V, S)Yes
ORDER_FLGHRRHAP-ORDER_FLGRespect the record sequence—
COMMIT_FLGHRRHAP-COMMIT_FLGCommit work flag—
AUTHYHRRHAP-AUTHYAuthorization check switch—
PPPAR_IMPPPPARImport structure PPPAR—
OLD_TABNRHRRHAP-OLD_TABNRKeep the old table pointer (TABNR)—
REPIDSY-REPIDReport for table infotypes—
FORM—FORM routine for table infotypes—
KEEP_LUPDHRRHAP-KEEP_LUPDKeep last changed by/on—
WORKF_ACTVHRRHAP-WORKF_ACTVTrigger workflow events—

Tables parameters

ParameterTypeDescriptionRequired
INNNN—Infotype records (HRInnnn)Yes
ILFCODEILFCODLogical function codes—

Exceptions

  • NO_AUTHORIZATION — No authorization
  • ERROR_DURING_INSERT — Error during insert
  • REPID_FORM_INITIAL — Report/FORM name for table infotype is empty
  • CORR_EXIT — Error assigning the correction number
  • BEGDA_GREATER_ENDDA — Start date is after end date

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'RH_INSERT_INFTY'
  EXPORTING
    vtask = lv_vtask
  TABLES
    innnn = lt_innnn
    ilfcode = lt_ilfcode
  EXCEPTIONS
    no_authorization = 1
    error_during_insert = 2
    repid_form_initial = 3
    corr_exit = 4
    begda_greater_endda = 5
    OTHERS = 6.

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report