ADD_COMPONENT_USAGE SAP Method add a Component Usage
Below is documentation, parameters and attributes of ABAP Method ADD_COMPONENT_USAGE within SAP class IF_BSP_WD_RT_REP_API. 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 IF_BSP_WD_RT_REP_API 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 ADD_COMPONENT_USAGE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_COMPONENT_USAGE
.| Name | Type | Data Type | Description | Default Value |
| IS_SFW_DATA | Importing | TYPE BSP_WD_SFW_DATA | Switch Framework data | |
| IV_REFERENCED_USAGE | Importing | TYPE STRING | ||
| IV_USAGE_NAME | Importing | TYPE STRING | ||
| IV_USED_COMPONENT | Importing | TYPE STRING |
Exceptions of Method ADD_COMPONENT_USAGE
LOCK_FAILED -Example ABAP coding
DATA: lo_class TYPE REF TO IF_BSP_WD_RT_REP_API.
DATA: lv_IS_SFW_DATA TYPE BSP_WD_SFW_DATA,
lv_IV_REFERENCED_USAGE TYPE STRING,
lv_IV_USAGE_NAME TYPE STRING,
lv_IV_USED_COMPONENT TYPE STRING,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_COMPONENT_USAGE(
EXPORTING
IS_SFW_DATA = lv_IS_SFW_DATA
IV_REFERENCED_USAGE = lv_IV_REFERENCED_USAGE
IV_USAGE_NAME = lv_IV_USAGE_NAME
IV_USED_COMPONENT = lv_IV_USED_COMPONENT ).
Links to Related Class(s)
IF_BSP_W...Full list of available SAP object classes
Search for further information about these or an SAP related objects