Ansicht
Dokumentation
QRKD_CONTROL_CHART - Call-up of a quality control chart
Fill RESBD Structure from EBP Component Structure General Material DataThis documentation is copyright by SAP AG.
Functionality
With this function module you can call a quality control chart and have it displayed graphically on your screen. From here you can trigger further functions, such as calculating new control limits. The control chart and its tracks must exist in the database table. The control variables are determined from the appropriate inspection results. From the interface you can transmit additional results or corrected values.
Example
The following example shows a simple call of a quality control chart.
If you want to save changes that were made to the chart, you have to close the logical unit of work at a suitable point with a COMMIT WORK.
The function module also ensures that graphic windows remain active in the background. If you call the function module QRKD_CANCEL_GRAPHICS you can later close these open windows and their dependent programs.
DATA:
L_QRKNR LIKE QASH-QRKNR,
L_COMMIT_WORK LIKE QM00-QKZ,
L_CHART_ACTIVE LIKE QM00-QKZ.
...
CALL FUNCTION 'QRKD_CONTROL_CHART'
EXPORTING
I_QRKNR = L_QRKNR
IMPORTING
E_COMMIT_WORK = L_COMMIT_WORK
E_CONTROL_CHART_ACTIVE = L_CHART_ACTIVE.
...
IF NOT L_COMMIT_WORK IS INITIAL.
COMMIT WORK.
ENDIF.
...
IF NOT L_CHART_ACTIVE IS INITIAL.
CALL FUNCTION 'QRKD_CANCEL_GRAPHICS'.
ENDIF.
Notes
This function module is the external interface to the quality control charts. From here you can call further function modules of this and other function groups. Internal data is held as long as possible for further calls.
Further information
Control charts in QM are described in the Implementation Guide and in the QM documentation.
Parameters
C_DATA_TABC_PARAMS_TAB
E_COMMIT_WORK
E_CONTROL_CHART_ACTIVE
E_CONTROL_FUNCTION_PAI
E_GRAPHICS_OCX_ACTIVE
I_DISPLAY_MODE
I_NEW_STATUS
I_NO_GRAPHICS
I_OLD_GRAPHICS
I_QRKNR
I_STRUCTURE_OF_RESULTS
T_CUAEXCLTAB
T_RESULTSTAB
Exceptions
FOREIGN_LOCKINVALID_STRUCTURE
NO_AUTHORIZATION
NO_ENTRY_IN_QASH
NO_ENTRY_IN_QAST
NO_ENTRY_IN_QPSH
NO_ENTRY_IN_QPST
PROGRAMMING_ERROR
Function Group
QRKDFill RESBD Structure from EBP Component Structure Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 3824 Date: 20240523 Time: 125518 sap01-206 ( 51 ms )