SAP ISB_RM_PH_GET Function Module for IS-B: RM Lesen der Portfoliohierarchie
ISB_RM_PH_GET is a standard isb rm ph get 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-B: RM Lesen der Portfoliohierarchie 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 isb rm ph get FM, simply by entering the name ISB_RM_PH_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: JBRJ
Program Name: SAPLJBRJ
Main Program: SAPLJBRJ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISB_RM_PH_GET 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 'ISB_RM_PH_GET'"IS-B: RM Lesen der Portfoliohierarchie.
EXPORTING
P_PHID = "Portfoliohierarchie
P_SICHT = "Sicht
* I_DEACTIVE = ' ' "X = Zugriff auf deaktiver PH erlaubt
* I_PH_TESTMODE = ' ' "X = temporäre PH mit Testselektionen, falls vorhanden
TABLES
* IT_JBRPHBAUMS_F = "Portfoliohierarchie Struktur (alle Felder)
* IT_JBRPHBAUM_F = "Portfoliohierarchie Struktur
* IT_HTEXT_TAB_F = "Zusatzinformationen für den Textleser
* IT_JBRZUORDN_F = "Zuordnung Blattknoten-Basisportfolien
EXCEPTIONS
NO_HIERARCHY_FOUND = 1 NO_ASSIGN_FOUND = 2 ENQUEUE_ERROR = 3 PH_DEACTIVATED = 4
IMPORTING Parameters details for ISB_RM_PH_GET
P_PHID - Portfoliohierarchie
Data type: JBRPHBAUM-PHIDOptional: No
Call by Reference: No ( called with pass by value option)
P_SICHT - Sicht
Data type: JBRSI-SICHTIDOptional: No
Call by Reference: No ( called with pass by value option)
I_DEACTIVE - X = Zugriff auf deaktiver PH erlaubt
Data type: JBRPH-NOTACTIVDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PH_TESTMODE - X = temporäre PH mit Testselektionen, falls vorhanden
Data type: AFWCH_FLAG_SELEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISB_RM_PH_GET
IT_JBRPHBAUMS_F - Portfoliohierarchie Struktur (alle Felder)
Data type: JBRPHBAUMSOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_JBRPHBAUM_F - Portfoliohierarchie Struktur
Data type: JBRPHBAUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HTEXT_TAB_F - Zusatzinformationen für den Textleser
Data type: JBRNAMEDATOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_JBRZUORDN_F - Zuordnung Blattknoten-Basisportfolien
Data type: JBRZUORDNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_HIERARCHY_FOUND - Hierarchiestruktur nicht gefunden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ASSIGN_FOUND - Zuordnungstabelle nicht gefunden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_ERROR - Sperrproblem
Data type:Optional: No
Call by Reference: Yes
PH_DEACTIVATED - Portfoliohierarchie ist deaktiv
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISB_RM_PH_GET 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_p_phid | TYPE JBRPHBAUM-PHID, " | |||
| lt_it_jbrphbaums_f | TYPE STANDARD TABLE OF JBRPHBAUMS, " | |||
| lv_no_hierarchy_found | TYPE JBRPHBAUMS, " | |||
| lv_p_sicht | TYPE JBRSI-SICHTID, " | |||
| lt_it_jbrphbaum_f | TYPE STANDARD TABLE OF JBRPHBAUM, " | |||
| lv_no_assign_found | TYPE JBRPHBAUM, " | |||
| lv_i_deactive | TYPE JBRPH-NOTACTIV, " ' ' | |||
| lv_enqueue_error | TYPE JBRPH, " | |||
| lt_it_htext_tab_f | TYPE STANDARD TABLE OF JBRNAMEDAT, " | |||
| lv_i_ph_testmode | TYPE AFWCH_FLAG_SELE, " ' ' | |||
| lt_it_jbrzuordn_f | TYPE STANDARD TABLE OF JBRZUORDN, " | |||
| lv_ph_deactivated | TYPE JBRZUORDN. " |
|   CALL FUNCTION 'ISB_RM_PH_GET' "IS-B: RM Lesen der Portfoliohierarchie |
| EXPORTING | ||
| P_PHID | = lv_p_phid | |
| P_SICHT | = lv_p_sicht | |
| I_DEACTIVE | = lv_i_deactive | |
| I_PH_TESTMODE | = lv_i_ph_testmode | |
| TABLES | ||
| IT_JBRPHBAUMS_F | = lt_it_jbrphbaums_f | |
| IT_JBRPHBAUM_F | = lt_it_jbrphbaum_f | |
| IT_HTEXT_TAB_F | = lt_it_htext_tab_f | |
| IT_JBRZUORDN_F | = lt_it_jbrzuordn_f | |
| EXCEPTIONS | ||
| NO_HIERARCHY_FOUND = 1 | ||
| NO_ASSIGN_FOUND = 2 | ||
| ENQUEUE_ERROR = 3 | ||
| PH_DEACTIVATED = 4 | ||
| . " ISB_RM_PH_GET | ||
ABAP code using 7.40 inline data declarations to call FM ISB_RM_PH_GET
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 PHID FROM JBRPHBAUM INTO @DATA(ld_p_phid). | ||||
| "SELECT single SICHTID FROM JBRSI INTO @DATA(ld_p_sicht). | ||||
| "SELECT single NOTACTIV FROM JBRPH INTO @DATA(ld_i_deactive). | ||||
| DATA(ld_i_deactive) | = ' '. | |||
| DATA(ld_i_ph_testmode) | = ' '. | |||
Search for further information about these or an SAP related objects