SAP MCE_STATISTICS_REGU_UPD_SIM Function Module for Simulation for Settlement Documents









MCE_STATISTICS_REGU_UPD_SIM is a standard mce statistics regu upd sim SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulation for Settlement Documents 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 regu upd sim FM, simply by entering the name MCE_STATISTICS_REGU_UPD_SIM into the relevant SAP transaction such as SE37 or SE38.

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



Function MCE_STATISTICS_REGU_UPD_SIM 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_REGU_UPD_SIM'"Simulation for Settlement Documents
EXPORTING
I_WBELN = "Settlement Document Number

IMPORTING
E_ZEITP = "Event of update
E_ZEITP_BONUS = "Event of Update MM Bonus

EXCEPTIONS
ERROR_READING_DOCUMENT = 1 FATAL_ERROR_LIS_UPDATE = 2 INVALID_ORDER_TYPE = 3 NOT_STATISTIC_RELEVANT = 4
.



IMPORTING Parameters details for MCE_STATISTICS_REGU_UPD_SIM

I_WBELN - Settlement Document Number

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

EXPORTING Parameters details for MCE_STATISTICS_REGU_UPD_SIM

E_ZEITP - Event of update

Data type: TMC5-ZEITP
Optional: No
Call by Reference: Yes

E_ZEITP_BONUS - Event of Update MM Bonus

Data type: TMC5-ZEITP
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR_READING_DOCUMENT - Error at read

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

FATAL_ERROR_LIS_UPDATE - oc. header not available

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

INVALID_ORDER_TYPE - Settlement Document Type foes not exists

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

NOT_STATISTIC_RELEVANT - No update

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

Copy and paste ABAP code example for MCE_STATISTICS_REGU_UPD_SIM 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_zeitp  TYPE TMC5-ZEITP, "   
lv_i_wbeln  TYPE WBRK-WBELN, "   
lv_error_reading_document  TYPE WBRK, "   
lv_e_zeitp_bonus  TYPE TMC5-ZEITP, "   
lv_fatal_error_lis_update  TYPE TMC5, "   
lv_invalid_order_type  TYPE TMC5, "   
lv_not_statistic_relevant  TYPE TMC5. "   

  CALL FUNCTION 'MCE_STATISTICS_REGU_UPD_SIM'  "Simulation for Settlement Documents
    EXPORTING
         I_WBELN = lv_i_wbeln
    IMPORTING
         E_ZEITP = lv_e_zeitp
         E_ZEITP_BONUS = lv_e_zeitp_bonus
    EXCEPTIONS
        ERROR_READING_DOCUMENT = 1
        FATAL_ERROR_LIS_UPDATE = 2
        INVALID_ORDER_TYPE = 3
        NOT_STATISTIC_RELEVANT = 4
. " MCE_STATISTICS_REGU_UPD_SIM




ABAP code using 7.40 inline data declarations to call FM MCE_STATISTICS_REGU_UPD_SIM

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 ZEITP FROM TMC5 INTO @DATA(ld_e_zeitp).
 
"SELECT single WBELN FROM WBRK INTO @DATA(ld_i_wbeln).
 
 
"SELECT single ZEITP FROM TMC5 INTO @DATA(ld_e_zeitp_bonus).
 
 
 
 


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!