INSERT SAP Method Insert node ID and node data
Below is documentation, parameters and attributes of ABAP Method INSERT within SAP class /PLMB/IF_SPI_APPL_ACCESS. 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 /PLMB/IF_SPI_APPL_ACCESS 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 INSERT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method INSERT
.| Name | Type | Data Type | Description | Default Value |
| IS_NODE_ID | Importing | TYPE ANY | Parent Node ID the New Records Should Refer to | |
| IS_PARAM | Importing | TYPE ANY | Additional Parameter for Insert | |
| IT_NODE_DATA | Importing | TYPE INDEX TABLE | Node Data to be Inserted | |
| IV_NODE_NAME | Importing | TYPE /PLMB/SPI_NODE_NAME | Node Name | |
| IV_TARGET_NODE_NAME | Importing | TYPE /PLMB/SPI_NODE_NAME | Target Node Name | |
| ET_INDEX_FAILED | Exporting | TYPE /PLMB/T_SPI_INDEX_FAILED | Index of IT_NODE_DATA for Which the Insert Failed | |
| ET_NODE_DATA | Exporting | TYPE INDEX TABLE | Result Node Data | |
| ET_NODE_ID_REL | Exporting | TYPE /PLMB/T_SPI_NODE_REL | Relation of IT_NODE_DATA (Source) and ET_NODE_DATA (Target) | |
| EV_FAILED | Exporting | TYPE /PLMB/SPI_FAILED_IND | Is Set if Failure is Independent of Node IDs |
Exceptions of Method INSERT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /PLMB/IF_SPI_APPL_ACCESS.
DATA: lv_ET_INDEX_FAILED TYPE /PLMB/T_SPI_INDEX_FAILED,
lv_ET_NODE_DATA TYPE INDEX TABLE,
lv_ET_NODE_ID_REL TYPE /PLMB/T_SPI_NODE_REL,
lv_EV_FAILED TYPE /PLMB/SPI_FAILED_IND,
lv_IS_NODE_ID TYPE ANY,
lv_IS_PARAM TYPE ANY,
lv_IT_NODE_DATA TYPE INDEX TABLE,
lv_IV_NODE_NAME TYPE /PLMB/SPI_NODE_NAME,
lv_IV_TARGET_NODE_NAME TYPE /PLMB/SPI_NODE_NAME,
lv_other TYPE c.
CALL METHOD lo_class=>INSERT(
EXPORTING
IS_NODE_ID = lv_IS_NODE_ID
IS_PARAM = lv_IS_PARAM
IT_NODE_DATA = lv_IT_NODE_DATA
IV_NODE_NAME = lv_IV_NODE_NAME
IV_TARGET_NODE_NAME = lv_IV_TARGET_NODE_NAME
IMPORTING
ET_INDEX_FAILED = lv_ET_INDEX_FAILED
ET_NODE_DATA = lv_ET_NODE_DATA
ET_NODE_ID_REL = lv_ET_NODE_ID_REL
EV_FAILED = lv_EV_FAILED ).
Links to Related Class(s)
/PLMB/IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects