SAP MCE_STATISTICS_NEW_PARALLEL Function Module for Reorganization of Stat. Data for Agency Documents in Parallel Processing









MCE_STATISTICS_NEW_PARALLEL is a standard mce statistics new parallel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reorganization of Stat. Data for Agency Documents in Parallel Processing 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 mce statistics new parallel FM, simply by entering the name MCE_STATISTICS_NEW_PARALLEL into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCW4_WLF
Program Name: SAPLMCW4_WLF
Main Program: SAPLMCW4_WLF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MCE_STATISTICS_NEW_PARALLEL 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 'MCE_STATISTICS_NEW_PARALLEL'"Reorganization of Stat. Data for Agency Documents in Parallel Processing
EXPORTING
* I_MAX_TASKS = "
* I_WRSTP = 500 "Package Size
* I_FODAT = ' ' "
* I_APPLOG = ' ' "
* I_DCIDX = ' ' "
* I_RREAD = ' ' "
* I_WLFBEL = 'X' "
* I_NTRABR = ' ' "
* I_BELIND = ' ' "Recompilation of Document Index
* I_DB_CURSOR = "Database Cursor
* I_ARCHIVE_HANDLE = "
* I_SERVER_GROUP = "Server Group
I_LFNAME = "Name of Run
I_MODUS = "
I_VRSIO = "Version
* I_DB = 'X' "Recompilation of Docs from Database
* I_ARCHIV = ' ' "Recompilation of Docs from Archives
I_ENDDAT = "
I_ENDTIM = "

IMPORTING
E_CNT_PAKET = "
E_ANZAHL_BELEGE = "Number of Documents Processed
E_ANZAHL_POS = "
E_FATAL_ERROR = "
E_LAST_WBELN = "
E_TIMEOUT = "

TABLES
* T_MCINF = "
* T_KUNRE = "
* T_KUNRG = "
* T_WRART = "
* T_LFART = "
* T_BUKRS = "
* T_EKORG = "
* T_EKGRP = "
* T_VKORG = "
* T_VTWEG = "
* T_SPART = "
* T_FIELD_LIST_WBRP = "
* T_WDTYP = "
* T_STAFO = "
* T_ZEITP = "
* T_TMC2P = "
* T_ERDAT = "
* T_FIELD_LIST_WBRL = "
* T_ERROR_MESSAGES = "Notifications
* T_WBELN = "
* T_WFDAT = "
* T_BLDAT = "
* T_LIFRE = "
* T_LNRZB = "

EXCEPTIONS
NO_AUTHORITY = 1 INITIALIZATION_ERROR = 2 ERROR_DROP_CREATE_INDEX = 3
.



IMPORTING Parameters details for MCE_STATISTICS_NEW_PARALLEL

I_MAX_TASKS -

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

I_WRSTP - Package Size

Data type: RMCENEUB-WRSTP
Default: 500
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FODAT -

Data type: RMCENEUB-WBSPLN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLOG -

Data type: RMCENEUB-WBSPLN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DCIDX -

Data type: RMCSNEUA-NEUA_DCIDX
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RREAD -

Data type: RMCENEUB-RREAD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WLFBEL -

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

I_NTRABR -

Data type: RMCENEUB-UMFNEU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BELIND - Recompilation of Document Index

Data type: RMCENEUB-UMFNEU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DB_CURSOR - Database Cursor

Data type: CURSOR
Optional: Yes
Call by Reference: Yes

I_ARCHIVE_HANDLE -

Data type: SY-TABIX
Optional: Yes
Call by Reference: Yes

I_SERVER_GROUP - Server Group

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

I_LFNAME - Name of Run

Data type: RMCSNEUA-LAUFNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_MODUS -

Data type: MCCONTROL-MODUS
Optional: No
Call by Reference: No ( called with pass by value option)

I_VRSIO - Version

Data type: MCCONTROL-VRSIO
Optional: No
Call by Reference: No ( called with pass by value option)

I_DB - Recompilation of Docs from Database

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

I_ARCHIV - Recompilation of Docs from Archives

Data type: RMCENEUB-ARCHIVE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ENDDAT -

Data type: RMCSNEUA-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_ENDTIM -

Data type: RMCSNEUA-UHRZEIT
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MCE_STATISTICS_NEW_PARALLEL

E_CNT_PAKET -

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

E_ANZAHL_BELEGE - Number of Documents Processed

Data type: P
Optional: No
Call by Reference: Yes

E_ANZAHL_POS -

Data type: P
Optional: No
Call by Reference: Yes

E_FATAL_ERROR -

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

E_LAST_WBELN -

Data type: WBRK-WBELN
Optional: No
Call by Reference: Yes

E_TIMEOUT -

Data type: C
Optional: No
Call by Reference: Yes

TABLES Parameters details for MCE_STATISTICS_NEW_PARALLEL

T_MCINF -

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

T_KUNRE -

Data type: KUNRE_RAN
Optional: Yes
Call by Reference: Yes

T_KUNRG -

Data type: KUNRG_RAN
Optional: Yes
Call by Reference: Yes

T_WRART -

Data type: WRART_RAN
Optional: Yes
Call by Reference: Yes

T_LFART -

Data type: LFART_RAN
Optional: Yes
Call by Reference: Yes

T_BUKRS -

Data type: BUKRS_RAN
Optional: Yes
Call by Reference: Yes

T_EKORG -

Data type: EKORG_RAN
Optional: Yes
Call by Reference: Yes

T_EKGRP -

Data type: EKGRP_RAN
Optional: Yes
Call by Reference: Yes

T_VKORG -

Data type: VKORG_RAN
Optional: Yes
Call by Reference: Yes

T_VTWEG -

Data type: VTWEG_RAN
Optional: Yes
Call by Reference: Yes

T_SPART -

Data type: SPART_RAN
Optional: Yes
Call by Reference: Yes

T_FIELD_LIST_WBRP -

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

T_WDTYP -

Data type: WDTYP_RAN
Optional: Yes
Call by Reference: Yes

T_STAFO -

Data type: STAFO_RAN
Optional: Yes
Call by Reference: Yes

T_ZEITP -

Data type: NZEITP_RAN
Optional: Yes
Call by Reference: Yes

T_TMC2P -

Data type: TMC2P
Optional: Yes
Call by Reference: Yes

T_ERDAT -

Data type: ERDAT_RAN
Optional: Yes
Call by Reference: Yes

T_FIELD_LIST_WBRL -

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

T_ERROR_MESSAGES - Notifications

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

T_WBELN -

Data type: WBELN_RAN
Optional: Yes
Call by Reference: Yes

T_WFDAT -

Data type: WFDAT_RAN
Optional: Yes
Call by Reference: Yes

T_BLDAT -

Data type: BLDAT_RAN
Optional: Yes
Call by Reference: Yes

T_LIFRE -

Data type: LIFRE_RAN
Optional: Yes
Call by Reference: Yes

T_LNRZB -

Data type: LIFNR_RANG
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_AUTHORITY - No authorization

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

INITIALIZATION_ERROR -

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

ERROR_DROP_CREATE_INDEX -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MCE_STATISTICS_NEW_PARALLEL 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:
lt_t_mcinf  TYPE STANDARD TABLE OF MCSOINF, "   
lv_e_cnt_paket  TYPE SY-TABIX, "   
lv_i_max_tasks  TYPE RMCENEUB-MAX_TASKS, "   
lv_no_authority  TYPE RMCENEUB, "   
lv_i_wrstp  TYPE RMCENEUB-WRSTP, "   500
lt_t_kunre  TYPE STANDARD TABLE OF KUNRE_RAN, "   
lv_i_fodat  TYPE RMCENEUB-WBSPLN, "   SPACE
lt_t_kunrg  TYPE STANDARD TABLE OF KUNRG_RAN, "   
lt_t_wrart  TYPE STANDARD TABLE OF WRART_RAN, "   
lv_i_applog  TYPE RMCENEUB-WBSPLN, "   SPACE
lv_i_dcidx  TYPE RMCSNEUA-NEUA_DCIDX, "   SPACE
lt_t_lfart  TYPE STANDARD TABLE OF LFART_RAN, "   
lv_i_rread  TYPE RMCENEUB-RREAD, "   SPACE
lt_t_bukrs  TYPE STANDARD TABLE OF BUKRS_RAN, "   
lt_t_ekorg  TYPE STANDARD TABLE OF EKORG_RAN, "   
lv_i_wlfbel  TYPE RMCENEUB-UMFNEU, "   'X'
lt_t_ekgrp  TYPE STANDARD TABLE OF EKGRP_RAN, "   
lv_i_ntrabr  TYPE RMCENEUB-UMFNEU, "   SPACE
lt_t_vkorg  TYPE STANDARD TABLE OF VKORG_RAN, "   
lv_i_belind  TYPE RMCENEUB-UMFNEU, "   SPACE
lt_t_vtweg  TYPE STANDARD TABLE OF VTWEG_RAN, "   
lv_i_db_cursor  TYPE CURSOR, "   
lt_t_spart  TYPE STANDARD TABLE OF SPART_RAN, "   
lv_i_archive_handle  TYPE SY-TABIX, "   
lv_i_server_group  TYPE RMCENEUB-SERV_GRP, "   
lv_e_anzahl_belege  TYPE P, "   
lt_t_field_list_wbrp  TYPE STANDARD TABLE OF MCWZ_FIELD_LIST, "   
lv_initialization_error  TYPE MCWZ_FIELD_LIST, "   
lt_t_wdtyp  TYPE STANDARD TABLE OF WDTYP_RAN, "   
lt_t_stafo  TYPE STANDARD TABLE OF STAFO_RAN, "   
lt_t_zeitp  TYPE STANDARD TABLE OF NZEITP_RAN, "   
lt_t_tmc2p  TYPE STANDARD TABLE OF TMC2P, "   
lt_t_erdat  TYPE STANDARD TABLE OF ERDAT_RAN, "   
lv_i_lfname  TYPE RMCSNEUA-LAUFNAME, "   
lv_e_anzahl_pos  TYPE P, "   
lt_t_field_list_wbrl  TYPE STANDARD TABLE OF MCWZ_FIELD_LIST, "   
lv_error_drop_create_index  TYPE MCWZ_FIELD_LIST, "   
lv_i_modus  TYPE MCCONTROL-MODUS, "   
lv_e_fatal_error  TYPE SY-SUBRC, "   
lt_t_error_messages  TYPE STANDARD TABLE OF WLF1_ERROR, "   
lv_i_vrsio  TYPE MCCONTROL-VRSIO, "   
lt_t_wbeln  TYPE STANDARD TABLE OF WBELN_RAN, "   
lv_e_last_wbeln  TYPE WBRK-WBELN, "   
lv_i_db  TYPE RMCENEUB-ARCHIVE, "   'X'
lt_t_wfdat  TYPE STANDARD TABLE OF WFDAT_RAN, "   
lv_e_timeout  TYPE C, "   
lt_t_bldat  TYPE STANDARD TABLE OF BLDAT_RAN, "   
lv_i_archiv  TYPE RMCENEUB-ARCHIVE, "   SPACE
lt_t_lifre  TYPE STANDARD TABLE OF LIFRE_RAN, "   
lv_i_enddat  TYPE RMCSNEUA-DATUM, "   
lt_t_lnrzb  TYPE STANDARD TABLE OF LIFNR_RANG, "   
lv_i_endtim  TYPE RMCSNEUA-UHRZEIT. "   

  CALL FUNCTION 'MCE_STATISTICS_NEW_PARALLEL'  "Reorganization of Stat. Data for Agency Documents in Parallel Processing
    EXPORTING
         I_MAX_TASKS = lv_i_max_tasks
         I_WRSTP = lv_i_wrstp
         I_FODAT = lv_i_fodat
         I_APPLOG = lv_i_applog
         I_DCIDX = lv_i_dcidx
         I_RREAD = lv_i_rread
         I_WLFBEL = lv_i_wlfbel
         I_NTRABR = lv_i_ntrabr
         I_BELIND = lv_i_belind
         I_DB_CURSOR = lv_i_db_cursor
         I_ARCHIVE_HANDLE = lv_i_archive_handle
         I_SERVER_GROUP = lv_i_server_group
         I_LFNAME = lv_i_lfname
         I_MODUS = lv_i_modus
         I_VRSIO = lv_i_vrsio
         I_DB = lv_i_db
         I_ARCHIV = lv_i_archiv
         I_ENDDAT = lv_i_enddat
         I_ENDTIM = lv_i_endtim
    IMPORTING
         E_CNT_PAKET = lv_e_cnt_paket
         E_ANZAHL_BELEGE = lv_e_anzahl_belege
         E_ANZAHL_POS = lv_e_anzahl_pos
         E_FATAL_ERROR = lv_e_fatal_error
         E_LAST_WBELN = lv_e_last_wbeln
         E_TIMEOUT = lv_e_timeout
    TABLES
         T_MCINF = lt_t_mcinf
         T_KUNRE = lt_t_kunre
         T_KUNRG = lt_t_kunrg
         T_WRART = lt_t_wrart
         T_LFART = lt_t_lfart
         T_BUKRS = lt_t_bukrs
         T_EKORG = lt_t_ekorg
         T_EKGRP = lt_t_ekgrp
         T_VKORG = lt_t_vkorg
         T_VTWEG = lt_t_vtweg
         T_SPART = lt_t_spart
         T_FIELD_LIST_WBRP = lt_t_field_list_wbrp
         T_WDTYP = lt_t_wdtyp
         T_STAFO = lt_t_stafo
         T_ZEITP = lt_t_zeitp
         T_TMC2P = lt_t_tmc2p
         T_ERDAT = lt_t_erdat
         T_FIELD_LIST_WBRL = lt_t_field_list_wbrl
         T_ERROR_MESSAGES = lt_t_error_messages
         T_WBELN = lt_t_wbeln
         T_WFDAT = lt_t_wfdat
         T_BLDAT = lt_t_bldat
         T_LIFRE = lt_t_lifre
         T_LNRZB = lt_t_lnrzb
    EXCEPTIONS
        NO_AUTHORITY = 1
        INITIALIZATION_ERROR = 2
        ERROR_DROP_CREATE_INDEX = 3
. " MCE_STATISTICS_NEW_PARALLEL




ABAP code using 7.40 inline data declarations to call FM MCE_STATISTICS_NEW_PARALLEL

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 TABIX FROM SY INTO @DATA(ld_e_cnt_paket).
 
"SELECT single MAX_TASKS FROM RMCENEUB INTO @DATA(ld_i_max_tasks).
 
 
"SELECT single WRSTP FROM RMCENEUB INTO @DATA(ld_i_wrstp).
DATA(ld_i_wrstp) = 500.
 
 
"SELECT single WBSPLN FROM RMCENEUB INTO @DATA(ld_i_fodat).
DATA(ld_i_fodat) = ' '.
 
 
 
"SELECT single WBSPLN FROM RMCENEUB INTO @DATA(ld_i_applog).
DATA(ld_i_applog) = ' '.
 
"SELECT single NEUA_DCIDX FROM RMCSNEUA INTO @DATA(ld_i_dcidx).
DATA(ld_i_dcidx) = ' '.
 
 
"SELECT single RREAD FROM RMCENEUB INTO @DATA(ld_i_rread).
DATA(ld_i_rread) = ' '.
 
 
 
"SELECT single UMFNEU FROM RMCENEUB INTO @DATA(ld_i_wlfbel).
DATA(ld_i_wlfbel) = 'X'.
 
 
"SELECT single UMFNEU FROM RMCENEUB INTO @DATA(ld_i_ntrabr).
DATA(ld_i_ntrabr) = ' '.
 
 
"SELECT single UMFNEU FROM RMCENEUB INTO @DATA(ld_i_belind).
DATA(ld_i_belind) = ' '.
 
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_i_archive_handle).
 
"SELECT single SERV_GRP FROM RMCENEUB INTO @DATA(ld_i_server_group).
 
 
 
 
 
 
 
 
 
"SELECT single LAUFNAME FROM RMCSNEUA INTO @DATA(ld_i_lfname).
 
 
 
 
"SELECT single MODUS FROM MCCONTROL INTO @DATA(ld_i_modus).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_fatal_error).
 
 
"SELECT single VRSIO FROM MCCONTROL INTO @DATA(ld_i_vrsio).
 
 
"SELECT single WBELN FROM WBRK INTO @DATA(ld_e_last_wbeln).
 
"SELECT single ARCHIVE FROM RMCENEUB INTO @DATA(ld_i_db).
DATA(ld_i_db) = 'X'.
 
 
 
 
"SELECT single ARCHIVE FROM RMCENEUB INTO @DATA(ld_i_archiv).
DATA(ld_i_archiv) = ' '.
 
 
"SELECT single DATUM FROM RMCSNEUA INTO @DATA(ld_i_enddat).
 
 
"SELECT single UHRZEIT FROM RMCSNEUA INTO @DATA(ld_i_endtim).
 


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!