GET_KEY SAP Method Replace old key
Below is documentation, parameters and attributes of ABAP Method GET_KEY 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 GET_KEY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_KEY
.| Name | Type | Data Type | Description | Default Value |
| IV_FORCE_NODE_KEY_GEN | Importing | TYPE FLAG | Force node key generation | |
| IV_OLD_KEY | Importing | TYPE /BOBF/OBM_NODE_KEY | Old key | |
| EV_NEW_KEY | Exporting | TYPE /BOBF/OBM_NODE_KEY | Unchanged or new key | |
| CT_KEY_LINK | Changing | TYPE /BOBF/T_FRW_KEY_LINK | Key Link |
Exceptions of Method GET_KEY
This method does not have any exceptionsExample 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_CT_KEY_LINK TYPE /BOBF/T_FRW_KEY_LINK,
lv_EV_NEW_KEY TYPE /BOBF/OBM_NODE_KEY,
lv_IV_FORCE_NODE_KEY_GEN TYPE FLAG,
lv_IV_OLD_KEY TYPE /BOBF/OBM_NODE_KEY,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_COPY_CONTROL=>GET_KEY(
EXPORTING
IV_FORCE_NODE_KEY_GEN = lv_IV_FORCE_NODE_KEY_GEN
IV_OLD_KEY = lv_IV_OLD_KEY
IMPORTING
EV_NEW_KEY = lv_EV_NEW_KEY
CHANGING
CT_KEY_LINK = lv_CT_KEY_LINK ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects