ADD_ATTRIBUTE SAP Method adds an attribute
Below is documentation, parameters and attributes of ABAP Method ADD_ATTRIBUTE within SAP class CL_PROXY_UIXM_TREE_DATA. 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_PROXY_UIXM_TREE_DATA 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_ATTRIBUTE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_ATTRIBUTE
.| Name | Type | Data Type | Description | Default Value |
| INSERT_BEFORE | Importing | TYPE PRX_BOOLEAN | ABAP Proxies: Boolean Value ('X' = True, Space = False) | |
| NAME | Importing | TYPE PRX_IFRNAM | Proxy Generation: Object Name in Enterprise Services Builder | |
| SELECTED_NODE | Importing | TYPE TM_NODEKEY | Tree Model: Node Key | |
| NODE_ID | Returning | TYPE PRX_ID | ID of new attribute |
Exceptions of Method ADD_ATTRIBUTE
CX_PXN_FAULT - mdr fault (abstract)Example ABAP coding
DATA: lo_class TYPE REF TO CL_PROXY_UIXM_TREE_DATA.
DATA: lv_INSERT_BEFORE TYPE PRX_BOOLEAN,
lv_NAME TYPE PRX_IFRNAM,
lv_NODE_ID TYPE PRX_ID,
lv_SELECTED_NODE TYPE TM_NODEKEY,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_ATTRIBUTE(
EXPORTING
INSERT_BEFORE = lv_INSERT_BEFORE
NAME = lv_NAME
SELECTED_NODE = lv_SELECTED_NODE
RECEIVING
NODE_ID = lv_NODE_ID )
"Alternate coding for Method Call with returning parameter
lv_NODE_ID = lo_class=>ADD_ATTRIBUTE(
EXPORTING
INSERT_BEFORE = lv_INSERT_BEFORE
NAME = lv_NAME
SELECTED_NODE = lv_SELECTED_NODE ).
Links to Related Class(s)
CL_PROXY...Full list of available SAP object classes
Search for further information about these or an SAP related objects