GET_COCU_CONFIG_API SAP Method Returns API for component Customizing
Below is documentation, parameters and attributes of ABAP Method GET_COCU_CONFIG_API within SAP class CL_WD_CONFIG_FACTORY. 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_WD_CONFIG_FACTORY 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 GET_COCU_CONFIG_API can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_COCU_CONFIG_API
.| Name | Type | Data Type | Description | Default Value |
| CONFIG_KEY | Importing | TYPE WDY_CONFIG_KEY | Key Components of Configuration Tables | |
| IV_WITH_DEFAULT_VAR_INFO | Importing | TYPE ABAP_BOOL | ||
| SHARED | Importing | TYPE ABAP_BOOL | ||
| CONFIG_TOOL | Returning | TYPE REF TO IF_WD_CONFIG_TOOL_COCU | API Configuration Component |
Exceptions of Method GET_COCU_CONFIG_API
CX_WD_CONFIG_TOOL - Exceptions for Config APIExample ABAP coding
DATA: lo_class TYPE REF TO CL_WD_CONFIG_FACTORY.
DATA: lv_CONFIG_KEY TYPE WDY_CONFIG_KEY,
lv_CONFIG_TOOL TYPE IF_WD_CONFIG_TOOL_COCU,
lv_IV_WITH_DEFAULT_VAR_INFO TYPE ABAP_BOOL,
lv_SHARED TYPE ABAP_BOOL,
lv_other TYPE c.
CALL METHOD lo_class=>GET_COCU_CONFIG_API(
EXPORTING
CONFIG_KEY = lv_CONFIG_KEY
IV_WITH_DEFAULT_VAR_INFO = lv_IV_WITH_DEFAULT_VAR_INFO
SHARED = lv_SHARED
RECEIVING
CONFIG_TOOL = lv_CONFIG_TOOL )
"Alternate coding for Method Call with returning parameter
lv_CONFIG_TOOL = lo_class=>GET_COCU_CONFIG_API(
EXPORTING
CONFIG_KEY = lv_CONFIG_KEY
IV_WITH_DEFAULT_VAR_INFO = lv_IV_WITH_DEFAULT_VAR_INFO
SHARED = lv_SHARED ).
Links to Related Class(s)
CL_WD_CO...Full list of available SAP object classes
Search for further information about these or an SAP related objects