SAP FMHIE_ADD_NODE_MANUALLY Function Module for Dialog box for manually adding a new node into the hierarchy









FMHIE_ADD_NODE_MANUALLY is a standard fmhie add node manually SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dialog box for manually adding a new node into the hierarchy 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 fmhie add node manually FM, simply by entering the name FMHIE_ADD_NODE_MANUALLY into the relevant SAP transaction such as SE37 or SE38.

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



Function FMHIE_ADD_NODE_MANUALLY 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 'FMHIE_ADD_NODE_MANUALLY'"Dialog box for manually adding a new node into the hierarchy
EXPORTING
IM_FM_AREA = "Financial Management Area
IM_FISCYEAR = "Fiscal Year
IM_BUDCAT = "Budget category
IM_BS = "Name of Budget Structure
* IM_HIE_ID = ' ' "Hierarchy ID
* IM_ADDRESS = "FM account assignment

IMPORTING
E_NODE_ADDRESS = "FM account assignment

EXCEPTIONS
CANCEL = 1 NO_CMMTITEM_SELECTED = 2 NO_FUNDSCTR_SELECTED = 3 NO_FUND_SELECTED = 4 NO_MEASURE_SELECTED = 5 NO_FUNCAREA_SELECTED = 6 NO_BUDGET_PD_SELECTED = 7 NO_USERDIM_SELECTED = 8 ERROR = 9
.



IMPORTING Parameters details for FMHIE_ADD_NODE_MANUALLY

IM_FM_AREA - Financial Management Area

Data type: FMHIEIDS-FM_AREA
Optional: No
Call by Reference: Yes

IM_FISCYEAR - Fiscal Year

Data type: FMHIEIDS-FISCYEAR
Optional: No
Call by Reference: Yes

IM_BUDCAT - Budget category

Data type: FMHIEIDS-BUDCAT
Optional: No
Call by Reference: Yes

IM_BS - Name of Budget Structure

Data type: FMHIEIDS-BS
Optional: No
Call by Reference: Yes

IM_HIE_ID - Hierarchy ID

Data type: FMHIEIDS-HIE_ID
Default: ' '
Optional: Yes
Call by Reference: Yes

IM_ADDRESS - FM account assignment

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

EXPORTING Parameters details for FMHIE_ADD_NODE_MANUALLY

E_NODE_ADDRESS - FM account assignment

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

EXCEPTIONS details

CANCEL - Cancel

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CMMTITEM_SELECTED - No commitment Item was selected

Data type:
Optional: No
Call by Reference: Yes

NO_FUNDSCTR_SELECTED - No funds center was selected

Data type:
Optional: No
Call by Reference: Yes

NO_FUND_SELECTED - No fund was selected

Data type:
Optional: No
Call by Reference: Yes

NO_MEASURE_SELECTED - No measure selected

Data type:
Optional: No
Call by Reference: Yes

NO_FUNCAREA_SELECTED - No functional area selected

Data type:
Optional: No
Call by Reference: Yes

NO_BUDGET_PD_SELECTED - No budget period selected

Data type:
Optional: No
Call by Reference: Yes

NO_USERDIM_SELECTED - No customer field selected

Data type:
Optional: No
Call by Reference: Yes

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMHIE_ADD_NODE_MANUALLY 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_cancel  TYPE STRING, "   
lv_im_fm_area  TYPE FMHIEIDS-FM_AREA, "   
lv_e_node_address  TYPE FMKU_S_DIMPART, "   
lv_im_fiscyear  TYPE FMHIEIDS-FISCYEAR, "   
lv_no_cmmtitem_selected  TYPE FMHIEIDS, "   
lv_im_budcat  TYPE FMHIEIDS-BUDCAT, "   
lv_no_fundsctr_selected  TYPE FMHIEIDS, "   
lv_im_bs  TYPE FMHIEIDS-BS, "   
lv_no_fund_selected  TYPE FMHIEIDS, "   
lv_im_hie_id  TYPE FMHIEIDS-HIE_ID, "   ' '
lv_no_measure_selected  TYPE FMHIEIDS, "   
lv_im_address  TYPE FMKU_S_DIMPART, "   
lv_no_funcarea_selected  TYPE FMKU_S_DIMPART, "   
lv_no_budget_pd_selected  TYPE FMKU_S_DIMPART, "   
lv_no_userdim_selected  TYPE FMKU_S_DIMPART, "   
lv_error  TYPE FMKU_S_DIMPART. "   

  CALL FUNCTION 'FMHIE_ADD_NODE_MANUALLY'  "Dialog box for manually adding a new node into the hierarchy
    EXPORTING
         IM_FM_AREA = lv_im_fm_area
         IM_FISCYEAR = lv_im_fiscyear
         IM_BUDCAT = lv_im_budcat
         IM_BS = lv_im_bs
         IM_HIE_ID = lv_im_hie_id
         IM_ADDRESS = lv_im_address
    IMPORTING
         E_NODE_ADDRESS = lv_e_node_address
    EXCEPTIONS
        CANCEL = 1
        NO_CMMTITEM_SELECTED = 2
        NO_FUNDSCTR_SELECTED = 3
        NO_FUND_SELECTED = 4
        NO_MEASURE_SELECTED = 5
        NO_FUNCAREA_SELECTED = 6
        NO_BUDGET_PD_SELECTED = 7
        NO_USERDIM_SELECTED = 8
        ERROR = 9
. " FMHIE_ADD_NODE_MANUALLY




ABAP code using 7.40 inline data declarations to call FM FMHIE_ADD_NODE_MANUALLY

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 FM_AREA FROM FMHIEIDS INTO @DATA(ld_im_fm_area).
 
 
"SELECT single FISCYEAR FROM FMHIEIDS INTO @DATA(ld_im_fiscyear).
 
 
"SELECT single BUDCAT FROM FMHIEIDS INTO @DATA(ld_im_budcat).
 
 
"SELECT single BS FROM FMHIEIDS INTO @DATA(ld_im_bs).
 
 
"SELECT single HIE_ID FROM FMHIEIDS INTO @DATA(ld_im_hie_id).
DATA(ld_im_hie_id) = ' '.
 
 
 
 
 
 
 


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!