SAP QEGR_HISTOGRAM_FOR_QASE Function Module for Histogram for Quantitative Single Results









QEGR_HISTOGRAM_FOR_QASE is a standard qegr histogram for qase SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Histogram for Quantitative Single Results 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 for qase FM, simply by entering the name QEGR_HISTOGRAM_FOR_QASE 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_FOR_QASE 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_FOR_QASE'"Histogram for Quantitative Single Results
EXPORTING
* I_MERKNR = "Characteristic number in the operation
* I_SOLLWNI = "Target value/ nominal value active ('X'=yes)
* I_SOLLWERT = "Target value/ nominal value
* I_TOLUNNI = "Lower specification limit active ('X'=yes)
* I_TOLERANZUN = "Lower specification limit
* I_KURZTEXT = "Description of the Characteristic
* I_KTEXTMAT = "Description of the material
* I_MASSEINHSW3 = "Characteristic unit (internal format)
* I_MASSEINHSW6 = "Characteristic unit (display format)
I_STELLEN = "Number of decimal places
* I_SCALING = 'P' "Presentation (A=absolute, P=percentage, R=relative)
* I_TOLOBNI = "Upper specification limit active ('X'=yes)
* I_TOLERANZOB = "Upper specification limit

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

TABLES
* T_QASETAB = "Numerical original value 1st variant
* T_QASERTAB = "Numerical original value 2nd variant

EXCEPTIONS
MISSING_DATA = 1 INCONSISTENT_DATA = 2 PROGRAMMING_ERROR = 3
.



IMPORTING Parameters details for QEGR_HISTOGRAM_FOR_QASE

I_MERKNR - Characteristic number in the operation

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

I_SOLLWNI - Target value/ nominal value active ('X'=yes)

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

I_SOLLWERT - Target value/ nominal value

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

I_TOLUNNI - Lower specification limit active ('X'=yes)

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

I_TOLERANZUN - Lower specification limit

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

I_KURZTEXT - Description of the Characteristic

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

I_KTEXTMAT - Description of the material

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

I_MASSEINHSW3 - Characteristic unit (internal format)

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

I_MASSEINHSW6 - Characteristic unit (display format)

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

I_STELLEN - Number of decimal places

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

I_SCALING - Presentation (A=absolute, P=percentage, R=relative)

Data type: QEGR_SCALING
Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TOLOBNI - Upper specification limit active ('X'=yes)

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

I_TOLERANZOB - Upper specification limit

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

EXPORTING Parameters details for QEGR_HISTOGRAM_FOR_QASE

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)

TABLES Parameters details for QEGR_HISTOGRAM_FOR_QASE

T_QASETAB - Numerical original value 1st variant

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

T_QASERTAB - Numerical original value 2nd variant

Data type: QASER
Optional: Yes
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)

INCONSISTENT_DATA - Inconsistent 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_FOR_QASE 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_merknr  TYPE QAMV-MERKNR, "   
lt_t_qasetab  TYPE STANDARD TABLE OF QASE, "   
lv_missing_data  TYPE QASE, "   
lv_e_graphics_still_active  TYPE QM00-QKZ, "   
lv_i_sollwni  TYPE QAMV-SOLLWNI, "   
lv_i_sollwert  TYPE QAMV-SOLLWERT, "   
lv_i_tolunni  TYPE QAMV-TOLUNNI, "   
lv_i_toleranzun  TYPE QAMV-TOLERANZUN, "   
lv_i_kurztext  TYPE QAMV-KURZTEXT, "   
lt_t_qasertab  TYPE STANDARD TABLE OF QASER, "   
lv_inconsistent_data  TYPE QASER, "   
lv_i_ktextmat  TYPE QALS-KTEXTMAT, "   
lv_programming_error  TYPE QALS, "   
lv_i_masseinhsw3  TYPE QAMV-MASSEINHSW, "   
lv_i_masseinhsw6  TYPE QAMKR-MASSEINHSW, "   
lv_i_stellen  TYPE QAMV-STELLEN, "   
lv_i_scaling  TYPE QEGR_SCALING, "   'P'
lv_i_tolobni  TYPE QAMV-TOLOBNI, "   
lv_i_toleranzob  TYPE QAMV-TOLERANZOB. "   

  CALL FUNCTION 'QEGR_HISTOGRAM_FOR_QASE'  "Histogram for Quantitative Single Results
    EXPORTING
         I_MERKNR = lv_i_merknr
         I_SOLLWNI = lv_i_sollwni
         I_SOLLWERT = lv_i_sollwert
         I_TOLUNNI = lv_i_tolunni
         I_TOLERANZUN = lv_i_toleranzun
         I_KURZTEXT = lv_i_kurztext
         I_KTEXTMAT = lv_i_ktextmat
         I_MASSEINHSW3 = lv_i_masseinhsw3
         I_MASSEINHSW6 = lv_i_masseinhsw6
         I_STELLEN = lv_i_stellen
         I_SCALING = lv_i_scaling
         I_TOLOBNI = lv_i_tolobni
         I_TOLERANZOB = lv_i_toleranzob
    IMPORTING
         E_GRAPHICS_STILL_ACTIVE = lv_e_graphics_still_active
    TABLES
         T_QASETAB = lt_t_qasetab
         T_QASERTAB = lt_t_qasertab
    EXCEPTIONS
        MISSING_DATA = 1
        INCONSISTENT_DATA = 2
        PROGRAMMING_ERROR = 3
. " QEGR_HISTOGRAM_FOR_QASE




ABAP code using 7.40 inline data declarations to call FM QEGR_HISTOGRAM_FOR_QASE

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 MERKNR FROM QAMV INTO @DATA(ld_i_merknr).
 
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_e_graphics_still_active).
 
"SELECT single SOLLWNI FROM QAMV INTO @DATA(ld_i_sollwni).
 
"SELECT single SOLLWERT FROM QAMV INTO @DATA(ld_i_sollwert).
 
"SELECT single TOLUNNI FROM QAMV INTO @DATA(ld_i_tolunni).
 
"SELECT single TOLERANZUN FROM QAMV INTO @DATA(ld_i_toleranzun).
 
"SELECT single KURZTEXT FROM QAMV INTO @DATA(ld_i_kurztext).
 
 
 
"SELECT single KTEXTMAT FROM QALS INTO @DATA(ld_i_ktextmat).
 
 
"SELECT single MASSEINHSW FROM QAMV INTO @DATA(ld_i_masseinhsw3).
 
"SELECT single MASSEINHSW FROM QAMKR INTO @DATA(ld_i_masseinhsw6).
 
"SELECT single STELLEN FROM QAMV INTO @DATA(ld_i_stellen).
 
DATA(ld_i_scaling) = 'P'.
 
"SELECT single TOLOBNI FROM QAMV INTO @DATA(ld_i_tolobni).
 
"SELECT single TOLERANZOB FROM QAMV INTO @DATA(ld_i_toleranzob).
 


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!