SAP ISU_SALES_STATS_CREATE_MCESTA Function Module for INTERNAL: Supply Communication Structure MCESTA from Bill Document
ISU_SALES_STATS_CREATE_MCESTA is a standard isu sales stats create mcesta SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Supply Communication Structure MCESTA from Bill Document 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 isu sales stats create mcesta FM, simply by entering the name ISU_SALES_STATS_CREATE_MCESTA into the relevant SAP transaction such as SE37 or SE38.
Function Group: E70E
Program Name: SAPLE70E
Main Program: SAPLE70E
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_SALES_STATS_CREATE_MCESTA 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 'ISU_SALES_STATS_CREATE_MCESTA'"INTERNAL: Supply Communication Structure MCESTA from Bill Document.
EXPORTING
X_BILL = "
* X_LFDNR = "
* X_XCANC = ' ' "
* X_SIMULATION = "Indicator: billing simulation
* X_SIMPER_FROM = "Start of Simulation Period
* X_SIMPER_TO = "End of simulation period
* X_EVER = "IS-U Contract
TABLES
* TY_MCESTA = "
* T_EANL = "Generated Table for View V_EANL
EXCEPTIONS
GENERAL_FAULT = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLE70E_001 IS-U: Enhance communication structure MCVU_ESTA
IMPORTING Parameters details for ISU_SALES_STATS_CREATE_MCESTA
X_BILL -
Data type: ISU2A_BILL_DOCOptional: No
Call by Reference: Yes
X_LFDNR -
Data type: ERCHC-LFDNROptional: Yes
Call by Reference: Yes
X_XCANC -
Data type: EITESTA-XCANCDefault: ' '
Optional: Yes
Call by Reference: Yes
X_SIMULATION - Indicator: billing simulation
Data type: ERCH-SIMULATIONOptional: Yes
Call by Reference: Yes
X_SIMPER_FROM - Start of Simulation Period
Data type: TE537-SIMPER_FROMOptional: Yes
Call by Reference: Yes
X_SIMPER_TO - End of simulation period
Data type: TE537-SIMPER_TOOptional: Yes
Call by Reference: Yes
X_EVER - IS-U Contract
Data type: EVEROptional: Yes
Call by Reference: Yes
TABLES Parameters details for ISU_SALES_STATS_CREATE_MCESTA
TY_MCESTA -
Data type: MCVU_ESTAOptional: Yes
Call by Reference: Yes
T_EANL - Generated Table for View V_EANL
Data type: V_EANLOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
GENERAL_FAULT - General Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_SALES_STATS_CREATE_MCESTA 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_x_bill | TYPE ISU2A_BILL_DOC, " | |||
| lt_ty_mcesta | TYPE STANDARD TABLE OF MCVU_ESTA, " | |||
| lv_general_fault | TYPE MCVU_ESTA, " | |||
| lt_t_eanl | TYPE STANDARD TABLE OF V_EANL, " | |||
| lv_x_lfdnr | TYPE ERCHC-LFDNR, " | |||
| lv_x_xcanc | TYPE EITESTA-XCANC, " ' ' | |||
| lv_x_simulation | TYPE ERCH-SIMULATION, " | |||
| lv_x_simper_from | TYPE TE537-SIMPER_FROM, " | |||
| lv_x_simper_to | TYPE TE537-SIMPER_TO, " | |||
| lv_x_ever | TYPE EVER. " |
|   CALL FUNCTION 'ISU_SALES_STATS_CREATE_MCESTA' "INTERNAL: Supply Communication Structure MCESTA from Bill Document |
| EXPORTING | ||
| X_BILL | = lv_x_bill | |
| X_LFDNR | = lv_x_lfdnr | |
| X_XCANC | = lv_x_xcanc | |
| X_SIMULATION | = lv_x_simulation | |
| X_SIMPER_FROM | = lv_x_simper_from | |
| X_SIMPER_TO | = lv_x_simper_to | |
| X_EVER | = lv_x_ever | |
| TABLES | ||
| TY_MCESTA | = lt_ty_mcesta | |
| T_EANL | = lt_t_eanl | |
| EXCEPTIONS | ||
| GENERAL_FAULT = 1 | ||
| . " ISU_SALES_STATS_CREATE_MCESTA | ||
ABAP code using 7.40 inline data declarations to call FM ISU_SALES_STATS_CREATE_MCESTA
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 LFDNR FROM ERCHC INTO @DATA(ld_x_lfdnr). | ||||
| "SELECT single XCANC FROM EITESTA INTO @DATA(ld_x_xcanc). | ||||
| DATA(ld_x_xcanc) | = ' '. | |||
| "SELECT single SIMULATION FROM ERCH INTO @DATA(ld_x_simulation). | ||||
| "SELECT single SIMPER_FROM FROM TE537 INTO @DATA(ld_x_simper_from). | ||||
| "SELECT single SIMPER_TO FROM TE537 INTO @DATA(ld_x_simper_to). | ||||
Search for further information about these or an SAP related objects