SAP QEGR_RUN_CHART Function Module for Graphical representation of a run-chart









QEGR_RUN_CHART is a standard qegr run chart SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Graphical representation of a run-chart 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 run chart FM, simply by entering the name QEGR_RUN_CHART into the relevant SAP transaction such as SE37 or SE38.

Function Group: QEGR
Program Name: SAPLQEGR
Main Program: SAPLQEGR
Appliation area: Q
Release date: 15-Oct-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function QEGR_RUN_CHART 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_RUN_CHART'"Graphical representation of a run-chart
EXPORTING
I_RUN_CHART_DATA = "Data for run-chart
* I_TIME_AXIS = 'X' "At first call-up with time axis ('X' = yes)
* I_GUIDE_THE_EYE = 'X' "Guide line ('X' = yes)
* I_PAGE_SIZE = 20 "Entries for each side with object axis

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

EXCEPTIONS
MISSING_DATA = 1 WRONG_DATA = 2 PROGRAMMING_ERROR = 3
.



IMPORTING Parameters details for QEGR_RUN_CHART

I_RUN_CHART_DATA - Data for run-chart

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

I_TIME_AXIS - At first call-up with time axis ('X' = yes)

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

I_GUIDE_THE_EYE - Guide line ('X' = yes)

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

I_PAGE_SIZE - Entries for each side with object axis

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

EXPORTING Parameters details for QEGR_RUN_CHART

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)

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_RUN_CHART 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_run_chart_data  TYPE QEGR_RUN_CHART, "   
lv_e_graphics_still_active  TYPE QM00-QKZ, "   
lv_wrong_data  TYPE QM00, "   
lv_i_time_axis  TYPE QM00-QKZ, "   'X'
lv_i_guide_the_eye  TYPE QM00-QKZ, "   'X'
lv_programming_error  TYPE QM00, "   
lv_i_page_size  TYPE I. "   20

  CALL FUNCTION 'QEGR_RUN_CHART'  "Graphical representation of a run-chart
    EXPORTING
         I_RUN_CHART_DATA = lv_i_run_chart_data
         I_TIME_AXIS = lv_i_time_axis
         I_GUIDE_THE_EYE = lv_i_guide_the_eye
         I_PAGE_SIZE = lv_i_page_size
    IMPORTING
         E_GRAPHICS_STILL_ACTIVE = lv_e_graphics_still_active
    EXCEPTIONS
        MISSING_DATA = 1
        WRONG_DATA = 2
        PROGRAMMING_ERROR = 3
. " QEGR_RUN_CHART




ABAP code using 7.40 inline data declarations to call FM QEGR_RUN_CHART

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 QKZ FROM QM00 INTO @DATA(ld_i_time_axis).
DATA(ld_i_time_axis) = 'X'.
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_guide_the_eye).
DATA(ld_i_guide_the_eye) = 'X'.
 
 
DATA(ld_i_page_size) = 20.
 


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!