SAP ME_STATISTICS_DISPLAY Function Module for Display LIS statistical data in purchasing









ME_STATISTICS_DISPLAY is a standard me statistics display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display LIS statistical data in purchasing 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 me statistics display FM, simply by entering the name ME_STATISTICS_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

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



Function ME_STATISTICS_DISPLAY 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 'ME_STATISTICS_DISPLAY'"Display LIS statistical data in purchasing
EXPORTING
I_CUATX = "Screen heading
* I_WERKS = ' ' "Plant
I_EKORG = "Purchasing organization
* I_ESOKZ = ' ' "Info type
* I_INFNR = ' ' "Info record
* I_LAND1 = ' ' "Country
* I_LIFNR = ' ' "Vendor
* I_MATKL = ' ' "Material group
* I_MATNR = ' ' "Material
I_PERKZ = "Period indicator
.



IMPORTING Parameters details for ME_STATISTICS_DISPLAY

I_CUATX - Screen heading

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

I_WERKS - Plant

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

I_EKORG - Purchasing organization

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

I_ESOKZ - Info type

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

I_INFNR - Info record

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

I_LAND1 - Country

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

I_LIFNR - Vendor

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

I_MATKL - Material group

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

I_MATNR - Material

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

I_PERKZ - Period indicator

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

Copy and paste ABAP code example for ME_STATISTICS_DISPLAY 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_i_cuatx  TYPE STRING, "   
lv_i_werks  TYPE S012-WERKS, "   SPACE
lv_i_ekorg  TYPE S012-EKORG, "   
lv_i_esokz  TYPE S012-ESOKZ, "   SPACE
lv_i_infnr  TYPE S012-INFNR, "   SPACE
lv_i_land1  TYPE S012-LAND1, "   SPACE
lv_i_lifnr  TYPE S012-LIFNR, "   SPACE
lv_i_matkl  TYPE S012-MATKL, "   SPACE
lv_i_matnr  TYPE S012-MATNR, "   SPACE
lv_i_perkz  TYPE S012. "   

  CALL FUNCTION 'ME_STATISTICS_DISPLAY'  "Display LIS statistical data in purchasing
    EXPORTING
         I_CUATX = lv_i_cuatx
         I_WERKS = lv_i_werks
         I_EKORG = lv_i_ekorg
         I_ESOKZ = lv_i_esokz
         I_INFNR = lv_i_infnr
         I_LAND1 = lv_i_land1
         I_LIFNR = lv_i_lifnr
         I_MATKL = lv_i_matkl
         I_MATNR = lv_i_matnr
         I_PERKZ = lv_i_perkz
. " ME_STATISTICS_DISPLAY




ABAP code using 7.40 inline data declarations to call FM ME_STATISTICS_DISPLAY

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 WERKS FROM S012 INTO @DATA(ld_i_werks).
DATA(ld_i_werks) = ' '.
 
"SELECT single EKORG FROM S012 INTO @DATA(ld_i_ekorg).
 
"SELECT single ESOKZ FROM S012 INTO @DATA(ld_i_esokz).
DATA(ld_i_esokz) = ' '.
 
"SELECT single INFNR FROM S012 INTO @DATA(ld_i_infnr).
DATA(ld_i_infnr) = ' '.
 
"SELECT single LAND1 FROM S012 INTO @DATA(ld_i_land1).
DATA(ld_i_land1) = ' '.
 
"SELECT single LIFNR FROM S012 INTO @DATA(ld_i_lifnr).
DATA(ld_i_lifnr) = ' '.
 
"SELECT single MATKL FROM S012 INTO @DATA(ld_i_matkl).
DATA(ld_i_matkl) = ' '.
 
"SELECT single MATNR FROM S012 INTO @DATA(ld_i_matnr).
DATA(ld_i_matnr) = ' '.
 
 


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!