CONVERT_VALUE_FOR_ELEMENT SAP Method Converts ext to int and vice versa for known BW Element
Below is documentation, parameters and attributes of ABAP Method CONVERT_VALUE_FOR_ELEMENT within SAP class CL_RSEM_MODEL_OBJECT. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_RSEM_MODEL_OBJECT into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CONVERT_VALUE_FOR_ELEMENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONVERT_VALUE_FOR_ELEMENT
.| Name | Type | Data Type | Description | Default Value |
| I_INPUT | Importing | TYPE RS_BOOL | If true - conversion from external to internal | |
| I_R_BW_ELEMENT | Importing | TYPE REF TO CL_RSEM_BW_ELEMENT | Target BW Element which defines the conversion rule | |
| C_S_CONVERTIBLE | Changing | TYPE IF_BW_ENTITY_MODEL_TYPES=>TN_S_CONVERTIBLE_CHARLIKE | Convertible characterlike value (via conversion routine) | |
| C_T_MSG | Changing | TYPE RS_T_MSG | Conversion messages (on input) |
Exceptions of Method CONVERT_VALUE_FOR_ELEMENT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CL_RSEM_MODEL_OBJECT.
DATA: lv_C_S_CONVERTIBLE TYPE IF_BW_ENTITY_MODEL_TYPES=>TN_S_CONVERTIBLE_CHARLIKE,
lv_C_T_MSG TYPE RS_T_MSG,
lv_I_INPUT TYPE RS_BOOL,
lv_I_R_BW_ELEMENT TYPE CL_RSEM_BW_ELEMENT,
lv_other TYPE c.
CALL METHOD lo_class=>CONVERT_VALUE_FOR_ELEMENT(
EXPORTING
I_INPUT = lv_I_INPUT
I_R_BW_ELEMENT = lv_I_R_BW_ELEMENT
CHANGING
C_S_CONVERTIBLE = lv_C_S_CONVERTIBLE
C_T_MSG = lv_C_T_MSG ).
Links to Related Class(s)
CL_RSEM_...Full list of available SAP object classes
Search for further information about these or an SAP related objects