Ansicht
Dokumentation
QINT_EXAMPLE_USER_EXIT - Example: transferring measured values to results recording via a user exit
CPI1466 during Backup rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
Functionality
This is the prototype for a user exit in results recording that shows you how to interface measurement equipment and PC applications. You can copy the function module and adapt it to your own needs, as necessary.
In this example, a measurement equipment driver refers to a function module that communicates with an external driver or PC application. The system uses the data structures of the QM-IDI interface as the parameters for the measurement equipment driver. The system transmits the download structures QAIVC and QAIMV completely filled with data and prepares the upload structures QAISE, QAISR and QAIMR with the record class, confirmation number, sample number and item number. In this way, the task of the measurement equipment driver is reduced to entering the inspection result.
The example is set up as follows:
- Identifying the measurement equipment driver
- Creating the download structures
- Preparing the upload structures
- Calling up the measurement equipment driver
- Transferring the results
In addition to connecting the measurement equipment, the system must also find the measurement equipment driver. In the example, this task is carried out by the function module
QINT_EXAMPLE_INIT_DRIVER.
This
function module uses the additional information fields in the characteristic for storing the measurement equipment driver and its parameters. If these fields are not filled, the user exit processing is cancelled.
Otherwise, the system determines the inspection specifications using the function module QINT_FILL_DOWNLOAD_STRUCTURES and creates the confirmation records using the function module QINT_FILL_UPLOAD_STRUCTURES.
The measurement equipment driver can operate on the same system or on a non-SAP system (for example, on a PC). It supplements the upload structures with the inspection results, before the results are transmitted to the data structures in results recording using the function module QINT_PUT_ALL_DATA_VALUES.
Notes
Examples of drivers:
QINT_GET_RFC_DATA | Receives data from the RFC server program |
QINT_GET_PCFILE_DATA | Reads code, code group and inspection description |
from PC file | |
QINT_GET_EXCEL_DATA | Receives single value from Excel |
Further information
User exits in results recording
QM-IDI Interface
Parameters
I_PROBENRI_QAKLR
I_QALS
I_QAMKR
I_QAPO
I_QASER
I_QASPR
I_SERIALNR
I_STUECKNR
T_QAKLTAB
T_QAMKRTAB
T_QASETAB
T_QASPTAB
Exceptions
Function Group
QINTAddresses (Business Address Services) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 3819 Date: 20240605 Time: 093441 sap01-206 ( 70 ms )