SAP RSD_CHA_GET_VALUES Function Module for Read Characteristic Values, Attribute Values, and Texts









RSD_CHA_GET_VALUES is a standard rsd cha get values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Characteristic Values, Attribute Values, and Texts 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 get values FM, simply by entering the name RSD_CHA_GET_VALUES into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSDM_F4
Program Name: SAPLRSDM_F4
Main Program: SAPLRSDM_F4
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSD_CHA_GET_VALUES 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_GET_VALUES'"Read Characteristic Values, Attribute Values, and Texts
EXPORTING
* I_INFOCUBE = "
* I_READ_SID = "Boolean
* I_READ_TEXT = RS_C_TRUE "Boolean
* I_MOSTRECENT = RS_C_FALSE "Boolean
* I_TSX_SELDR = "SelDR
* I_WITH_AUTH = RS_C_FALSE "Authorizations
* I_S_SORTING = "Sorting with F4
* I_ALL_ATTRIVL = RS_C_FALSE "Also Initial Attribute Values
* I_F4MODE = "F4 Mode
* I_ONLY_CHAVL_INTNC = RS_C_FALSE "Do Not Fill T_VALUE in E_TX_RETURN (See Long Text)
I_CHANM = "
* I_DATE = SY-DATUM "
* I_LANGU = SY-LANGU "
* I_FORMAT = RSR_C_FORMAT-EXTERN "Internal 'I' or External 'E'
* I_MAX_ROWS = 0 "0 = Read All
* I_READATR = RSDM_C_READATR-NO "
* I_T_REQ_ATR = "
* I_T_SELOPT = "Selection Options for Selector

IMPORTING
E_TX_RETURN = "

EXCEPTIONS
ILLEGAL_INFOCUBE = 1 ILLEGAL_INFOOBJECT = 2 X_MESSAGE = 3 NO_VALUES_AVAILABLE = 4 ILLEGAL_INPUT = 5
.



IMPORTING Parameters details for RSD_CHA_GET_VALUES

I_INFOCUBE -

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

I_READ_SID - Boolean

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

I_READ_TEXT - Boolean

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: Yes

I_MOSTRECENT - Boolean

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_TSX_SELDR - SelDR

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

I_WITH_AUTH - Authorizations

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_S_SORTING - Sorting with F4

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

I_ALL_ATTRIVL - Also Initial Attribute Values

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_F4MODE - F4 Mode

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

I_ONLY_CHAVL_INTNC - Do Not Fill T_VALUE in E_TX_RETURN (See Long Text)

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

I_CHANM -

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

I_DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_LANGU -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

I_FORMAT - Internal 'I' or External 'E'

Data type: RSR_FORMAT
Default: RSR_C_FORMAT-EXTERN
Optional: Yes
Call by Reference: Yes

I_MAX_ROWS - 0 = Read All

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

I_READATR -

Data type: RSDM_READATR
Default: RSDM_C_READATR-NO
Optional: Yes
Call by Reference: Yes

I_T_REQ_ATR -

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

I_T_SELOPT - Selection Options for Selector

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

EXPORTING Parameters details for RSD_CHA_GET_VALUES

E_TX_RETURN -

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

EXCEPTIONS details

ILLEGAL_INFOCUBE -

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

ILLEGAL_INFOOBJECT -

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

X_MESSAGE -

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

NO_VALUES_AVAILABLE -

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

ILLEGAL_INPUT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSD_CHA_GET_VALUES 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_infocube  TYPE RSD_INFOCUBE, "   
lv_e_tx_return  TYPE RSDM_TX_SHLPRETURN, "   
lv_illegal_infocube  TYPE RSDM_TX_SHLPRETURN, "   
lv_i_read_sid  TYPE RS_BOOL, "   
lv_i_read_text  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_mostrecent  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_tsx_seldr  TYPE RSDD_TSX_SELDR, "   
lv_i_with_auth  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_s_sorting  TYPE RSDM5_SORTING, "   
lv_i_all_attrivl  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_f4mode  TYPE RSDM_F4_MODE, "   
lv_i_only_chavl_intnc  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_chanm  TYPE RSD_CHANM, "   
lv_illegal_infoobject  TYPE RSD_CHANM, "   
lv_i_date  TYPE SY-DATUM, "   SY-DATUM
lv_x_message  TYPE SY, "   
lv_i_langu  TYPE SY-LANGU, "   SY-LANGU
lv_no_values_available  TYPE SY, "   
lv_i_format  TYPE RSR_FORMAT, "   RSR_C_FORMAT-EXTERN
lv_illegal_input  TYPE RSR_FORMAT, "   
lv_i_max_rows  TYPE I, "   0
lv_i_readatr  TYPE RSDM_READATR, "   RSDM_C_READATR-NO
lv_i_t_req_atr  TYPE RSDM_T_REQ_ATR, "   
lv_i_t_selopt  TYPE RSDM_T_SHLPSELOPT. "   

  CALL FUNCTION 'RSD_CHA_GET_VALUES'  "Read Characteristic Values, Attribute Values, and Texts
    EXPORTING
         I_INFOCUBE = lv_i_infocube
         I_READ_SID = lv_i_read_sid
         I_READ_TEXT = lv_i_read_text
         I_MOSTRECENT = lv_i_mostrecent
         I_TSX_SELDR = lv_i_tsx_seldr
         I_WITH_AUTH = lv_i_with_auth
         I_S_SORTING = lv_i_s_sorting
         I_ALL_ATTRIVL = lv_i_all_attrivl
         I_F4MODE = lv_i_f4mode
         I_ONLY_CHAVL_INTNC = lv_i_only_chavl_intnc
         I_CHANM = lv_i_chanm
         I_DATE = lv_i_date
         I_LANGU = lv_i_langu
         I_FORMAT = lv_i_format
         I_MAX_ROWS = lv_i_max_rows
         I_READATR = lv_i_readatr
         I_T_REQ_ATR = lv_i_t_req_atr
         I_T_SELOPT = lv_i_t_selopt
    IMPORTING
         E_TX_RETURN = lv_e_tx_return
    EXCEPTIONS
        ILLEGAL_INFOCUBE = 1
        ILLEGAL_INFOOBJECT = 2
        X_MESSAGE = 3
        NO_VALUES_AVAILABLE = 4
        ILLEGAL_INPUT = 5
. " RSD_CHA_GET_VALUES




ABAP code using 7.40 inline data declarations to call FM RSD_CHA_GET_VALUES

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_read_text) = RS_C_TRUE.
 
DATA(ld_i_mostrecent) = RS_C_FALSE.
 
 
DATA(ld_i_with_auth) = RS_C_FALSE.
 
 
DATA(ld_i_all_attrivl) = RS_C_FALSE.
 
 
DATA(ld_i_only_chavl_intnc) = RS_C_FALSE.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = SY-DATUM.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu).
DATA(ld_i_langu) = SY-LANGU.
 
 
DATA(ld_i_format) = RSR_C_FORMAT-EXTERN.
 
 
 
DATA(ld_i_readatr) = RSDM_C_READATR-NO.
 
 
 


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!