SAP FM_DC_GET_ACTIVE_DIMENSIONS Function Module for
FM_DC_GET_ACTIVE_DIMENSIONS is a standard fm dc get active dimensions 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 fm dc get active dimensions FM, simply by entering the name FM_DC_GET_ACTIVE_DIMENSIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMDC
Program Name: SAPLFMDC
Main Program: SAPLFMDC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function FM_DC_GET_ACTIVE_DIMENSIONS 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 'FM_DC_GET_ACTIVE_DIMENSIONS'".
EXPORTING
* I_COMPANY_CODE = "Company Code
* I_FM_AREA = "Financial Management Area
IMPORTING
E_GRANT_ACTIVE = "Activate Grant
E_FUNDS_CTR_START_HR = "FM: Valid-From Date
E_FUNDS_CTR_STOP_HR = "Assignable to Account in HR Until
E_CMMT_ITEM_ACTIVE = "Activate Commitment Item
E_CMMT_ITEM_START_HR = "FM: Valid-From Date
E_FM_ACTIVE = "
E_FM_AREA = "Financial Management Area
E_BUD_PER_ACTIVE = "
E_BUD_PER_START_HR = "
E_GRANT_START_HR = "Grant Available in HR From
E_FUND_ACTIVE = "Activate Fund
E_FUND_START_HR = "
E_FUNCTION_ACTIVE = "Activate Functional Area
E_FUNCTION_START_HR = "
E_MEASURE_ACTIVE = "
E_MEASURE_VISIBLE = "Funded Program Visible
E_FUNDS_CTR_ACTIVE = "Activate Funds Center
EXCEPTIONS
ERROR_OCCURED = 1 INPUT_ERROR = 2 NO_FM_AREA_ASSIGNED = 3
IMPORTING Parameters details for FM_DC_GET_ACTIVE_DIMENSIONS
I_COMPANY_CODE - Company Code
Data type: T001-BUKRSOptional: Yes
Call by Reference: Yes
I_FM_AREA - Financial Management Area
Data type: FM01-FIKRSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FM_DC_GET_ACTIVE_DIMENSIONS
E_GRANT_ACTIVE - Activate Grant
Data type: GM_GRANT_ACTIVEOptional: No
Call by Reference: Yes
E_FUNDS_CTR_START_HR - FM: Valid-From Date
Data type: FM_FUNDS_CTR_START_HROptional: No
Call by Reference: Yes
E_FUNDS_CTR_STOP_HR - Assignable to Account in HR Until
Data type: FM_FUND_CNTR_STOP_HROptional: No
Call by Reference: Yes
E_CMMT_ITEM_ACTIVE - Activate Commitment Item
Data type: FM_CMMT_ITEM_ACTIVEOptional: No
Call by Reference: Yes
E_CMMT_ITEM_START_HR - FM: Valid-From Date
Data type: FM_CMMT_ITEM_START_HROptional: No
Call by Reference: Yes
E_FM_ACTIVE -
Data type: FMISPS-PS_ACTIVEOptional: No
Call by Reference: Yes
E_FM_AREA - Financial Management Area
Data type: FM01-FIKRSOptional: No
Call by Reference: Yes
E_BUD_PER_ACTIVE -
Data type: FM_BUD_PER_ACTIVEOptional: No
Call by Reference: Yes
E_BUD_PER_START_HR -
Data type: FM_BUD_PER_START_HROptional: No
Call by Reference: Yes
E_GRANT_START_HR - Grant Available in HR From
Data type: GM_GRANT_START_HROptional: No
Call by Reference: Yes
E_FUND_ACTIVE - Activate Fund
Data type: FM_FUND_ACTIVEOptional: No
Call by Reference: Yes
E_FUND_START_HR -
Data type: FM_FUND_START_HROptional: No
Call by Reference: Yes
E_FUNCTION_ACTIVE - Activate Functional Area
Data type: FM_FUNCTION_ACTIVEOptional: No
Call by Reference: Yes
E_FUNCTION_START_HR -
Data type: FM_FUNCTION_START_HROptional: No
Call by Reference: Yes
E_MEASURE_ACTIVE -
Data type: FM_MEASURE_ACTIVEOptional: No
Call by Reference: Yes
E_MEASURE_VISIBLE - Funded Program Visible
Data type: FM_MEASURE_VISIBLEOptional: No
Call by Reference: Yes
E_FUNDS_CTR_ACTIVE - Activate Funds Center
Data type: FM_FUNDS_CTR_ACTIVEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: Yes
INPUT_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_FM_AREA_ASSIGNED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_DC_GET_ACTIVE_DIMENSIONS 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_occured | TYPE STRING, " | |||
lv_e_grant_active | TYPE GM_GRANT_ACTIVE, " | |||
lv_i_company_code | TYPE T001-BUKRS, " | |||
lv_e_funds_ctr_start_hr | TYPE FM_FUNDS_CTR_START_HR, " | |||
lv_e_funds_ctr_stop_hr | TYPE FM_FUND_CNTR_STOP_HR, " | |||
lv_e_cmmt_item_active | TYPE FM_CMMT_ITEM_ACTIVE, " | |||
lv_e_cmmt_item_start_hr | TYPE FM_CMMT_ITEM_START_HR, " | |||
lv_e_fm_active | TYPE FMISPS-PS_ACTIVE, " | |||
lv_e_fm_area | TYPE FM01-FIKRS, " | |||
lv_e_bud_per_active | TYPE FM_BUD_PER_ACTIVE, " | |||
lv_e_bud_per_start_hr | TYPE FM_BUD_PER_START_HR, " | |||
lv_i_fm_area | TYPE FM01-FIKRS, " | |||
lv_input_error | TYPE FM01, " | |||
lv_e_grant_start_hr | TYPE GM_GRANT_START_HR, " | |||
lv_e_fund_active | TYPE FM_FUND_ACTIVE, " | |||
lv_no_fm_area_assigned | TYPE FM_FUND_ACTIVE, " | |||
lv_e_fund_start_hr | TYPE FM_FUND_START_HR, " | |||
lv_e_function_active | TYPE FM_FUNCTION_ACTIVE, " | |||
lv_e_function_start_hr | TYPE FM_FUNCTION_START_HR, " | |||
lv_e_measure_active | TYPE FM_MEASURE_ACTIVE, " | |||
lv_e_measure_visible | TYPE FM_MEASURE_VISIBLE, " | |||
lv_e_funds_ctr_active | TYPE FM_FUNDS_CTR_ACTIVE. " |
  CALL FUNCTION 'FM_DC_GET_ACTIVE_DIMENSIONS' " |
EXPORTING | ||
I_COMPANY_CODE | = lv_i_company_code | |
I_FM_AREA | = lv_i_fm_area | |
IMPORTING | ||
E_GRANT_ACTIVE | = lv_e_grant_active | |
E_FUNDS_CTR_START_HR | = lv_e_funds_ctr_start_hr | |
E_FUNDS_CTR_STOP_HR | = lv_e_funds_ctr_stop_hr | |
E_CMMT_ITEM_ACTIVE | = lv_e_cmmt_item_active | |
E_CMMT_ITEM_START_HR | = lv_e_cmmt_item_start_hr | |
E_FM_ACTIVE | = lv_e_fm_active | |
E_FM_AREA | = lv_e_fm_area | |
E_BUD_PER_ACTIVE | = lv_e_bud_per_active | |
E_BUD_PER_START_HR | = lv_e_bud_per_start_hr | |
E_GRANT_START_HR | = lv_e_grant_start_hr | |
E_FUND_ACTIVE | = lv_e_fund_active | |
E_FUND_START_HR | = lv_e_fund_start_hr | |
E_FUNCTION_ACTIVE | = lv_e_function_active | |
E_FUNCTION_START_HR | = lv_e_function_start_hr | |
E_MEASURE_ACTIVE | = lv_e_measure_active | |
E_MEASURE_VISIBLE | = lv_e_measure_visible | |
E_FUNDS_CTR_ACTIVE | = lv_e_funds_ctr_active | |
EXCEPTIONS | ||
ERROR_OCCURED = 1 | ||
INPUT_ERROR = 2 | ||
NO_FM_AREA_ASSIGNED = 3 | ||
. " FM_DC_GET_ACTIVE_DIMENSIONS |
ABAP code using 7.40 inline data declarations to call FM FM_DC_GET_ACTIVE_DIMENSIONS
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 BUKRS FROM T001 INTO @DATA(ld_i_company_code). | ||||
"SELECT single PS_ACTIVE FROM FMISPS INTO @DATA(ld_e_fm_active). | ||||
"SELECT single FIKRS FROM FM01 INTO @DATA(ld_e_fm_area). | ||||
"SELECT single FIKRS FROM FM01 INTO @DATA(ld_i_fm_area). | ||||
Search for further information about these or an SAP related objects