SAP DMC_GET_NEW_CLUSTER_POINTER Function Module for get new cluster pointer
DMC_GET_NEW_CLUSTER_POINTER is a standard dmc get new cluster pointer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for get new cluster pointer processing and below is the pattern details for this FM, 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 dmc get new cluster pointer FM, simply by entering the name DMC_GET_NEW_CLUSTER_POINTER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV0
Program Name: SAPLCNV0
Main Program: SAPLCNV0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DMC_GET_NEW_CLUSTER_POINTER 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 'DMC_GET_NEW_CLUSTER_POINTER'"get new cluster pointer.
EXPORTING
I_CONVOBJ = "conversion object
I_ACPL = "access plan / recalc. ID
* I_DEL_RELID = "Relation ID
IMPORTING
E_CLUPTR = "cluster record ID
E_CLUID = "ID for cluster access
EXCEPTIONS
ENQUEUE_FAILED = 1
IMPORTING Parameters details for DMC_GET_NEW_CLUSTER_POINTER
I_CONVOBJ - conversion object
Data type: DMC_CLUPTR-CONVOBJ_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_ACPL - access plan / recalc. ID
Data type: DMC_CLUPTR-ACPL_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_DEL_RELID - Relation ID
Data type: RELIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DMC_GET_NEW_CLUSTER_POINTER
E_CLUPTR - cluster record ID
Data type: DMC_CLUPTR-CLUPTROptional: No
Call by Reference: No ( called with pass by value option)
E_CLUID - ID for cluster access
Data type: DMC_INDXCL-CLUIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENQUEUE_FAILED - ENQUEUE_FAILED
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DMC_GET_NEW_CLUSTER_POINTER 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_e_cluptr | TYPE DMC_CLUPTR-CLUPTR, " | |||
| lv_i_convobj | TYPE DMC_CLUPTR-CONVOBJ_ID, " | |||
| lv_enqueue_failed | TYPE DMC_CLUPTR, " | |||
| lv_i_acpl | TYPE DMC_CLUPTR-ACPL_ID, " | |||
| lv_e_cluid | TYPE DMC_INDXCL-CLUID, " | |||
| lv_i_del_relid | TYPE RELID. " |
|   CALL FUNCTION 'DMC_GET_NEW_CLUSTER_POINTER' "get new cluster pointer |
| EXPORTING | ||
| I_CONVOBJ | = lv_i_convobj | |
| I_ACPL | = lv_i_acpl | |
| I_DEL_RELID | = lv_i_del_relid | |
| IMPORTING | ||
| E_CLUPTR | = lv_e_cluptr | |
| E_CLUID | = lv_e_cluid | |
| EXCEPTIONS | ||
| ENQUEUE_FAILED = 1 | ||
| . " DMC_GET_NEW_CLUSTER_POINTER | ||
ABAP code using 7.40 inline data declarations to call FM DMC_GET_NEW_CLUSTER_POINTER
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 CLUPTR FROM DMC_CLUPTR INTO @DATA(ld_e_cluptr). | ||||
| "SELECT single CONVOBJ_ID FROM DMC_CLUPTR INTO @DATA(ld_i_convobj). | ||||
| "SELECT single ACPL_ID FROM DMC_CLUPTR INTO @DATA(ld_i_acpl). | ||||
| "SELECT single CLUID FROM DMC_INDXCL INTO @DATA(ld_e_cluid). | ||||
Search for further information about these or an SAP related objects