USE_FEATURES SAP Method Checks whether features can be used
Below is documentation, parameters and attributes of ABAP Method USE_FEATURES within SAP class CL_ABAP_DBFEATURES. 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_ABAP_DBFEATURES 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 USE_FEATURES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method USE_FEATURES
.| Name | Type | Data Type | Description | Default Value |
| CONNECTION | Importing | TYPE DBCON_NAME | Logical Name for a Database Connection | |
| REQUESTED_FEATURES | Importing | TYPE FEATURES_SET_T | List of requested features | |
| CONNECTION | Importing | TYPE DBCON_NAME | Logical name of a database connection | |
| SUPPORTS_FEATURES | Returning | TYPE ABAP_BOOL | Result of the request |
Exceptions of Method USE_FEATURES
CX_ABAP_INVALID_PARAM_VALUE - One parameter value is not allowed.Example ABAP coding
DATA: lv_CONNECTION TYPE DBCON_NAME,
lv_REQUESTED_FEATURES TYPE FEATURES_SET_T,
lv_SUPPORTS_FEATURES TYPE ABAP_BOOL,
lv_CONNECTION TYPE DBCON_NAME,
lv_other TYPE c.
CALL METHOD CL_ABAP_DBFEATURES=>USE_FEATURES(
EXPORTING
CONNECTION = lv_CONNECTION
REQUESTED_FEATURES = lv_REQUESTED_FEATURES
CONNECTION = lv_CONNECTION
RECEIVING
SUPPORTS_FEATURES = lv_SUPPORTS_FEATURES )
"Alternate coding for Method Call with returning parameter
lv_SUPPORTS_FEATURES = CL_ABAP_DBFEATURES=>USE_FEATURES(
EXPORTING
CONNECTION = lv_CONNECTION
REQUESTED_FEATURES = lv_REQUESTED_FEATURES
CONNECTION = lv_CONNECTION ).
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