VALUE_TO_DATAREF SAP Method 'Box In': Encapsulate Value in a Data Reference
Below is documentation, parameters and attributes of ABAP Method VALUE_TO_DATAREF within SAP class CL_ABAP_TEMPLATE_CONTEXT. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.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_ABAP_TEMPLATE_CONTEXT into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method VALUE_TO_DATAREF can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method VALUE_TO_DATAREF
.| Name | Type | Data Type | Description | Default Value |
| ACCESS | Importing | TYPE WDY_EVAL_RESULT-ACCESS | Write Protection Flag | |
| VALUE | Importing | TYPE ANY | ||
| DATAREF | Changing | TYPE REF TO WDY_EVAL_RESULT | Result of Evaluation of a Template Processor Node |
Exceptions of Method VALUE_TO_DATAREF
This method does not have any exceptionsExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lv_ACCESS TYPE WDY_EVAL_RESULT-ACCESS,
lv_DATAREF TYPE WDY_EVAL_RESULT,
lv_VALUE TYPE ANY,
lv_other TYPE c.
CALL METHOD CL_ABAP_TEMPLATE_CONTEXT=>VALUE_TO_DATAREF(
EXPORTING
ACCESS = lv_ACCESS
VALUE = lv_VALUE
CHANGING
DATAREF = lv_DATAREF ).
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects