SAP FTI_HIERARCHY_APPL_INIT Function Module for Treasury: Hierarchies
FTI_HIERARCHY_APPL_INIT is a standard fti hierarchy appl 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 Treasury: Hierarchies 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 fti hierarchy appl init FM, simply by entering the name FTI_HIERARCHY_APPL_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTIH
Program Name: SAPLFTIH
Main Program: SAPLFTIH
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTI_HIERARCHY_APPL_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 'FTI_HIERARCHY_APPL_INIT'"Treasury: Hierarchies.
EXPORTING
I_RSTHVKEY = "
* I_SEL = ' ' "
* REQUESTER = ' ' "
* SELLEVEL = ' ' "
* SELMODE = ' ' "
* COMPOUND = ' ' "
* WITH_TEXTS = ' ' "
APPLCLASS = "Application class for drilldown reporting
HCLASS = "BRST Class of hierarchies (Sets, etc.)
TABLES
I_RSTHIE = "
I_RSTINT = "
I_RSTTYP = "
I_RSTTXT = "
I_RSTADD = "
IMPORTING Parameters details for FTI_HIERARCHY_APPL_INIT
I_RSTHVKEY -
Data type: RSTHVKEYOptional: No
Call by Reference: No ( called with pass by value option)
I_SEL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REQUESTER -
Data type: RSTHDIVERS-REQUESTERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELLEVEL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELMODE -
Data type: RSTHDIVERS-SELMODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPOUND -
Data type: RSTHDIVERS-COMPOUNDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_TEXTS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
APPLCLASS - Application class for drilldown reporting
Data type: CFAPPLCLASOptional: No
Call by Reference: No ( called with pass by value option)
HCLASS - BRST Class of hierarchies (Sets, etc.)
Data type: RSTHCLASSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FTI_HIERARCHY_APPL_INIT
I_RSTHIE -
Data type: RSTHIEOptional: No
Call by Reference: No ( called with pass by value option)
I_RSTINT -
Data type: RSTINTOptional: No
Call by Reference: No ( called with pass by value option)
I_RSTTYP -
Data type: RSTTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_RSTTXT -
Data type: RSTTXTOptional: No
Call by Reference: No ( called with pass by value option)
I_RSTADD -
Data type: RSTADDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FTI_HIERARCHY_APPL_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: | ||||
| lt_i_rsthie | TYPE STANDARD TABLE OF RSTHIE, " | |||
| lv_i_rsthvkey | TYPE RSTHVKEY, " | |||
| lv_i_sel | TYPE RSTHVKEY, " SPACE | |||
| lt_i_rstint | TYPE STANDARD TABLE OF RSTINT, " | |||
| lt_i_rsttyp | TYPE STANDARD TABLE OF RSTTYP, " | |||
| lv_requester | TYPE RSTHDIVERS-REQUESTER, " SPACE | |||
| lt_i_rsttxt | TYPE STANDARD TABLE OF RSTTXT, " | |||
| lv_sellevel | TYPE RSTTXT, " SPACE | |||
| lv_selmode | TYPE RSTHDIVERS-SELMODE, " SPACE | |||
| lt_i_rstadd | TYPE STANDARD TABLE OF RSTADD, " | |||
| lv_compound | TYPE RSTHDIVERS-COMPOUND, " SPACE | |||
| lv_with_texts | TYPE RSTHDIVERS, " SPACE | |||
| lv_applclass | TYPE CFAPPLCLAS, " | |||
| lv_hclass | TYPE RSTHCLASS. " |
|   CALL FUNCTION 'FTI_HIERARCHY_APPL_INIT' "Treasury: Hierarchies |
| EXPORTING | ||
| I_RSTHVKEY | = lv_i_rsthvkey | |
| I_SEL | = lv_i_sel | |
| REQUESTER | = lv_requester | |
| SELLEVEL | = lv_sellevel | |
| SELMODE | = lv_selmode | |
| COMPOUND | = lv_compound | |
| WITH_TEXTS | = lv_with_texts | |
| APPLCLASS | = lv_applclass | |
| HCLASS | = lv_hclass | |
| TABLES | ||
| I_RSTHIE | = lt_i_rsthie | |
| I_RSTINT | = lt_i_rstint | |
| I_RSTTYP | = lt_i_rsttyp | |
| I_RSTTXT | = lt_i_rsttxt | |
| I_RSTADD | = lt_i_rstadd | |
| . " FTI_HIERARCHY_APPL_INIT | ||
ABAP code using 7.40 inline data declarations to call FM FTI_HIERARCHY_APPL_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.| DATA(ld_i_sel) | = ' '. | |||
| "SELECT single REQUESTER FROM RSTHDIVERS INTO @DATA(ld_requester). | ||||
| DATA(ld_requester) | = ' '. | |||
| DATA(ld_sellevel) | = ' '. | |||
| "SELECT single SELMODE FROM RSTHDIVERS INTO @DATA(ld_selmode). | ||||
| DATA(ld_selmode) | = ' '. | |||
| "SELECT single COMPOUND FROM RSTHDIVERS INTO @DATA(ld_compound). | ||||
| DATA(ld_compound) | = ' '. | |||
| DATA(ld_with_texts) | = ' '. | |||
Search for further information about these or an SAP related objects