SAP PM_HIERARCHY_CALL_WITH_TABLE Function Module for NOTRANSL: Åufruf der Strukturdarstellung allgemein
PM_HIERARCHY_CALL_WITH_TABLE is a standard pm hierarchy call with table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Åufruf der Strukturdarstellung allgemein 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 pm hierarchy call with table FM, simply by entering the name PM_HIERARCHY_CALL_WITH_TABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: IHIE
Program Name: SAPLIHIE
Main Program: SAPLIHIE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PM_HIERARCHY_CALL_WITH_TABLE 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 'PM_HIERARCHY_CALL_WITH_TABLE'"NOTRANSL: Åufruf der Strukturdarstellung allgemein.
EXPORTING
* DATUM = SY-DATUM "Date
* SELECT_STPO = ' ' "Material can be selected
* SELMOD = 0 "Selection mode
* STKKZ = ' ' "Only PM assemblies
* TECHV = ' ' "Technical Status
* TPLNR = ' ' "Functional location
* WERKS = ' ' "Plant
* WITH_EQUI = ' ' "With built-in pieces of equipment
* WITH_EQUI_HIER = ' ' "With equipment hierarchies
* WITH_IFLO_HIER = ' ' "With location hierarchies
* WITH_BTYP = 'X' "Structure Explosion with Construction Type
* EQUNR = ' ' "Equipment number
* WITH_MARA = ' ' "With material
* AUTHORITY_CHECK = 'X' "Authorization Check for Active Objects (X)/Inactive ( )
* GRAFICS = ' ' "Display as hierarchy graphic
* LEVDO = '01' "Number of levels down
* LEVUP = '00' "Number of levels up
* MATNR = ' ' "Material number
* SANIN = 'X' "PM-relevant
* SELECT_EQUI = ' ' "Equipment can be selected
* SELECT_IFLO = 'X' "Functional locations can be selected
TABLES
EQUI_TAB = "Table of selected pieces of equipmt
HIER_TAB = "
IFLO_TAB = "Table of the selected spaces
STPO_TAB = "Table of selected materials
EXCEPTIONS
NO_HIERARCHY = 1 NO_OBJECT_DEFINED = 2 NO_SELECTION = 3 NO_VALID_EQUNR = 4 NO_VALID_MATNR = 5 NO_VALID_SELMOD = 6 NO_VALID_TPLNR = 7
IMPORTING Parameters details for PM_HIERARCHY_CALL_WITH_TABLE
DATUM - Date
Data type: EQUZ-DATABDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECT_STPO - Material can be selected
Data type: RIHEA-STPSEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELMOD - Selection mode
Data type: RIHEA-SELMOOptional: Yes
Call by Reference: No ( called with pass by value option)
STKKZ - Only PM assemblies
Data type: RIHEA-IHBGRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TECHV - Technical Status
Data type: STKO-TECHVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TPLNR - Functional location
Data type: IFLO-TPLNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: MAST-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_EQUI - With built-in pieces of equipment
Data type: RIHEA-EQUBIDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_EQUI_HIER - With equipment hierarchies
Data type: RIHEA-EQHIEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_IFLO_HIER - With location hierarchies
Data type: RIHEA-FLHIEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_BTYP - Structure Explosion with Construction Type
Data type: RIHEA-IHBTYDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EQUNR - Equipment number
Data type: EQUI-EQUNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_MARA - With material
Data type: RIHEA-BOMEXDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK - Authorization Check for Active Objects (X)/Inactive ( )
Data type: RIHEA-AUTHCDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GRAFICS - Display as hierarchy graphic
Data type: RIHEA-GRAFCDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LEVDO - Number of levels down
Data type: RIHEA-LEVDODefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LEVUP - Number of levels up
Data type: RIHEA-LEVUPDefault: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - Material number
Data type: MARA-MATNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SANIN - PM-relevant
Data type: RIHEA-IHRELDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECT_EQUI - Equipment can be selected
Data type: RIHEA-EQUSEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECT_IFLO - Functional locations can be selected
Data type: RIHEA-TPLSEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PM_HIERARCHY_CALL_WITH_TABLE
EQUI_TAB - Table of selected pieces of equipmt
Data type: RIHEQUIOptional: No
Call by Reference: No ( called with pass by value option)
HIER_TAB -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IFLO_TAB - Table of the selected spaces
Data type: RIHIFLOOptional: No
Call by Reference: No ( called with pass by value option)
STPO_TAB - Table of selected materials
Data type: RIHSTPXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_HIERARCHY - Functional location is not part of a hierarchy
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECT_DEFINED - Transfer neither functional location, nor equipment, nor material
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTION - No location was selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_EQUNR - The specified equipment number is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_MATNR - The specified material number is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_SELMOD - The selection session is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_TPLNR - The specified location number is invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PM_HIERARCHY_CALL_WITH_TABLE 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_datum | TYPE EQUZ-DATAB, " SY-DATUM | |||
| lt_equi_tab | TYPE STANDARD TABLE OF RIHEQUI, " | |||
| lv_no_hierarchy | TYPE RIHEQUI, " | |||
| lv_select_stpo | TYPE RIHEA-STPSE, " ' ' | |||
| lv_selmod | TYPE RIHEA-SELMO, " 0 | |||
| lv_stkkz | TYPE RIHEA-IHBGR, " ' ' | |||
| lv_techv | TYPE STKO-TECHV, " SPACE | |||
| lv_tplnr | TYPE IFLO-TPLNR, " SPACE | |||
| lv_werks | TYPE MAST-WERKS, " SPACE | |||
| lv_with_equi | TYPE RIHEA-EQUBI, " ' ' | |||
| lv_with_equi_hier | TYPE RIHEA-EQHIE, " ' ' | |||
| lv_with_iflo_hier | TYPE RIHEA-FLHIE, " ' ' | |||
| lv_with_btyp | TYPE RIHEA-IHBTY, " 'X' | |||
| lv_equnr | TYPE EQUI-EQUNR, " SPACE | |||
| lt_hier_tab | TYPE STANDARD TABLE OF EQUI, " | |||
| lv_no_object_defined | TYPE EQUI, " | |||
| lv_with_mara | TYPE RIHEA-BOMEX, " ' ' | |||
| lv_authority_check | TYPE RIHEA-AUTHC, " 'X' | |||
| lv_grafics | TYPE RIHEA-GRAFC, " ' ' | |||
| lt_iflo_tab | TYPE STANDARD TABLE OF RIHIFLO, " | |||
| lv_no_selection | TYPE RIHIFLO, " | |||
| lv_levdo | TYPE RIHEA-LEVDO, " '01' | |||
| lt_stpo_tab | TYPE STANDARD TABLE OF RIHSTPX, " | |||
| lv_no_valid_equnr | TYPE RIHSTPX, " | |||
| lv_levup | TYPE RIHEA-LEVUP, " '00' | |||
| lv_no_valid_matnr | TYPE RIHEA, " | |||
| lv_matnr | TYPE MARA-MATNR, " SPACE | |||
| lv_no_valid_selmod | TYPE MARA, " | |||
| lv_sanin | TYPE RIHEA-IHREL, " 'X' | |||
| lv_no_valid_tplnr | TYPE RIHEA, " | |||
| lv_select_equi | TYPE RIHEA-EQUSE, " ' ' | |||
| lv_select_iflo | TYPE RIHEA-TPLSE. " 'X' |
|   CALL FUNCTION 'PM_HIERARCHY_CALL_WITH_TABLE' "NOTRANSL: Åufruf der Strukturdarstellung allgemein |
| EXPORTING | ||
| DATUM | = lv_datum | |
| SELECT_STPO | = lv_select_stpo | |
| SELMOD | = lv_selmod | |
| STKKZ | = lv_stkkz | |
| TECHV | = lv_techv | |
| TPLNR | = lv_tplnr | |
| WERKS | = lv_werks | |
| WITH_EQUI | = lv_with_equi | |
| WITH_EQUI_HIER | = lv_with_equi_hier | |
| WITH_IFLO_HIER | = lv_with_iflo_hier | |
| WITH_BTYP | = lv_with_btyp | |
| EQUNR | = lv_equnr | |
| WITH_MARA | = lv_with_mara | |
| AUTHORITY_CHECK | = lv_authority_check | |
| GRAFICS | = lv_grafics | |
| LEVDO | = lv_levdo | |
| LEVUP | = lv_levup | |
| MATNR | = lv_matnr | |
| SANIN | = lv_sanin | |
| SELECT_EQUI | = lv_select_equi | |
| SELECT_IFLO | = lv_select_iflo | |
| TABLES | ||
| EQUI_TAB | = lt_equi_tab | |
| HIER_TAB | = lt_hier_tab | |
| IFLO_TAB | = lt_iflo_tab | |
| STPO_TAB | = lt_stpo_tab | |
| EXCEPTIONS | ||
| NO_HIERARCHY = 1 | ||
| NO_OBJECT_DEFINED = 2 | ||
| NO_SELECTION = 3 | ||
| NO_VALID_EQUNR = 4 | ||
| NO_VALID_MATNR = 5 | ||
| NO_VALID_SELMOD = 6 | ||
| NO_VALID_TPLNR = 7 | ||
| . " PM_HIERARCHY_CALL_WITH_TABLE | ||
ABAP code using 7.40 inline data declarations to call FM PM_HIERARCHY_CALL_WITH_TABLE
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.| "SELECT single DATAB FROM EQUZ INTO @DATA(ld_datum). | ||||
| DATA(ld_datum) | = SY-DATUM. | |||
| "SELECT single STPSE FROM RIHEA INTO @DATA(ld_select_stpo). | ||||
| DATA(ld_select_stpo) | = ' '. | |||
| "SELECT single SELMO FROM RIHEA INTO @DATA(ld_selmod). | ||||
| "SELECT single IHBGR FROM RIHEA INTO @DATA(ld_stkkz). | ||||
| DATA(ld_stkkz) | = ' '. | |||
| "SELECT single TECHV FROM STKO INTO @DATA(ld_techv). | ||||
| DATA(ld_techv) | = ' '. | |||
| "SELECT single TPLNR FROM IFLO INTO @DATA(ld_tplnr). | ||||
| DATA(ld_tplnr) | = ' '. | |||
| "SELECT single WERKS FROM MAST INTO @DATA(ld_werks). | ||||
| DATA(ld_werks) | = ' '. | |||
| "SELECT single EQUBI FROM RIHEA INTO @DATA(ld_with_equi). | ||||
| DATA(ld_with_equi) | = ' '. | |||
| "SELECT single EQHIE FROM RIHEA INTO @DATA(ld_with_equi_hier). | ||||
| DATA(ld_with_equi_hier) | = ' '. | |||
| "SELECT single FLHIE FROM RIHEA INTO @DATA(ld_with_iflo_hier). | ||||
| DATA(ld_with_iflo_hier) | = ' '. | |||
| "SELECT single IHBTY FROM RIHEA INTO @DATA(ld_with_btyp). | ||||
| DATA(ld_with_btyp) | = 'X'. | |||
| "SELECT single EQUNR FROM EQUI INTO @DATA(ld_equnr). | ||||
| DATA(ld_equnr) | = ' '. | |||
| "SELECT single BOMEX FROM RIHEA INTO @DATA(ld_with_mara). | ||||
| DATA(ld_with_mara) | = ' '. | |||
| "SELECT single AUTHC FROM RIHEA INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single GRAFC FROM RIHEA INTO @DATA(ld_grafics). | ||||
| DATA(ld_grafics) | = ' '. | |||
| "SELECT single LEVDO FROM RIHEA INTO @DATA(ld_levdo). | ||||
| DATA(ld_levdo) | = '01'. | |||
| "SELECT single LEVUP FROM RIHEA INTO @DATA(ld_levup). | ||||
| DATA(ld_levup) | = '00'. | |||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_matnr). | ||||
| DATA(ld_matnr) | = ' '. | |||
| "SELECT single IHREL FROM RIHEA INTO @DATA(ld_sanin). | ||||
| DATA(ld_sanin) | = 'X'. | |||
| "SELECT single EQUSE FROM RIHEA INTO @DATA(ld_select_equi). | ||||
| DATA(ld_select_equi) | = ' '. | |||
| "SELECT single TPLSE FROM RIHEA INTO @DATA(ld_select_iflo). | ||||
| DATA(ld_select_iflo) | = 'X'. | |||
Search for further information about these or an SAP related objects