SAP FMCY_SET_GROUPING_SETTING Function Module for Set the grouping setting
FMCY_SET_GROUPING_SETTING is a standard fmcy set grouping setting SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set the grouping setting 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 fmcy set grouping setting FM, simply by entering the name FMCY_SET_GROUPING_SETTING into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCY_MASS_PROCESS
Program Name: SAPLFMCY_MASS_PROCESS
Main Program: SAPLFMCY_MASS_PROCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCY_SET_GROUPING_SETTING 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 'FMCY_SET_GROUPING_SETTING'"Set the grouping setting.
EXPORTING
I_FMAREA = "Financial Management Area
* I_FLG_HIE_ACT = "Checkbox
* I_FUND_ROLE = "Role of FMAA Element in Hierarchy
* I_BUDGET_PD_ROLE = "Role of the FM AA Element in hierarchy
* I_FUNDSCTR_ROLE = "Role of FMAA Element in Hierarchy
* I_CMMTITEM_ROLE = "Role of FMAA Element in Hierarchy
* I_FUNCAREA_ROLE = "Role of FMAA Element in Hierarchy
* I_MEASURE_ROLE = "Role of FMAA Element in Hierarchy
* I_USERDIM_ROLE = "Role of the FM AA Element in hierarchy
IMPORTING
E_CANCEL = "General Flag
CHANGING
C_S_DIM_GROUP = "Checkbox
IMPORTING Parameters details for FMCY_SET_GROUPING_SETTING
I_FMAREA - Financial Management Area
Data type: FIKRSOptional: No
Call by Reference: Yes
I_FLG_HIE_ACT - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: Yes
I_FUND_ROLE - Role of FMAA Element in Hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_BUDGET_PD_ROLE - Role of the FM AA Element in hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_FUNDSCTR_ROLE - Role of FMAA Element in Hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_CMMTITEM_ROLE - Role of FMAA Element in Hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_FUNCAREA_ROLE - Role of FMAA Element in Hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_MEASURE_ROLE - Role of FMAA Element in Hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
I_USERDIM_ROLE - Role of the FM AA Element in hierarchy
Data type: FMHIE_HIE_ROLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMCY_SET_GROUPING_SETTING
E_CANCEL - General Flag
Data type: FLAGOptional: No
Call by Reference: Yes
CHANGING Parameters details for FMCY_SET_GROUPING_SETTING
C_S_DIM_GROUP - Checkbox
Data type: FMMP_S_DIMGROUPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMCY_SET_GROUPING_SETTING 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_cancel | TYPE FLAG, " | |||
| lv_i_fmarea | TYPE FIKRS, " | |||
| lv_c_s_dim_group | TYPE FMMP_S_DIMGROUP, " | |||
| lv_i_flg_hie_act | TYPE XFELD, " | |||
| lv_i_fund_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_budget_pd_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_fundsctr_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_cmmtitem_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_funcarea_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_measure_role | TYPE FMHIE_HIE_ROLE, " | |||
| lv_i_userdim_role | TYPE FMHIE_HIE_ROLE. " |
|   CALL FUNCTION 'FMCY_SET_GROUPING_SETTING' "Set the grouping setting |
| EXPORTING | ||
| I_FMAREA | = lv_i_fmarea | |
| I_FLG_HIE_ACT | = lv_i_flg_hie_act | |
| I_FUND_ROLE | = lv_i_fund_role | |
| I_BUDGET_PD_ROLE | = lv_i_budget_pd_role | |
| I_FUNDSCTR_ROLE | = lv_i_fundsctr_role | |
| I_CMMTITEM_ROLE | = lv_i_cmmtitem_role | |
| I_FUNCAREA_ROLE | = lv_i_funcarea_role | |
| I_MEASURE_ROLE | = lv_i_measure_role | |
| I_USERDIM_ROLE | = lv_i_userdim_role | |
| IMPORTING | ||
| E_CANCEL | = lv_e_cancel | |
| CHANGING | ||
| C_S_DIM_GROUP | = lv_c_s_dim_group | |
| . " FMCY_SET_GROUPING_SETTING | ||
ABAP code using 7.40 inline data declarations to call FM FMCY_SET_GROUPING_SETTING
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