SAP ISH_OM_ORG_HRCHY_LEVEL_DOWN Function Module for IS-H: Get Org. Unit One Level Below
ISH_OM_ORG_HRCHY_LEVEL_DOWN is a standard ish om org hrchy level down SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H: Get Org. Unit One Level Below processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ish om org hrchy level down FM, simply by entering the name ISH_OM_ORG_HRCHY_LEVEL_DOWN into the relevant SAP transaction such as SE37 or SE38.
Function Group: N_OM_HIERARCHY
Program Name: SAPLN_OM_HIERARCHY
Main Program: SAPLN_OM_HIERARCHY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_OM_ORG_HRCHY_LEVEL_DOWN pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ISH_OM_ORG_HRCHY_LEVEL_DOWN'"IS-H: Get Org. Unit One Level Below.
EXPORTING
* I_UPPER_OBJID = "Object ID for Which Lower Org. Unit Is to Be Found
* I_UPPER_ORGID = "Org. ID for Which Lower Org. Unit Is to Found
* ITR_ORGID = "Range of Org. Units Below Which Org. Units Are to Be Found
* IT_OBJECTS = "Table of Object IDs Below Which Org. Units Are to Be Found
* IT_ORGID = "Table of Org. Units Below Which Org. Units Are to Be Found
* I_BEGDT = "Begin Date for Which the Assignment Is to Be Valid
* I_ENDDT = "End Date for Which the Assignment Is to Be Valid
* I_READ_DB = ' ' "Default Is Off
* I_NO_FILTER = ' ' "Default is off
IMPORTING
ET_OBJ_REL = "Table of IS-H Object Relationship Using Object IDs
ET_TN10H = "Table of IS-H Object Relationship Using Org. IDs (TN10H)
EXCEPTIONS
NOTHING_FOUND = 1 NOT_VALID = 2 INTERNAL_ERROR = 3
IMPORTING Parameters details for ISH_OM_ORG_HRCHY_LEVEL_DOWN
I_UPPER_OBJID - Object ID for Which Lower Org. Unit Is to Be Found
Data type: HROBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_UPPER_ORGID - Org. ID for Which Lower Org. Unit Is to Found
Data type: ORGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
ITR_ORGID - Range of Org. Units Below Which Org. Units Are to Be Found
Data type: RNRANGEISHID_TOptional: Yes
Call by Reference: Yes
IT_OBJECTS - Table of Object IDs Below Which Org. Units Are to Be Found
Data type: HROBJECT_TOptional: Yes
Call by Reference: Yes
IT_ORGID - Table of Org. Units Below Which Org. Units Are to Be Found
Data type: ISH_T_ISHIDOptional: Yes
Call by Reference: Yes
I_BEGDT - Begin Date for Which the Assignment Is to Be Valid
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ENDDT - End Date for Which the Assignment Is to Be Valid
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_DB - Default Is Off
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_FILTER - Default is off
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISH_OM_ORG_HRCHY_LEVEL_DOWN
ET_OBJ_REL - Table of IS-H Object Relationship Using Object IDs
Data type: ISH_T_OBJ_RELOptional: No
Call by Reference: Yes
ET_TN10H - Table of IS-H Object Relationship Using Org. IDs (TN10H)
Data type: ISH_T_TN10HOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOTHING_FOUND - No data found for imported org. ID
Data type:Optional: No
Call by Reference: Yes
NOT_VALID - Invalid
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal error while fetching data for imported org. ID
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_OM_ORG_HRCHY_LEVEL_DOWN Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_obj_rel | TYPE ISH_T_OBJ_REL, " | |||
| lv_i_upper_objid | TYPE HROBJID, " | |||
| lv_nothing_found | TYPE HROBJID, " | |||
| lv_et_tn10h | TYPE ISH_T_TN10H, " | |||
| lv_not_valid | TYPE ISH_T_TN10H, " | |||
| lv_i_upper_orgid | TYPE ORGID, " | |||
| lv_itr_orgid | TYPE RNRANGEISHID_T, " | |||
| lv_internal_error | TYPE RNRANGEISHID_T, " | |||
| lv_it_objects | TYPE HROBJECT_T, " | |||
| lv_it_orgid | TYPE ISH_T_ISHID, " | |||
| lv_i_begdt | TYPE SYDATUM, " | |||
| lv_i_enddt | TYPE SYDATUM, " | |||
| lv_i_read_db | TYPE ISH_ON_OFF, " SPACE | |||
| lv_i_no_filter | TYPE ISH_ON_OFF. " SPACE |
|   CALL FUNCTION 'ISH_OM_ORG_HRCHY_LEVEL_DOWN' "IS-H: Get Org. Unit One Level Below |
| EXPORTING | ||
| I_UPPER_OBJID | = lv_i_upper_objid | |
| I_UPPER_ORGID | = lv_i_upper_orgid | |
| ITR_ORGID | = lv_itr_orgid | |
| IT_OBJECTS | = lv_it_objects | |
| IT_ORGID | = lv_it_orgid | |
| I_BEGDT | = lv_i_begdt | |
| I_ENDDT | = lv_i_enddt | |
| I_READ_DB | = lv_i_read_db | |
| I_NO_FILTER | = lv_i_no_filter | |
| IMPORTING | ||
| ET_OBJ_REL | = lv_et_obj_rel | |
| ET_TN10H | = lv_et_tn10h | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| NOT_VALID = 2 | ||
| INTERNAL_ERROR = 3 | ||
| . " ISH_OM_ORG_HRCHY_LEVEL_DOWN | ||
ABAP code using 7.40 inline data declarations to call FM ISH_OM_ORG_HRCHY_LEVEL_DOWN
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_read_db) | = ' '. | |||
| DATA(ld_i_no_filter) | = ' '. | |||
Search for further information about these or an SAP related objects