SAP GET_CCM_TAKEOVER Function Module for
GET_CCM_TAKEOVER is a standard get ccm takeover SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for get ccm takeover FM, simply by entering the name GET_CCM_TAKEOVER into the relevant SAP transaction such as SE37 or SE38.
Function Group: SMON
Program Name: SAPLSMON
Main Program: SAPLSMON
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GET_CCM_TAKEOVER pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'GET_CCM_TAKEOVER'".
EXPORTING
* LOCAL_REMOTE = 'LOCAL' "
* LOGICAL_DESTINATION = "
* REPLACE_WITH = -1 "
CHANGING
* CPU = "
* MEMORY = "
* AIX_VIRT_CPU = "
* CIM_VIRT_CONFIG = "
* CIM_VIRT_METRICS = "
* CCM_DATA = "
IMPORTING Parameters details for GET_CCM_TAKEOVER
LOCAL_REMOTE -
Data type: DEF_PAR_FU-LOC_REMOTEDefault: 'LOCAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOGICAL_DESTINATION -
Data type: RFCDES-RFCDESTOptional: Yes
Call by Reference: No ( called with pass by value option)
REPLACE_WITH -
Data type: INT4Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for GET_CCM_TAKEOVER
CPU -
Data type: CPU_ALLOptional: Yes
Call by Reference: No ( called with pass by value option)
MEMORY -
Data type: MEM_ALLOptional: Yes
Call by Reference: No ( called with pass by value option)
AIX_VIRT_CPU -
Data type: CPU_VIRT_AIXOptional: Yes
Call by Reference: No ( called with pass by value option)
CIM_VIRT_CONFIG -
Data type: VIRT_CONFIGOptional: Yes
Call by Reference: No ( called with pass by value option)
CIM_VIRT_METRICS -
Data type: VIRT_METRICSOptional: Yes
Call by Reference: No ( called with pass by value option)
CCM_DATA -
Data type: CCM_DATA_TBLOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GET_CCM_TAKEOVER Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_cpu | TYPE CPU_ALL, " | |||
| lv_local_remote | TYPE DEF_PAR_FU-LOC_REMOTE, " 'LOCAL' | |||
| lv_memory | TYPE MEM_ALL, " | |||
| lv_logical_destination | TYPE RFCDES-RFCDEST, " | |||
| lv_aix_virt_cpu | TYPE CPU_VIRT_AIX, " | |||
| lv_replace_with | TYPE INT4, " -1 | |||
| lv_cim_virt_config | TYPE VIRT_CONFIG, " | |||
| lv_cim_virt_metrics | TYPE VIRT_METRICS, " | |||
| lv_ccm_data | TYPE CCM_DATA_TBL. " |
|   CALL FUNCTION 'GET_CCM_TAKEOVER' " |
| EXPORTING | ||
| LOCAL_REMOTE | = lv_local_remote | |
| LOGICAL_DESTINATION | = lv_logical_destination | |
| REPLACE_WITH | = lv_replace_with | |
| CHANGING | ||
| CPU | = lv_cpu | |
| MEMORY | = lv_memory | |
| AIX_VIRT_CPU | = lv_aix_virt_cpu | |
| CIM_VIRT_CONFIG | = lv_cim_virt_config | |
| CIM_VIRT_METRICS | = lv_cim_virt_metrics | |
| CCM_DATA | = lv_ccm_data | |
| . " GET_CCM_TAKEOVER | ||
ABAP code using 7.40 inline data declarations to call FM GET_CCM_TAKEOVER
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single LOC_REMOTE FROM DEF_PAR_FU INTO @DATA(ld_local_remote). | ||||
| DATA(ld_local_remote) | = 'LOCAL'. | |||
| "SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_logical_destination). | ||||
| DATA(ld_replace_with) | = -1. | |||
Search for further information about these or an SAP related objects