SAP FC_COIMETH_HIERARCHY Function Module for









FC_COIMETH_HIERARCHY is a standard fc coimeth hierarchy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fc coimeth hierarchy FM, simply by entering the name FC_COIMETH_HIERARCHY into the relevant SAP transaction such as SE37 or SE38.

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



Function FC_COIMETH_HIERARCHY 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 'FC_COIMETH_HIERARCHY'"
EXPORTING
E_DIMEN = "Dimension
* E_METHOD_CHECK = "Flag: check if a method is assigned to every CU
* E_METHOD_TYPES = "Flag: determine method type
* E_MAINT = "Flag: Maintenance mode
* E_UNASSIGNED_METH = "
* E_PCC_CU_ASSIGNMENT = "
* E_CONGR = "Starting CG
* ET_CONGR = "Table for starting CG
E_RVERS = "Consolidation version
E_RYEAR = "Fiscal year
E_PERID = "Period
* E_HLEVL_MAX = "Number of steps to be broken down (0=all)
* E_ROLLUP_CU = "
* E_MOTHER_CHECK = "Flag: check if at least one parent CU per CG

IMPORTING
IT_CG_MAINT = "
IT_CG_PROP = "
IT_CU_PROP = "
IT_CU_MAINT = "
IT_CG_MHRY = "
IT_CU_MHRY = "
IT_CG_CG = "
IT_CG = "
IT_CU = "
IT_CH = "
IT_PROPN = "
.



IMPORTING Parameters details for FC_COIMETH_HIERARCHY

E_DIMEN - Dimension

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

E_METHOD_CHECK - Flag: check if a method is assigned to every CU

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

E_METHOD_TYPES - Flag: determine method type

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

E_MAINT - Flag: Maintenance mode

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

E_UNASSIGNED_METH -

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

E_PCC_CU_ASSIGNMENT -

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

E_CONGR - Starting CG

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

ET_CONGR - Table for starting CG

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

E_RVERS - Consolidation version

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

E_RYEAR - Fiscal year

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

E_PERID - Period

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

E_HLEVL_MAX - Number of steps to be broken down (0=all)

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

E_ROLLUP_CU -

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

E_MOTHER_CHECK - Flag: check if at least one parent CU per CG

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

EXPORTING Parameters details for FC_COIMETH_HIERARCHY

IT_CG_MAINT -

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

IT_CG_PROP -

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

IT_CU_PROP -

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

IT_CU_MAINT -

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

IT_CG_MHRY -

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

IT_CU_MHRY -

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

IT_CG_CG -

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

IT_CG -

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

IT_CU -

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

IT_CH -

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

IT_PROPN -

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

Copy and paste ABAP code example for FC_COIMETH_HIERARCHY 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_e_dimen  TYPE FC_DIMEN, "   
lv_it_cg_maint  TYPE FC06_T_CG_MAINT, "   
lv_it_cg_prop  TYPE TABLE, "   
lv_e_method_check  TYPE FC_FLG, "   
lv_it_cu_prop  TYPE TABLE, "   
lv_e_method_types  TYPE FC_FLG, "   
lv_e_maint  TYPE FC_FLG, "   
lv_e_unassigned_meth  TYPE FC_FLG, "   
lv_e_pcc_cu_assignment  TYPE FC_FLG, "   
lv_e_congr  TYPE FC_CONGR, "   
lv_it_cu_maint  TYPE FC06_T_CU_MAINT, "   
lv_et_congr  TYPE TABLE, "   
lv_it_cg_mhry  TYPE FC06_T_CG_MHRY, "   
lv_e_rvers  TYPE FC_RVERS, "   
lv_it_cu_mhry  TYPE FC06_T_CU_MHRY, "   
lv_e_ryear  TYPE FC_RYEAR, "   
lv_it_cg_cg  TYPE FC06_T_CG_CG_METH, "   
lv_it_cg  TYPE FC06_T_CG_METH, "   
lv_e_perid  TYPE FC_PERID, "   
lv_it_cu  TYPE FC06_T_CU_METH, "   
lv_e_hlevl_max  TYPE I, "   
lv_it_ch  TYPE FC06_T_CH_METH, "   
lv_e_rollup_cu  TYPE FC_FLG, "   
lv_it_propn  TYPE FC06_T_PROPN_METH, "   
lv_e_mother_check  TYPE FC_FLG. "   

  CALL FUNCTION 'FC_COIMETH_HIERARCHY'  "
    EXPORTING
         E_DIMEN = lv_e_dimen
         E_METHOD_CHECK = lv_e_method_check
         E_METHOD_TYPES = lv_e_method_types
         E_MAINT = lv_e_maint
         E_UNASSIGNED_METH = lv_e_unassigned_meth
         E_PCC_CU_ASSIGNMENT = lv_e_pcc_cu_assignment
         E_CONGR = lv_e_congr
         ET_CONGR = lv_et_congr
         E_RVERS = lv_e_rvers
         E_RYEAR = lv_e_ryear
         E_PERID = lv_e_perid
         E_HLEVL_MAX = lv_e_hlevl_max
         E_ROLLUP_CU = lv_e_rollup_cu
         E_MOTHER_CHECK = lv_e_mother_check
    IMPORTING
         IT_CG_MAINT = lv_it_cg_maint
         IT_CG_PROP = lv_it_cg_prop
         IT_CU_PROP = lv_it_cu_prop
         IT_CU_MAINT = lv_it_cu_maint
         IT_CG_MHRY = lv_it_cg_mhry
         IT_CU_MHRY = lv_it_cu_mhry
         IT_CG_CG = lv_it_cg_cg
         IT_CG = lv_it_cg
         IT_CU = lv_it_cu
         IT_CH = lv_it_ch
         IT_PROPN = lv_it_propn
. " FC_COIMETH_HIERARCHY




ABAP code using 7.40 inline data declarations to call FM FC_COIMETH_HIERARCHY

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!