CREATE_CONTEXT_NODE SAP Method of class CL_BSP_WD_ENHANCEMENT_API
Below is documentation, parameters and attributes of ABAP Method CREATE_CONTEXT_NODE within SAP class CL_BSP_WD_ENHANCEMENT_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 CL_BSP_WD_ENHANCEMENT_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 CREATE_CONTEXT_NODE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_CONTEXT_NODE
.| Name | Type | Data Type | Description | Default Value |
| IV_CNODE_NAME | Importing | TYPE NAME_KOMP | Component Name | |
| IV_CONTEXT_CLASS | Importing | TYPE SEOCLSNAME | Object Type Name | |
| IV_MODELINFO | Importing | TYPE REF TO CL_BSP_WD_GEN_UTIL_MODEL | ||
| IV_SRC_XML | Importing | TYPE STRING | ||
| RV_CNODE_CLASS | Returning | TYPE SEOCLSNAME | Object Type Name |
Exceptions of Method CREATE_CONTEXT_NODE
CX_BSP_WD_GENERATION - BSP WD Generation ExceptionExample ABAP coding
DATA: lo_class TYPE REF TO CL_BSP_WD_ENHANCEMENT_API.
DATA: lv_IV_CNODE_NAME TYPE NAME_KOMP,
lv_IV_CONTEXT_CLASS TYPE SEOCLSNAME,
lv_IV_MODELINFO TYPE CL_BSP_WD_GEN_UTIL_MODEL,
lv_IV_SRC_XML TYPE STRING,
lv_RV_CNODE_CLASS TYPE SEOCLSNAME,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_CONTEXT_NODE(
EXPORTING
IV_CNODE_NAME = lv_IV_CNODE_NAME
IV_CONTEXT_CLASS = lv_IV_CONTEXT_CLASS
IV_MODELINFO = lv_IV_MODELINFO
IV_SRC_XML = lv_IV_SRC_XML
RECEIVING
RV_CNODE_CLASS = lv_RV_CNODE_CLASS )
"Alternate coding for Method Call with returning parameter
lv_RV_CNODE_CLASS = lo_class=>CREATE_CONTEXT_NODE(
EXPORTING
IV_CNODE_NAME = lv_IV_CNODE_NAME
IV_CONTEXT_CLASS = lv_IV_CONTEXT_CLASS
IV_MODELINFO = lv_IV_MODELINFO
IV_SRC_XML = lv_IV_SRC_XML ).
Links to Related Class(s)
CL_BSP_W...Full list of available SAP object classes
Search for further information about these or an SAP related objects