CONSTRUCTOR SAP Method of class /SCMTMS/CL_COCO_REQUEST
Below is documentation, parameters and attributes of ABAP Method CONSTRUCTOR within SAP class /SCMTMS/CL_COCO_REQUEST. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is a Class Constructor so it is called automatically when the class is accessed for the first time.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_COCO_REQUEST 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 CONSTRUCTOR can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONSTRUCTOR
.| Name | Type | Data Type | Description | Default Value |
| IS_REQUEST_HD | Importing | TYPE /SCMTMS/S_TM_REQ_HD | TM Request: Header Data | |
| IT_ATTR_VALUES | Importing | TYPE TT_ATTRIBUTE_VALUE | Attribute values to be overwritten in the target instance | |
| IT_EXCL_NODE_INST | Importing | TYPE /BOBF/T_FRW_KEY | Node instances that shall not be copied | |
| IT_NODE_FORBIDDEN | Importing | TYPE TT_BO_NODE_SCOPE | ||
| IT_NODE_SRC_TARGET_KEY | Importing | TYPE TT_KEY_LINK_EXT | Key link table: source / target node key for copying | |
| IT_SRC_TARGET_KEY | Importing | TYPE /BOBF/T_FRW_KEY_LINK | Key link table: source / target root node for copying | |
| IV_COPY_NUMBER | Importing | TYPE INT2 | Number of Copies | |
| IV_ENTRY_BO_NODE | Importing | TYPE /BOBF/CONF_KEY | NodeID | |
| IV_MODIFY_TARGET | Importing | TYPE FLAG | Create/Update target instances | |
| IV_PROCESS_ID | Importing | TYPE /SCMTMS/COCO_PROCESS_ID | Copy Process | |
| IV_PROFILE_ID | Importing | TYPE /SCMTMS/COCO_PROFILE_ID | Copy Profile | |
| IV_SOURCE_BO_KEY | Importing | TYPE /BOBF/OBM_BO_KEY | Source business object for a simple copy |
Exceptions of Method CONSTRUCTOR
This method does not have any exceptionsExample ABAP coding
As the method is a Class Constructor the below code doesnt really make sense as it cant be executed as a stand alone method but this is how it would look if it was a normal static method.DATA: lo_class TYPE REF TO /SCMTMS/CL_COCO_REQUEST.
DATA: lv_IS_REQUEST_HD TYPE /SCMTMS/S_TM_REQ_HD,
lv_IT_ATTR_VALUES TYPE TT_ATTRIBUTE_VALUE,
lv_IT_EXCL_NODE_INST TYPE /BOBF/T_FRW_KEY,
lv_IT_NODE_FORBIDDEN TYPE TT_BO_NODE_SCOPE,
lv_IT_NODE_SRC_TARGET_KEY TYPE TT_KEY_LINK_EXT,
lv_IT_SRC_TARGET_KEY TYPE /BOBF/T_FRW_KEY_LINK,
lv_IV_COPY_NUMBER TYPE INT2,
lv_IV_ENTRY_BO_NODE TYPE /BOBF/CONF_KEY,
lv_IV_MODIFY_TARGET TYPE FLAG,
lv_IV_PROCESS_ID TYPE /SCMTMS/COCO_PROCESS_ID,
lv_IV_PROFILE_ID TYPE /SCMTMS/COCO_PROFILE_ID,
lv_IV_SOURCE_BO_KEY TYPE /BOBF/OBM_BO_KEY,
lv_other TYPE c.
CALL METHOD lo_class=>CONSTRUCTOR(
EXPORTING
IS_REQUEST_HD = lv_IS_REQUEST_HD
IT_ATTR_VALUES = lv_IT_ATTR_VALUES
IT_EXCL_NODE_INST = lv_IT_EXCL_NODE_INST
IT_NODE_FORBIDDEN = lv_IT_NODE_FORBIDDEN
IT_NODE_SRC_TARGET_KEY = lv_IT_NODE_SRC_TARGET_KEY
IT_SRC_TARGET_KEY = lv_IT_SRC_TARGET_KEY
IV_COPY_NUMBER = lv_IV_COPY_NUMBER
IV_ENTRY_BO_NODE = lv_IV_ENTRY_BO_NODE
IV_MODIFY_TARGET = lv_IV_MODIFY_TARGET
IV_PROCESS_ID = lv_IV_PROCESS_ID
IV_PROFILE_ID = lv_IV_PROFILE_ID
IV_SOURCE_BO_KEY = lv_IV_SOURCE_BO_KEY ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects