Show TOC

Process documentationIntegration of Quality Inspection Lot

 

You can use this process to transfer quality inspection data between SAP ERP and SAP ME to support the following scenarios:

  • 100% Quality Inspection

  • Less than 100% Quality Inspection (BLOCK_ORDER=YES)

  • Less than 100% Quality Inspection (BLOCK_ORDER=NO)

Prerequisites

SAP ME
  • In Service Extension Maintenance, you have enabled the QI_ERP_EXT and SAPMEINT_DB_TRANS service extensions for the processInspectionGroup method of the InspectionService service (see Service Extension Maintenance).

  • In POD Maintenance, you have created a POD button that has the PR510 (Complete) and QM030 (Sample Inspection Lot) activities assigned to it. In this topic, we refer to this button as the Sample Inspection Lot.

    We recommend that you configure the Sample Inspection Lot (QM030) POD plug-in to open it as a popup.

  • In POD Maintenance, you have verified that your POD Work List contains the Info column to display the Data Collection (DC) icon for sample SFC numbers.

    We recommend that you configure the Log NC (NC_DATA_ENTRY) POD plug-in to open it as a popup.

Process

100% Quality Inspection

In this scenario, Inspection Sample Size equals the Build Qty of the Production shop order (see Shop Order Maintenance).

  1. In SAP ERP, you create a routing and assign the inspection characteristics with the Sampling procedure = 100% or ALLITEMS to one or more operations (see Start of the navigation path Operations Next navigation step Inspection Characteristics End of the navigation path in transaction CA01).

  2. You create a production order (transaction CO01) or update a production order (transaction CO02) using the routing created in step 1.

    An inspection lot of inspection type 03 is automatically created and assigned to the production order on release.

  3. SAP ERP sends the production order IDoc message LOIPRO to SAP MII. Here message mapping takes place.

    SAPMEINT creates a Production shop order with the quality inspection lot, the routing, and the 100% Quality Inspection DC group for each operation with 100% inspection characteristics based on data received from SAP ERP (see Transfer of Production Order with Quality Inspection Lot).

  4. In SAP ME, you release the shop order in Shop Order Release (see Shop Order Release).

    The system generates the SFC numbers.

  5. You start and complete operations until you reach the inspection operation.

  6. At the inspection operation to which the 100% Quality Inspection DC group is attached, you select one or more SFC numbers and choose Start.

  7. When you select one or more SFC numbers and choose the Sample Inspection Lot POD button, SAP ME opens the Sample Inspection Lot plug-in (see Sample Inspection Lot).

  8. When you choose OK in the Sample Inspection Lot (QM030), the SFC numbers remain in the Active status at the current operation.

  9. You enter parameter values for each SFC number using the DC Collect.

  10. When you choose Save in the Data Collection Entry, SAP ME evaluates each parametric value collected for this SFC number. If any critical inspection characteristic fails, this sample is rejected. If there are no failed critical inspection characteristics, the system compares the number of passed and failed normal characteristics. If the number of passed normal characteristics is greater than the number of failed characteristics, this sample is accepted.

    If the inspection result for this SFC number is Sample Accepted, you can complete this SFC number at this operation.

    If the inspection result for this SFC number is Sample Rejected, the SFC number remains at this operation. SAP ME automatically opens the Log NC plug-in and allows you to log an NC code against this SFC number.

    Note Note

    You can change the DC500's AUTO_NC_100QI rule setting to YES. In this case, SAP ME will automatically log the QM_INSP_REJECT NC code against an SFC number that has the Sample Rejected inspection result, disposition this SFC number to the INSPECTION_REJECTED routing, and place it on hold. For more information, see Data Collection Entry.

    End of the note.
  11. SAPMEINT sends the parameter values and quality inspection result for this SFC number to SAP ERP (QM) using the message qualityInspectionMeEvalResultRecording.

    In SAP ERP, you can view a result for each characteristic in the Valuation column on the Record Results: Characteristic Overview screen (transaction QE51N).

Less than 100% Quality Inspection (BLOCK_ORDER=YES)

In this scenario, the following applies:

  • The Inspection Sample Size is less than the Build Qty of the Production shop order.

  • The QM030 activity rule BLOCK_ORDER is set to YES.

For more information, see BLOCK_ORDER in Sample Inspection Lot and Block SFCs Until Inspection Finished in Routing Step Properties.

  1. In SAP ERP, you create a routing and assign inspection characteristics to one or more operations ( Start of the navigation path Operations Next navigation step Inspection Characteristics End of the navigation path in transaction CA01).

  2. You create a production order (transaction CO01) or update a production order (transaction CO02) using the created routing.

    An inspection lot of inspection type 03 is automatically created and assigned to the production order on release.

  3. SAP ERP sends the production order IDoc message LOIPRO to SAP MII. Here message mapping takes place.

    SAPMEINT creates a Production shop order with the quality inspection data, the routing, and the DC group for each operation with inspection characteristics based on data received from SAP ERP (see Transfer of Production Order with Quality Inspection Lot).

  4. In SAP ME, you release the shop order in Shop Order Release (see Shop Order Release).

    The system generates the SFC numbers.

  5. You start and complete operations until you reach the inspection operation.

  6. At the inspection operation to which the QM Inspection Group DC group is attached, you select one or more SFC numbers and choose Start.

    Note Note

    You must use a Process resource to receive a response from SAP ERP with evaluation results (see Resource).

    End of the note.
  7. You select one or more SFC numbers and choose the Sample Inspection Lot POD button. SAP ME adds these SFC numbers to an SFC group and changes their status to Complete Pending. When the SFC group is full, the system opens the Sample Inspection Lot (QM030) plug-in.

  8. When you choose OK in the Sample Inspection Lot (QM030) plug-in, the system marks randomly-selected SFC numbers as sample SFC numbers and closes the plug-in. The status of the sample SFC numbers at the current operation changes to Active.

  9. You enter parameter values for sample SFC numbers using DC Collect (see Data Collection Entry).

  10. When parameter values for all sample SFC numbers are collected, SAPMEINT sends the quality inspection results for each SFC number to SAP ERP (QM) for evaluation using the message qualityInspectionResultRecordingRequest.

  11. SAP ERP (QM) evaluates the results of quality inspection. Each inspection characteristic is either accepted or rejected.

    You can view a result for each characteristic in the Valuation column on the Record Results: Characteristic Overview screen (transaction QE51N).

  12. SAPMEINT automatically retrieves a quality inspection evaluation status for each characteristic and sends this data to SAP ME using the message readErpQualityInspectionResultRequest.

  13. Based on the received valuation status, SAP ME either accepts or rejects the SFC group:

    1. If any critical inspection characteristic fails, the sample is rejected.

    2. If there are no failed critical inspection characteristics, the system compares the number of passed and failed normal characteristics. If the number of passed normal characteristics is greater than the number of failed characteristics, the sample is accepted.

    3. The system compares the number of accepted and rejected samples. If the number of accepted samples is greater than the number of rejected samples, the SFC group is accepted.

  14. If the overall status of the SFC group is Sample Accepted, the system completes these SFC numbers at this operation. If the overall status is Sample Rejected, SAP ME automatically logs the QM_INSP_REJECT NC code against all SFC numbers of this shop order, dispositions these SFC numbers to the INSPECTION_REJECTED routing and places them on hold.

Less than 100% Quality Inspection (BLOCK_ORDER=NO)

In this scenario, the following applies:

  • The Inspection Sample Size is less than the Build Qty of the Production shop order.

  • The QM030 activity rule BLOCK_ORDER is set to NO.

For more information, see BLOCK_ORDER in Sample Inspection Lot and Block SFCs Until Inspection Finished in Routing Step Properties.

  1. In SAP ERP, you create a routing and assign inspection characteristics to one or more operations ( Start of the navigation path Operations Next navigation step Inspection Characteristics End of the navigation path in transaction CA01).

  2. You create a production order (transaction CO01) or update a production order (transaction CO02) using the created routing.

    An inspection lot of inspection type 03 is automatically created and assigned to the production order on release.

  3. SAP ERP sends the production order IDoc message LOIPRO to SAP MII. Here message mapping takes place.

    SAPMEINT creates a Production shop order with quality inspection data, a routing, and a DC group for each operation with inspection characteristics based on data received from SAP ERP (see Transfer of Production Order with Quality Inspection Lot).

  4. In SAP ME, you release the shop order in Shop Order Release (see Shop Order Release).

    The system generates the SFC numbers.

  5. You start and complete operations until you reach the inspection operation.

  6. At the inspection operation to which the QM Inspection Group DC group is attached, you select one or more SFC numbers and choose Start.

    Note Note

    You must use a Process resource to receive a response from SAP ERP with evaluation results (see Resource).

    End of the note.
  7. You select one or more SFC numbers and choose the Sample Inspection Lot POD button.

    The system displays the randomly-selected SFC numbers in the Sample Inspection Lot (QM030) POD plug-in and completes the other SFC numbers at this operation.

  8. When you choose OK in the Sample Inspection Lot plug-in, the system marks the randomly selected SFC numbers as sample SFC numbers and closes the plug-in.

  9. You enter parameter values for the sample SFC numbers using the DC Collect.

    Note Note

    You can complete the sample SFC numbers at this inspection operation without entering parameters values. In this case you will have to enter parameter values at the operation with the Block SFCs Until Inspection Finished checkbox selected. If the SFC group size was not achieved at this inspection operation, it will be achieved at the operation with the Block SFCs Until Inspection Finished checkbox selected.

    End of the note.
  10. You complete the SFC numbers at this operation.

  11. At an operation that has the Block SFCs Until Inspection Finished checkbox selected, you start the SFC numbers.

  12. At this operation, you select one or more SFC numbers and choose the Sample Inspection Lot POD button.

    If there are sample SFC numbers for which inspection data was not collected, the system changes the status of non-sample SFC numbers and sample SFC numbers for which data was collected to Complete Pending.

    The system displays a message stating that the quality inspection of sample SFC numbers is required. The DC icon appears in the Info column for these sample SFC numbers.

    If the SFC group size was not achieved at the inspection operation, the system opens the Sample Inspection Lot plug-in and marks randomly selected SFC numbers as sample SFC numbers to achieve the SFC group size.

  13. You select sample SFC numbers for which the quality inspection data was not collected at the inspection operation and choose DC Collect to enter parameter values.

  14. When parameter values for all sample SFC numbers are collected, SAPMEINT sends the quality inspection results for each SFC number to SAP ERP (QM) for evaluation using the message qualityInspectionResultRecordingRequest.

  15. SAP ERP (QM) evaluates results of quality inspection. Each inspection characteristic is either accepted or rejected.

    You can view the result for each characteristic in the Valuation column on the Record Results: Characteristic Overview screen (transaction QE51N).

  16. SAPMEINT automatically retrieves the quality inspection evaluation status for each characteristic and sends this data to SAP ME using the message readErpQualityInspectionResultRequest.

  17. Based on the received valuation status, SAP ME either accepts or rejects the SFC group:

    1. If any critical inspection characteristic fails, the sample is rejected.

    2. If there are no failed critical characteristics, the system compares the number of passed and failed normal characteristics. If the number of passed normal characteristics is greater than the number of failed characteristics, the sample is accepted.

    3. The system compares the number of accepted and rejected samples. If the number of accepted samples is greater than the number of rejected samples, the SFC group is accepted.

  18. If the overall status of the SFC group is Sample Accepted, the system completes these SFC numbers at this operation. If the overall status is Sample Rejected, SAP ME automatically logs the QM_INSP_REJECT NC code against all the SFC numbers of this shop order, dispositions these SFC numbers to the INSPECTION_REJECTED routing and places them on hold.

Restrictions
  • For less than 100% quality inspection (BLOCK_ORDER=NO), if the SFC numbers from the SFC group were scrapped, deleted, or have the status Invalid, then the SFC group is not full and it will not be evaluated. These SFC numbers remain in the Complete Pending state, so the operator will not be able to complete them at this routing step.

  • A shop order can contain only one QM Inspection Group DC group at a routing step.