SAP RM_SVA_PHTREE_INIT Function Module for RM: Tree zur Anzeige der PH initialisieren









RM_SVA_PHTREE_INIT is a standard rm sva phtree init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RM: Tree zur Anzeige der PH initialisieren 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 rm sva phtree init FM, simply by entering the name RM_SVA_PHTREE_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: RMSVA
Program Name: SAPLRMSVA
Main Program: SAPLRMSVA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RM_SVA_PHTREE_INIT 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 'RM_SVA_PHTREE_INIT'"RM: Tree zur Anzeige der PH initialisieren
EXPORTING
I_DYNNR = "ABAP-Programm, Nummer des aktuellen Dynpros
I_REPID = "ABAP-Programm, aktuelles Rahmenprogramm
I_TAB_PHTREE = "RM: Portfoliohierarchie Baumtabelle
I_TAB_TREETXT = "RM: Portfoliohierarchie Knoteneigenschaften für Textfindung
* I_FLG_HOR_SPLITTING = ' ' "Horizontale Unterteilung des Bildschirms ('X')
* I_VARIANT = "Anzeigevariante (externe Verwendung)
* I_ANTYPE = "RM: Auswertungstyp (intern für Programmgenerierung)
* I_DISPLAY_CONTROL = "

CHANGING
C_DOCKING_CONTAINER = "Docking Container
C_PHTREE = "PH Tree

TABLES
* I_TAB_FIELDCAT_PHTREE = "Feldkatalog für ListViewerControl
I_TAB_TREE_DATA = "ALV-Anzeigestruktur der Sensitivitäten (PH-Sicht)

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for RM_SVA_PHTREE_INIT

I_DYNNR - ABAP-Programm, Nummer des aktuellen Dynpros

Data type: SY-DYNNR
Optional: No
Call by Reference: Yes

I_REPID - ABAP-Programm, aktuelles Rahmenprogramm

Data type: SY-REPID
Optional: No
Call by Reference: Yes

I_TAB_PHTREE - RM: Portfoliohierarchie Baumtabelle

Data type: RMPHTREE_T
Optional: No
Call by Reference: Yes

I_TAB_TREETXT - RM: Portfoliohierarchie Knoteneigenschaften für Textfindung

Data type: RMPHTEXT_T
Optional: No
Call by Reference: Yes

I_FLG_HOR_SPLITTING - Horizontale Unterteilung des Bildschirms ('X')

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VARIANT - Anzeigevariante (externe Verwendung)

Data type: DISVARIANT
Optional: Yes
Call by Reference: Yes

I_ANTYPE - RM: Auswertungstyp (intern für Programmgenerierung)

Data type: JBRANTYPE-ANTYPE
Optional: Yes
Call by Reference: Yes

I_DISPLAY_CONTROL -

Data type: RMLV_DISPLAY_CONTROL
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for RM_SVA_PHTREE_INIT

C_DOCKING_CONTAINER - Docking Container

Data type: CL_GUI_DOCKING_CONTAINER
Optional: No
Call by Reference: Yes

C_PHTREE - PH Tree

Data type: CL_RM_GUI_PH
Optional: No
Call by Reference: Yes

TABLES Parameters details for RM_SVA_PHTREE_INIT

I_TAB_FIELDCAT_PHTREE - Feldkatalog für ListViewerControl

Data type: LVC_T_FCAT
Optional: Yes
Call by Reference: Yes

I_TAB_TREE_DATA - ALV-Anzeigestruktur der Sensitivitäten (PH-Sicht)

Data type: AIS_SENS_PH
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RM_SVA_PHTREE_INIT 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_error  TYPE STRING, "   
lv_i_dynnr  TYPE SY-DYNNR, "   
lv_c_docking_container  TYPE CL_GUI_DOCKING_CONTAINER, "   
lt_i_tab_fieldcat_phtree  TYPE STANDARD TABLE OF LVC_T_FCAT, "   
lv_i_repid  TYPE SY-REPID, "   
lv_c_phtree  TYPE CL_RM_GUI_PH, "   
lt_i_tab_tree_data  TYPE STANDARD TABLE OF AIS_SENS_PH, "   
lv_i_tab_phtree  TYPE RMPHTREE_T, "   
lv_i_tab_treetxt  TYPE RMPHTEXT_T, "   
lv_i_flg_hor_splitting  TYPE C, "   ' '
lv_i_variant  TYPE DISVARIANT, "   
lv_i_antype  TYPE JBRANTYPE-ANTYPE, "   
lv_i_display_control  TYPE RMLV_DISPLAY_CONTROL. "   

  CALL FUNCTION 'RM_SVA_PHTREE_INIT'  "RM: Tree zur Anzeige der PH initialisieren
    EXPORTING
         I_DYNNR = lv_i_dynnr
         I_REPID = lv_i_repid
         I_TAB_PHTREE = lv_i_tab_phtree
         I_TAB_TREETXT = lv_i_tab_treetxt
         I_FLG_HOR_SPLITTING = lv_i_flg_hor_splitting
         I_VARIANT = lv_i_variant
         I_ANTYPE = lv_i_antype
         I_DISPLAY_CONTROL = lv_i_display_control
    CHANGING
         C_DOCKING_CONTAINER = lv_c_docking_container
         C_PHTREE = lv_c_phtree
    TABLES
         I_TAB_FIELDCAT_PHTREE = lt_i_tab_fieldcat_phtree
         I_TAB_TREE_DATA = lt_i_tab_tree_data
    EXCEPTIONS
        ERROR = 1
. " RM_SVA_PHTREE_INIT




ABAP code using 7.40 inline data declarations to call FM RM_SVA_PHTREE_INIT

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 DYNNR FROM SY INTO @DATA(ld_i_dynnr).
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_repid).
 
 
 
 
 
DATA(ld_i_flg_hor_splitting) = ' '.
 
 
"SELECT single ANTYPE FROM JBRANTYPE INTO @DATA(ld_i_antype).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!