SAP RSD_CHA_FILTER_GET Function Module for Get Value List for Dynamic Filter Selection
RSD_CHA_FILTER_GET is a standard rsd cha filter get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Value List for Dynamic Filter Selection 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 rsd cha filter get FM, simply by entering the name RSD_CHA_FILTER_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDM_F4
Program Name: SAPLRSDM_F4
Main Program: SAPLRSDM_F4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSD_CHA_FILTER_GET 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 'RSD_CHA_FILTER_GET'"Get Value List for Dynamic Filter Selection.
EXPORTING
* I_HANDLE = "Query Handle
* I_T_REQ_ATR = "
* I_R_REQUEST = "Alternative to Handle
* I_INFOCUBE = "Alternative to Handle and Request
I_CHANM = "Characteristic
* I_MAX_ROWS = 0 "0 = All Values
* I_T_SELOPT = "Selection of External (External Format)
* I_F4_MODE = RSDM_C_F4_DIM "(Q)uery Relational Browse, (D)imension, (M)aster Data
* I_WITH_AUTH = RS_C_TRUE "With Authorization Check
* I_DATE = SY-DATUM "Date and Time, Current (Application Server) Date
IMPORTING
E_T_CHAVT = "List of Values
E_TX_RETURN = "
E_PRSNT1 = "Single figure display
E_S_SELTYPES = "Allowed Selection with F4
E_T_HIERKEY = "Table of Hierarchies
EXCEPTIONS
UNKNOWN_CHANM = 1 ILLEGAL_INPUT = 2 INVALID_HANDLE = 3 X_MESSAGE = 4
IMPORTING Parameters details for RSD_CHA_FILTER_GET
I_HANDLE - Query Handle
Data type: RRX1_HANDLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T_REQ_ATR -
Data type: RSDM_T_REQ_ATROptional: Yes
Call by Reference: Yes
I_R_REQUEST - Alternative to Handle
Data type: CL_RSR_REQUESTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_INFOCUBE - Alternative to Handle and Request
Data type: RSD_INFOCUBEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHANM - Characteristic
Data type: RSD_CHANMOptional: No
Call by Reference: Yes
I_MAX_ROWS - 0 = All Values
Data type: IOptional: Yes
Call by Reference: Yes
I_T_SELOPT - Selection of External (External Format)
Data type: RSDM_T_SHLPSELOPTOptional: Yes
Call by Reference: Yes
I_F4_MODE - (Q)uery Relational Browse, (D)imension, (M)aster Data
Data type: RSDM_F4_MODEDefault: RSDM_C_F4_DIM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITH_AUTH - With Authorization Check
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_DATE - Date and Time, Current (Application Server) Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSD_CHA_FILTER_GET
E_T_CHAVT - List of Values
Data type: RSDM_T_CHAVTOptional: No
Call by Reference: Yes
E_TX_RETURN -
Data type: RSDM_TX_SHLPRETURNOptional: No
Call by Reference: Yes
E_PRSNT1 - Single figure display
Data type: RSDM5_PRSNT1Optional: No
Call by Reference: Yes
E_S_SELTYPES - Allowed Selection with F4
Data type: RSDM5_SELTYPESOptional: No
Call by Reference: Yes
E_T_HIERKEY - Table of Hierarchies
Data type: RSDM5_T_HIERKEYOptional: No
Call by Reference: Yes
EXCEPTIONS details
UNKNOWN_CHANM - Unknown Characteristic
Data type:Optional: No
Call by Reference: Yes
ILLEGAL_INPUT - Incorrect entry
Data type:Optional: No
Call by Reference: Yes
INVALID_HANDLE - Invalid handle
Data type:Optional: No
Call by Reference: Yes
X_MESSAGE - X Message
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSD_CHA_FILTER_GET 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_i_handle | TYPE RRX1_HANDLE, " | |||
| lv_e_t_chavt | TYPE RSDM_T_CHAVT, " | |||
| lv_unknown_chanm | TYPE RSDM_T_CHAVT, " | |||
| lv_i_t_req_atr | TYPE RSDM_T_REQ_ATR, " | |||
| lv_e_tx_return | TYPE RSDM_TX_SHLPRETURN, " | |||
| lv_i_r_request | TYPE CL_RSR_REQUEST, " | |||
| lv_illegal_input | TYPE CL_RSR_REQUEST, " | |||
| lv_e_prsnt1 | TYPE RSDM5_PRSNT1, " | |||
| lv_i_infocube | TYPE RSD_INFOCUBE, " | |||
| lv_invalid_handle | TYPE RSD_INFOCUBE, " | |||
| lv_i_chanm | TYPE RSD_CHANM, " | |||
| lv_x_message | TYPE RSD_CHANM, " | |||
| lv_e_s_seltypes | TYPE RSDM5_SELTYPES, " | |||
| lv_i_max_rows | TYPE I, " 0 | |||
| lv_e_t_hierkey | TYPE RSDM5_T_HIERKEY, " | |||
| lv_i_t_selopt | TYPE RSDM_T_SHLPSELOPT, " | |||
| lv_i_f4_mode | TYPE RSDM_F4_MODE, " RSDM_C_F4_DIM | |||
| lv_i_with_auth | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_date | TYPE SY-DATUM. " SY-DATUM |
|   CALL FUNCTION 'RSD_CHA_FILTER_GET' "Get Value List for Dynamic Filter Selection |
| EXPORTING | ||
| I_HANDLE | = lv_i_handle | |
| I_T_REQ_ATR | = lv_i_t_req_atr | |
| I_R_REQUEST | = lv_i_r_request | |
| I_INFOCUBE | = lv_i_infocube | |
| I_CHANM | = lv_i_chanm | |
| I_MAX_ROWS | = lv_i_max_rows | |
| I_T_SELOPT | = lv_i_t_selopt | |
| I_F4_MODE | = lv_i_f4_mode | |
| I_WITH_AUTH | = lv_i_with_auth | |
| I_DATE | = lv_i_date | |
| IMPORTING | ||
| E_T_CHAVT | = lv_e_t_chavt | |
| E_TX_RETURN | = lv_e_tx_return | |
| E_PRSNT1 | = lv_e_prsnt1 | |
| E_S_SELTYPES | = lv_e_s_seltypes | |
| E_T_HIERKEY | = lv_e_t_hierkey | |
| EXCEPTIONS | ||
| UNKNOWN_CHANM = 1 | ||
| ILLEGAL_INPUT = 2 | ||
| INVALID_HANDLE = 3 | ||
| X_MESSAGE = 4 | ||
| . " RSD_CHA_FILTER_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSD_CHA_FILTER_GET
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.| DATA(ld_i_f4_mode) | = RSDM_C_F4_DIM. | |||
| DATA(ld_i_with_auth) | = RS_C_TRUE. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
| DATA(ld_i_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects