COPY_ATTRIBUTES SAP Method Copy attribute values
Below is documentation, parameters and attributes of ABAP Method COPY_ATTRIBUTES within SAP class /SCMTMS/CL_COPY_CONTROL. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/CL_COPY_CONTROL into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method COPY_ATTRIBUTES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COPY_ATTRIBUTES
.| Name | Type | Data Type | Description | Default Value |
| IS_BO_COPY | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TY_BO_COPY | ||
| IS_KEY_LINE | Importing | TYPE ANY | ||
| IS_SRC_NODE | Importing | TYPE /BOBF/S_CONFRO_NODE | Configuration: Node | |
| IS_SRC_NODE_DATA | Importing | TYPE ANY | ||
| IT_ATTRIBUTE_FILTER | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTRIBUTE_FILTER | ||
| IT_ATTRIBUTE_VALUE | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTRIBUTE_VALUE | ||
| IT_ATTR_MAP | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTR_MAP | ||
| IT_KEYS | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TT_KEYS | ||
| IT_NODE_ATTR | Importing | TYPE /BOBF/T_FRW_NAME | ||
| IT_NODE_MAP | Importing | TYPE /SCMTMS/CL_COCO_REQUEST=>TT_NODE_MAP | ||
| IT_PROTECT_ATTR | Importing | TYPE /BOBF/T_FRW_NAME | List of Names (e.g. Fieldnames) | |
| IV_MOVE_CORR | Importing | TYPE FLAG | Activate move-corresponding | |
| IV_SRC_BO | Importing | TYPE /BOBF/OBM_BO_KEY | Source Business Object | |
| IV_SRC_NODE_KEY | Importing | TYPE /BOBF/CONF_KEY | Source Node ID | |
| IV_TRG_NODE | Importing | TYPE /BOBF/OBM_NODE_KEY | ||
| CS_TRG_NODE_DATA | Changing | TYPE ANY |
Exceptions of Method COPY_ATTRIBUTES
/SCMTMS/CX_COPY_CONTROL - Exception class for copy controlExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lv_CS_TRG_NODE_DATA TYPE ANY,
lv_IS_BO_COPY TYPE /SCMTMS/CL_COCO_REQUEST=>TY_BO_COPY,
lv_IS_KEY_LINE TYPE ANY,
lv_IS_SRC_NODE TYPE /BOBF/S_CONFRO_NODE,
lv_IS_SRC_NODE_DATA TYPE ANY,
lv_IT_ATTRIBUTE_FILTER TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTRIBUTE_FILTER,
lv_IT_ATTRIBUTE_VALUE TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTRIBUTE_VALUE,
lv_IT_ATTR_MAP TYPE /SCMTMS/CL_COCO_REQUEST=>TT_ATTR_MAP,
lv_IT_KEYS TYPE /SCMTMS/CL_COCO_REQUEST=>TT_KEYS,
lv_IT_NODE_ATTR TYPE /BOBF/T_FRW_NAME,
lv_IT_NODE_MAP TYPE /SCMTMS/CL_COCO_REQUEST=>TT_NODE_MAP,
lv_IT_PROTECT_ATTR TYPE /BOBF/T_FRW_NAME,
lv_IV_MOVE_CORR TYPE FLAG,
lv_IV_SRC_BO TYPE /BOBF/OBM_BO_KEY,
lv_IV_SRC_NODE_KEY TYPE /BOBF/CONF_KEY,
lv_IV_TRG_NODE TYPE /BOBF/OBM_NODE_KEY,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_COPY_CONTROL=>COPY_ATTRIBUTES(
EXPORTING
IS_BO_COPY = lv_IS_BO_COPY
IS_KEY_LINE = lv_IS_KEY_LINE
IS_SRC_NODE = lv_IS_SRC_NODE
IS_SRC_NODE_DATA = lv_IS_SRC_NODE_DATA
IT_ATTRIBUTE_FILTER = lv_IT_ATTRIBUTE_FILTER
IT_ATTRIBUTE_VALUE = lv_IT_ATTRIBUTE_VALUE
IT_ATTR_MAP = lv_IT_ATTR_MAP
IT_KEYS = lv_IT_KEYS
IT_NODE_ATTR = lv_IT_NODE_ATTR
IT_NODE_MAP = lv_IT_NODE_MAP
IT_PROTECT_ATTR = lv_IT_PROTECT_ATTR
IV_MOVE_CORR = lv_IV_MOVE_CORR
IV_SRC_BO = lv_IV_SRC_BO
IV_SRC_NODE_KEY = lv_IV_SRC_NODE_KEY
IV_TRG_NODE = lv_IV_TRG_NODE
CHANGING
CS_TRG_NODE_DATA = lv_CS_TRG_NODE_DATA ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects