ABAP OO Class Methods

REGISTRY_SET_VALUE SAP Method - Writes a REG_SZ, REG_SZ_EXPAND Registry Value








Below is documentation, parameters and attributes of ABAP Method REGISTRY_SET_VALUE within SAP class CL_GUI_FRONTEND_SERVICES. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name CL_GUI_FRONTEND_SERVICES into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


Class: CL_GUI_FRONTEND_SERVICES

Method: REGISTRY_SET_VALUE

Method Type: Static Method
This is a Static Method so you can call it directly

Importing Parameters:
Below is a list of importing parameters associated with this method, including its name, description and data type



VALUE_NAME " Value Name TYPE STRING
VALUE " Value TYPE STRING
ROOT " Root TYPE I
KEY " Key Name TYPE STRING

Exporting Parameters:
RC " Return Code TYPE I

Exceptions:
REGISTRY_ERROR - Could not access registry
CNTL_ERROR - Control error
ERROR_NO_GUI - No GUI available
NOT_SUPPORTED_BY_GUI - GUI does not support this


Example ABAP coding

DATA:
ld_VALUE_NAME TYPE STRING ,
ld_VALUE TYPE STRING ,
ld_ROOT TYPE I ,
ld_KEY TYPE STRING ,
ld_RC TYPE I.

" ld_VALUE_NAME = "
" ld_VALUE = "
" ld_ROOT = "
" ld_KEY = "

CALL METHOD CL_GUI_FRONTEND_SERVICES=>REGISTRY_SET_VALUE(
EXPORTING
VALUE_NAME = ld_VALUE_NAME
VALUE = ld_VALUE
ROOT = ld_ROOT
KEY = ld_KEY
IMPORTING
RC = ld_RC
EXCEPTIONS
REGISTRY_ERROR = 1
CNTL_ERROR =