SAP DMC_GENERIC_CLUSTERFILL Function Module for generic filling of data into cluster table in sender system









DMC_GENERIC_CLUSTERFILL is a standard dmc generic clusterfill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for generic filling of data into cluster table in sender system 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 generic clusterfill FM, simply by entering the name DMC_GENERIC_CLUSTERFILL into the relevant SAP transaction such as SE37 or SE38.

Function Group: DMC_GENERIC_READ_WRITE
Program Name: SAPLDMC_GENERIC_READ_WRITE
Main Program: SAPLDMC_GENERIC_READ_WRITE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DMC_GENERIC_CLUSTERFILL 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_GENERIC_CLUSTERFILL'"generic filling of data into cluster table in sender system
EXPORTING
* IT_QRY = "table type for selections
I_CONVOBJECT_IDENT = "Conversion Object IDs
I_TABNAME = "Table Name
I_STRUCTNAME = "Hierarchy Structure ID
* I_MAX_BLOCKSIZE = 16000000 "maximum block size per portion
I_ACPL_ID = "DMC: Key
* I_NO_CLUSTER_FILL = '-' "don'tf fill cluster - only size calculation
* I_READING_TYPE = '5' "reading type (transparent, pool, cluster, indx-cluster)
* I_NUM_PORT_PER_ACP = 1000000 "max. num. of portions per access plan

IMPORTING
ET_RECCOUNTS = "Number of records in a portion of the access plan
ET_TABWIDTHS = "Width of a Table in the Sender System
ET_INTERVAL_BOUNDARIES = "dmc interval table

EXCEPTIONS
TABLE_NOT_FOUND = 1
.



IMPORTING Parameters details for DMC_GENERIC_CLUSTERFILL

IT_QRY - table type for selections

Data type: DMC_QRY_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONVOBJECT_IDENT - Conversion Object IDs

Data type: DMC_CIDENT
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABNAME - Table Name

Data type: TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_STRUCTNAME - Hierarchy Structure ID

Data type: DMC_STIDT
Optional: No
Call by Reference: No ( called with pass by value option)

I_MAX_BLOCKSIZE - maximum block size per portion

Data type: INT4
Default: 16000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACPL_ID - DMC: Key

Data type: DMC_ID
Optional: No
Call by Reference: No ( called with pass by value option)

I_NO_CLUSTER_FILL - don'tf fill cluster - only size calculation

Data type: BOOLEAN
Default: '-'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_READING_TYPE - reading type (transparent, pool, cluster, indx-cluster)

Data type: DMC_READING_TYPE
Default: '5'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NUM_PORT_PER_ACP - max. num. of portions per access plan

Data type: I
Default: 1000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DMC_GENERIC_CLUSTERFILL

ET_RECCOUNTS - Number of records in a portion of the access plan

Data type: DMCRECCNT_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

ET_TABWIDTHS - Width of a Table in the Sender System

Data type: DMCTABWIDT_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

ET_INTERVAL_BOUNDARIES - dmc interval table

Data type: DMC_INTERVAL_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

TABLE_NOT_FOUND - no table found with specified table name

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DMC_GENERIC_CLUSTERFILL 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_it_qry  TYPE DMC_QRY_TT, "   
lv_et_reccounts  TYPE DMCRECCNT_TAB, "   
lv_table_not_found  TYPE DMCRECCNT_TAB, "   
lv_et_tabwidths  TYPE DMCTABWIDT_TAB, "   
lv_i_convobject_ident  TYPE DMC_CIDENT, "   
lv_i_tabname  TYPE TABNAME, "   
lv_et_interval_boundaries  TYPE DMC_INTERVAL_TAB, "   
lv_i_structname  TYPE DMC_STIDT, "   
lv_i_max_blocksize  TYPE INT4, "   16000000
lv_i_acpl_id  TYPE DMC_ID, "   
lv_i_no_cluster_fill  TYPE BOOLEAN, "   '-'
lv_i_reading_type  TYPE DMC_READING_TYPE, "   '5'
lv_i_num_port_per_acp  TYPE I. "   1000000

  CALL FUNCTION 'DMC_GENERIC_CLUSTERFILL'  "generic filling of data into cluster table in sender system
    EXPORTING
         IT_QRY = lv_it_qry
         I_CONVOBJECT_IDENT = lv_i_convobject_ident
         I_TABNAME = lv_i_tabname
         I_STRUCTNAME = lv_i_structname
         I_MAX_BLOCKSIZE = lv_i_max_blocksize
         I_ACPL_ID = lv_i_acpl_id
         I_NO_CLUSTER_FILL = lv_i_no_cluster_fill
         I_READING_TYPE = lv_i_reading_type
         I_NUM_PORT_PER_ACP = lv_i_num_port_per_acp
    IMPORTING
         ET_RECCOUNTS = lv_et_reccounts
         ET_TABWIDTHS = lv_et_tabwidths
         ET_INTERVAL_BOUNDARIES = lv_et_interval_boundaries
    EXCEPTIONS
        TABLE_NOT_FOUND = 1
. " DMC_GENERIC_CLUSTERFILL




ABAP code using 7.40 inline data declarations to call FM DMC_GENERIC_CLUSTERFILL

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.

 
 
 
 
 
 
 
 
DATA(ld_i_max_blocksize) = 16000000.
 
 
DATA(ld_i_no_cluster_fill) = '-'.
 
DATA(ld_i_reading_type) = '5'.
 
DATA(ld_i_num_port_per_acp) = 1000000.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!