SAP HRCA_GET_ACTIVE_DIMENSIONS Function Module for
HRCA_GET_ACTIVE_DIMENSIONS is a standard hrca 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 hrca get active dimensions FM, simply by entering the name HRCA_GET_ACTIVE_DIMENSIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHFM
Program Name: SAPLRHFM
Main Program: SAPLRHFM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRCA_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 'HRCA_GET_ACTIVE_DIMENSIONS'".
EXPORTING
I_COMPANY_CODE = "
IMPORTING
E_GRANT_ACTIVE = "
E_CMMT_ITEM_ACTIVE = "
E_CMMT_ITEM_START_HR = "
E_SGMNT_ACTIVE = "
E_SGMNT_START_HR = "
E_FM_ACTIVE = "
E_BUDGET_PERIOD_ACTIVE = "
E_BUDGET_PERIOD_START_HR = "
E_GRANT_START_HR = "
E_FUND_ACTIVE = "
E_FUND_START_HR = "
E_FUNCTION_ACTIVE = "
E_FUNCTION_START_HR = "
E_FUNDS_CTR_ACTIVE = "
E_FUNDS_CTR_START_HR = "
E_FUNDS_CTR_STOP_HR = "
TABLES
RETURN_TABLE = "
EXCEPTIONS
ERROR_OCCURED = 1
IMPORTING Parameters details for HRCA_GET_ACTIVE_DIMENSIONS
I_COMPANY_CODE -
Data type: HRCA_COMPANY-COMP_CODEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HRCA_GET_ACTIVE_DIMENSIONS
E_GRANT_ACTIVE -
Data type: GM_GRANT_ACTIVEOptional: No
Call by Reference: Yes
E_CMMT_ITEM_ACTIVE -
Data type: FM_CMMT_ITEM_ACTIVEOptional: No
Call by Reference: Yes
E_CMMT_ITEM_START_HR -
Data type: FM_CMMT_ITEM_START_HROptional: No
Call by Reference: Yes
E_SGMNT_ACTIVE -
Data type: FLAGOptional: No
Call by Reference: Yes
E_SGMNT_START_HR -
Data type: DATUMOptional: No
Call by Reference: Yes
E_FM_ACTIVE -
Data type: FLAGOptional: No
Call by Reference: Yes
E_BUDGET_PERIOD_ACTIVE -
Data type: FM_BUD_PER_ACTIVEOptional: No
Call by Reference: Yes
E_BUDGET_PERIOD_START_HR -
Data type: FM_BUD_PER_START_HROptional: No
Call by Reference: Yes
E_GRANT_START_HR -
Data type: GM_GRANT_START_HROptional: No
Call by Reference: Yes
E_FUND_ACTIVE -
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 -
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_FUNDS_CTR_ACTIVE -
Data type: FM_FUNDS_CTR_ACTIVEOptional: No
Call by Reference: Yes
E_FUNDS_CTR_START_HR -
Data type: FM_FUNDS_CTR_START_HROptional: No
Call by Reference: Yes
E_FUNDS_CTR_STOP_HR -
Data type: FM_FUND_CNTR_STOP_HROptional: No
Call by Reference: Yes
TABLES Parameters details for HRCA_GET_ACTIVE_DIMENSIONS
RETURN_TABLE -
Data type: BAPIRET2Optional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRCA_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: | ||||
| lt_return_table | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_error_occured | TYPE BAPIRET2, " | |||
| lv_e_grant_active | TYPE GM_GRANT_ACTIVE, " | |||
| lv_i_company_code | TYPE HRCA_COMPANY-COMP_CODE, " | |||
| lv_e_cmmt_item_active | TYPE FM_CMMT_ITEM_ACTIVE, " | |||
| lv_e_cmmt_item_start_hr | TYPE FM_CMMT_ITEM_START_HR, " | |||
| lv_e_sgmnt_active | TYPE FLAG, " | |||
| lv_e_sgmnt_start_hr | TYPE DATUM, " | |||
| lv_e_fm_active | TYPE FLAG, " | |||
| lv_e_budget_period_active | TYPE FM_BUD_PER_ACTIVE, " | |||
| lv_e_budget_period_start_hr | TYPE FM_BUD_PER_START_HR, " | |||
| lv_e_grant_start_hr | TYPE GM_GRANT_START_HR, " | |||
| lv_e_fund_active | 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_funds_ctr_active | TYPE FM_FUNDS_CTR_ACTIVE, " | |||
| lv_e_funds_ctr_start_hr | TYPE FM_FUNDS_CTR_START_HR, " | |||
| lv_e_funds_ctr_stop_hr | TYPE FM_FUND_CNTR_STOP_HR. " |
|   CALL FUNCTION 'HRCA_GET_ACTIVE_DIMENSIONS' " |
| EXPORTING | ||
| I_COMPANY_CODE | = lv_i_company_code | |
| IMPORTING | ||
| E_GRANT_ACTIVE | = lv_e_grant_active | |
| E_CMMT_ITEM_ACTIVE | = lv_e_cmmt_item_active | |
| E_CMMT_ITEM_START_HR | = lv_e_cmmt_item_start_hr | |
| E_SGMNT_ACTIVE | = lv_e_sgmnt_active | |
| E_SGMNT_START_HR | = lv_e_sgmnt_start_hr | |
| E_FM_ACTIVE | = lv_e_fm_active | |
| E_BUDGET_PERIOD_ACTIVE | = lv_e_budget_period_active | |
| E_BUDGET_PERIOD_START_HR | = lv_e_budget_period_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_FUNDS_CTR_ACTIVE | = lv_e_funds_ctr_active | |
| E_FUNDS_CTR_START_HR | = lv_e_funds_ctr_start_hr | |
| E_FUNDS_CTR_STOP_HR | = lv_e_funds_ctr_stop_hr | |
| TABLES | ||
| RETURN_TABLE | = lt_return_table | |
| EXCEPTIONS | ||
| ERROR_OCCURED = 1 | ||
| . " HRCA_GET_ACTIVE_DIMENSIONS | ||
ABAP code using 7.40 inline data declarations to call FM HRCA_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 COMP_CODE FROM HRCA_COMPANY INTO @DATA(ld_i_company_code). | ||||
Search for further information about these or an SAP related objects