SAP QEGR_HISTOGRAM_FOR_QAKL Function Module for Histogram for Classed Inspection Results
QEGR_HISTOGRAM_FOR_QAKL is a standard qegr histogram for qakl 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 Classed Inspection 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 qakl FM, simply by entering the name QEGR_HISTOGRAM_FOR_QAKL 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_QAKL 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_QAKL'"Histogram for Classed Inspection Results.
EXPORTING
* I_MERKNR = "Characteristic number in the operation
* I_TOLERANZOB = "Upper specification limit
* 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_KLASBREITE = "Class range
* I_SCALING = 'P' "Presentation (A=absolute, P=percentage, R=relative)
* I_TOLOBNI = "Upper specification limit active ('X'=yes)
IMPORTING
E_GRAPHICS_STILL_ACTIVE = "Graphic is still active ('X' = yes)
TABLES
* T_QAKLTAB = "Classified original values 1st variant
* T_QAKLRTAB = "Classified original values 2nd variant
* T_QASKTAB = "Classified original values 3rd variant
EXCEPTIONS
MISSING_DATA = 1 INCONSISTENT_DATA = 2 PROGRAMMING_ERROR = 3
IMPORTING Parameters details for QEGR_HISTOGRAM_FOR_QAKL
I_MERKNR - Characteristic number in the operation
Data type: QAMV-MERKNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_TOLERANZOB - Upper specification limit
Data type: QAMV-TOLERANZOBOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SOLLWNI - Target value/ nominal value active ('X'=yes)
Data type: QAMV-SOLLWNIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SOLLWERT - Target value/ nominal value
Data type: QAMV-SOLLWERTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TOLUNNI - Lower specification limit active ('X'=yes)
Data type: QAMV-TOLUNNIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TOLERANZUN - Lower specification limit
Data type: QAMV-TOLERANZUNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KURZTEXT - Description of the Characteristic
Data type: QAMV-KURZTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KTEXTMAT - Description of the material
Data type: QALS-KTEXTMATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MASSEINHSW3 - Characteristic unit (internal format)
Data type: QAMV-MASSEINHSWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MASSEINHSW6 - Characteristic unit (display format)
Data type: QAMKR-MASSEINHSWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STELLEN - Number of decimal places
Data type: QAMV-STELLENOptional: No
Call by Reference: No ( called with pass by value option)
I_KLASBREITE - Class range
Data type: QAMV-KLASBREITEOptional: No
Call by Reference: No ( called with pass by value option)
I_SCALING - Presentation (A=absolute, P=percentage, R=relative)
Data type: QEGR_SCALINGDefault: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TOLOBNI - Upper specification limit active ('X'=yes)
Data type: QAMV-TOLOBNIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QEGR_HISTOGRAM_FOR_QAKL
E_GRAPHICS_STILL_ACTIVE - Graphic is still active ('X' = yes)
Data type: QM00-QKZOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for QEGR_HISTOGRAM_FOR_QAKL
T_QAKLTAB - Classified original values 1st variant
Data type: QAKLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_QAKLRTAB - Classified original values 2nd variant
Data type: QAKLROptional: Yes
Call by Reference: No ( called with pass by value option)
T_QASKTAB - Classified original values 3rd variant
Data type: QASKOptional: 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_QAKL 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_qakltab | TYPE STANDARD TABLE OF QAKL, " | |||
lv_missing_data | TYPE QAKL, " | |||
lv_e_graphics_still_active | TYPE QM00-QKZ, " | |||
lv_i_toleranzob | TYPE QAMV-TOLERANZOB, " | |||
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_qaklrtab | TYPE STANDARD TABLE OF QAKLR, " | |||
lv_inconsistent_data | TYPE QAKLR, " | |||
lt_t_qasktab | TYPE STANDARD TABLE OF QASK, " | |||
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_klasbreite | TYPE QAMV-KLASBREITE, " | |||
lv_i_scaling | TYPE QEGR_SCALING, " 'P' | |||
lv_i_tolobni | TYPE QAMV-TOLOBNI. " |
  CALL FUNCTION 'QEGR_HISTOGRAM_FOR_QAKL' "Histogram for Classed Inspection Results |
EXPORTING | ||
I_MERKNR | = lv_i_merknr | |
I_TOLERANZOB | = lv_i_toleranzob | |
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_KLASBREITE | = lv_i_klasbreite | |
I_SCALING | = lv_i_scaling | |
I_TOLOBNI | = lv_i_tolobni | |
IMPORTING | ||
E_GRAPHICS_STILL_ACTIVE | = lv_e_graphics_still_active | |
TABLES | ||
T_QAKLTAB | = lt_t_qakltab | |
T_QAKLRTAB | = lt_t_qaklrtab | |
T_QASKTAB | = lt_t_qasktab | |
EXCEPTIONS | ||
MISSING_DATA = 1 | ||
INCONSISTENT_DATA = 2 | ||
PROGRAMMING_ERROR = 3 | ||
. " QEGR_HISTOGRAM_FOR_QAKL |
ABAP code using 7.40 inline data declarations to call FM QEGR_HISTOGRAM_FOR_QAKL
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 TOLERANZOB FROM QAMV INTO @DATA(ld_i_toleranzob). | ||||
"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). | ||||
"SELECT single KLASBREITE FROM QAMV INTO @DATA(ld_i_klasbreite). | ||||
DATA(ld_i_scaling) | = 'P'. | |||
"SELECT single TOLOBNI FROM QAMV INTO @DATA(ld_i_tolobni). | ||||
Search for further information about these or an SAP related objects