Ansicht
Dokumentation

EXIT_SAPLQMSP_002 - Customer Exit for Characteristic Valuation of Batch Classification

EXIT_SAPLQMSP_002 - Customer Exit for Characteristic Valuation of Batch Classification

BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module EXIT_SAPLQMSP_002 (customer enhancement '002'), which is listed in this enhancement, is called up in the modules QMSP_VALUATE_CHARACTERISTIC and QMSP_COMPARE_QM_BATCH_VALUES.

Module QMSP_VALUATE_CHARACTERISTIC deals with the classification of the batch based on the measurement results for QM.
It is called up at the following times:

  • When making the usage decision
  • When assigning partial lots to batches during an inspection with inspection points

The interface for customer enhancement '002' contains the following:

  • I_MATNR: Material
  • I_CHARG: Batch that should be classified
  • I_WERKS: Plant for the batch
  • I_OVERWRITE: Indicator for whether existing values should be overwritten in the batch
  • E_OVERWRITE: Indicator for whether overwrite function is allowed (set in the customer enhancement)
  • T_QMSPTAB: In the standard system, this table contains all QMSP records for material I_MATNR in plant I_WERKS, for which the field ATINN is not initial (key for the class characteristic).
    Results are entered for the corresponding class characteristics using the QM inspection. Only the fields ATINN, MKMNR, WERKS, and VERSION are currently processed from this table.
  • T_QAMKRTAB: In the standard system, this table contains characteristics intended for inspection with summarized information (for example, mean values).

You can only transfer measurement results to classification for master inspection characteristics that are available in T_QAMKRTAB and T_QMSPTAB (with a reference to a class characteristic for the batch class).
You must enter data in the following fields for an automatic transfer to classification:

  • T_QAMKRTAB-QPMK_WERKS: Plant for the master inspection characteristic
  • T_QAMKRTAB-VERWMEKM: Identifier for the master inspection characteristic
  • T_QAMKRTAB-MKVERSION: Master inspection characteristic version
  • T_QAMKRTAB-MITTELWNI: Must be set to 'X'
  • T_QAMKRTAB-MITTELWERT: Value that should be transferred to classification
  • T_QAMKRTAB-MASSEINHSW: Unit of measurement
  • T_QAMKRTAB-STATUSR: Must be set to '5'

All other fields are not relevant.

The module QMSP_COMPARE_QM_BATCH_VALUES compares the measured values determined during an inspection with the values already available in batch classification. It is called up at the same time as the module QMSP_VALUATE_CHARACTERISTIC.

An example is defined in member LXQMSF02.
In this example, the following two variants for the standard are shown:

  • In the standard system, table T_QMSPTAB contains the entries from table QMSP (material specification) for which the field ATINN is not initial.
    However, in this example for the customer exit, table T_QMSPTAB is made for all master inspection characteristics for which there is a link to class characteristics (independent of the material specification).
    If you are working with several master inspection characteristics, this may affect the system performance: For each master inspection characteristic, the master inspection characteristic file QPMK must be read again.
  • In the standard system, the mean value for a characteristic is transferred to batch classification.
    In the second part of the example, the relevant table T_QAMKRTAB is extended for the case that each of the single values measured by you must be transferred to classification. If you maintain a lot of single values in the inspection, you should remember that table T_QAMKRTAB can become very large.





Parameters

E_OVERWRITE
I_CHARG
I_MATNR
I_OVERWRITE
I_WERKS
T_QAMKRTAB
T_QMSPTAB

Exceptions

Function Group

XQMS

General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 4475 Date: 20240523 Time: 070927     sap01-206 ( 74 ms )