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

RH_OBJECT_CREATE Create Organizational Management Object

Creates an organizational management object (infotype 1000) such as an organizational unit, position or job in a plan version, with abbreviation and name. Org structure upload programs call it first and then add relationships with RH_INSERT_INFTY. OBJID returns the new object ID; use EXT_NUMBER only when external numbering is set up.

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

Importing parameters

ParameterTypeDescriptionRequired
LANGUSY-LANGULanguage—
PLVARHRP1000-PLVARPlan versionYes
OTYPEHRP1000-OTYPEObject typeYes
EXT_NUMBERHRP1000-OBJIDExternal object ID—
BEGDAHRP1000-BEGDAStart date—
ENDDAHRP1000-ENDDAEnd date—
OSTATHRP1000-ISTATPlanning status—
SHORTHRP1000-SHORTObject abbreviation—
STEXTHRP1000-STEXTObject nameYes
GUIDHRGUIDObject GUID—
VTASKHRRHAP-VTASKUpdate mode (B, D, V, S)—
KEEP_LUPDCHAR1Keep last changed by/on—

Exporting parameters

ParameterTypeDescription
OBJIDHRP1000-OBJIDID of the created object

Exceptions

  • TEXT_REQUIRED — Object name is required
  • INVALID_OTYPE — Invalid object type
  • INVALID_DATE — Invalid date
  • ERROR_DURING_INSERT — Error during insert
  • ERROR_EXT_NUMBER — External number error
  • UNDEFINED — Other error

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_OBJECT_CREATE'
  EXPORTING
    plvar = lv_plvar
    otype = lv_otype
    stext = lv_stext
  IMPORTING
    objid = lv_objid
  EXCEPTIONS
    text_required = 1
    invalid_otype = 2
    invalid_date = 3
    error_during_insert = 4
    error_ext_number = 5
    undefined = 6
    OTHERS = 7.

Related tables

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