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
| Parameter | Type | Description | Required |
|---|---|---|---|
| LANGU | SY-LANGU | Language | — |
| PLVAR | HRP1000-PLVAR | Plan version | Yes |
| OTYPE | HRP1000-OTYPE | Object type | Yes |
| EXT_NUMBER | HRP1000-OBJID | External object ID | — |
| BEGDA | HRP1000-BEGDA | Start date | — |
| ENDDA | HRP1000-ENDDA | End date | — |
| OSTAT | HRP1000-ISTAT | Planning status | — |
| SHORT | HRP1000-SHORT | Object abbreviation | — |
| STEXT | HRP1000-STEXT | Object name | Yes |
| GUID | HRGUID | Object GUID | — |
| VTASK | HRRHAP-VTASK | Update mode (B, D, V, S) | — |
| KEEP_LUPD | CHAR1 | Keep last changed by/on | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| OBJID | HRP1000-OBJID | ID 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.