SAP QEGR_HISTOGRAM Function Module for Graphic Display of a Frequency Distribution (Histogram)









QEGR_HISTOGRAM is a standard qegr histogram SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Graphic Display of a Frequency Distribution (Histogram) 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 qegr histogram FM, simply by entering the name QEGR_HISTOGRAM into the relevant SAP transaction such as SE37 or SE38.

Function Group: QEGR
Program Name: SAPLQEGR
Main Program: SAPLQEGR
Appliation area: Q
Release date: 22-Jan-1996
Mode(Normal, Remote etc): Normal Function Module
Update:



Function QEGR_HISTOGRAM 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 'QEGR_HISTOGRAM'"Graphic Display of a Frequency Distribution (Histogram)
EXPORTING
I_HISTOGRAM_DATA = "Histogram data
* I_HISTOGRAM_CLASS_VAR = "

IMPORTING
E_GRAPHICS_STILL_ACTIVE = "Graphic is still active ('X' = yes)
E_GRAPHICS_FCODE = "

EXCEPTIONS
MISSING_DATA = 1 WRONG_DATA = 2 PROGRAMMING_ERROR = 3
.



IMPORTING Parameters details for QEGR_HISTOGRAM

I_HISTOGRAM_DATA - Histogram data

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

I_HISTOGRAM_CLASS_VAR -

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

EXPORTING Parameters details for QEGR_HISTOGRAM

E_GRAPHICS_STILL_ACTIVE - Graphic is still active ('X' = yes)

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

E_GRAPHICS_FCODE -

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

EXCEPTIONS details

MISSING_DATA - Missing data

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

WRONG_DATA - Incorrect data

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

PROGRAMMING_ERROR - Unforseen programming error

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

Copy and paste ABAP code example for QEGR_HISTOGRAM 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_missing_data  TYPE STRING, "   
lv_i_histogram_data  TYPE QEGR_HISTOGRAM, "   
lv_e_graphics_still_active  TYPE QM00-QKZ, "   
lv_wrong_data  TYPE QM00, "   
lv_e_graphics_fcode  TYPE T185-FCODE, "   
lv_i_histogram_class_var  TYPE QM00-QKZ, "   
lv_programming_error  TYPE QM00. "   

  CALL FUNCTION 'QEGR_HISTOGRAM'  "Graphic Display of a Frequency Distribution (Histogram)
    EXPORTING
         I_HISTOGRAM_DATA = lv_i_histogram_data
         I_HISTOGRAM_CLASS_VAR = lv_i_histogram_class_var
    IMPORTING
         E_GRAPHICS_STILL_ACTIVE = lv_e_graphics_still_active
         E_GRAPHICS_FCODE = lv_e_graphics_fcode
    EXCEPTIONS
        MISSING_DATA = 1
        WRONG_DATA = 2
        PROGRAMMING_ERROR = 3
. " QEGR_HISTOGRAM




ABAP code using 7.40 inline data declarations to call FM QEGR_HISTOGRAM

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 QKZ FROM QM00 INTO @DATA(ld_e_graphics_still_active).
 
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_e_graphics_fcode).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_histogram_class_var).
 
 


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!