Integrating ERP QM and QIE

Objectives

After completing this lesson, you will be able to:
  • Integrate ERP QM with QIE.
  • Maintain QIE Inspection Rules from SAP ERP.
  • Perform a partial decision for lot inspections.

Quality Inspections Using an External System (SAP ERP)

If you require a more complex quality management process, the QIE can be connected to an external QM system, such as SAP ERP QM. Here, you can cover detailed analytical inspections with characteristics.

Within the activation of an inspection document in EWM, the QIE triggers the creation of an inspection lot in ERP QM. The inspection process is executed in the external system, that is, the ERP QM system. ERP QM sends back the usage decision to the QIE after the inspection is complete.

Flowchart depicting SAP EWM requesting QIE, leading to SAP ERP QM module, with request and usage decision loops for quality management process.

ERP Settings and Requirements

The special settings and requirements for using ERP QM as external QM system for the QIE are as follows:

  • For checks that are triggered by an external system, SAP delivers the inspection lot origin 17. Select this inspection lot origin.
  • For samples that are created externally, SAP delivers sample type 10.
  • The BAdIs QPLEXT_COMM_TEC on the ERP side and QIE_EX_COMMUNICATION in the QIE must be implemented according to your requirements.

Note

Details about the integration settings are described in SAP Note 1278425 - Connection ERP QM to EWM.

Sample Size Calculation in SAP ERP QM

When integrating decentral EWM with QM, the sample can either be calculated by the QM inspection type or by the QIE inspection rule.

Note

In previous releases, the sample calculation had to be done in QM. With SAP S/4HANA 2023 the new option to calculate the sample in the QIE even when the integration to QM is active, became available.

For the calculation a sample procedure or an inspection percentage can be entered in the inspection type assigned to the material master.

Note

If a task list is assigned to the inspection, neither the sample procedure nor the entered percentage is used.

When the sample is calculated according the inspection type, EWM can handle the sample in different ways, depending on the settings of the field Split External Sample Quantity in the warehouse dependent IOT settings. You have two options

  • Split Only at Inspection Creation
  • Split at Inspection Creation or Sample Size Change

With these two options, the system behavior is as with the sample calculation in EWM: the complete quantity can be brought to the deconsolidation work center, where the physical split is done and only the sample quantity is moved to the inspection work center, while the rest of the material is moved to the finals storage bin.

When the Split External Sample Quantity is set to:

Don't Split External Sample Quantity (which is the standard setting)

The sample size is displayed in the External Sample Size field in the inspection document in SAP EWM. This information is then displayed in the following:

  • The desktop transaction for the quality inspection work center

  • The desktop transaction for the packing work center

  • The mobile device dialog for the inspection decision

In the work center transactions, the screens have been enhanced with a new button to view the inspection document, and an alert symbol if the lot size is not the same as the external sample size. In this way, the user in the work center receives the information about how the material should be packed and how much should be inspected. So the split will only happen at the quality inspection work center.

A truck delivers 100 pallets to two workers; they sort them into 90 and 10 pallets. Ninety pallets are stored in a grid of shelves.

Maintain QIE Inspection Rules from QM

In a decentralized scenario with QM integration, you need master data for the creation of the inspection documents at two places. You need an inspection rule in SAP EWM, which triggers the creation of the inspection document, and the inspection setup in the SAP ERP material master for the creation of the inspection lot.

Diagram showing ERP Material Master Inspection Setup converting into EWM Quality Inspection Rule with a right-pointing arrow. Blue ERP box and green EWM box denote respective systems.

When you connect a decentralized SAP EWM to an enterprise management system, you can enter the inspection setup data in the Quality Management view of the material master in the enterprise management system and establish an ALE distribution of the inspection setup data to the decentralized EWM system. The system then creates, updates, or deletes the inspection rules in the decentralized EWM system based on the inspection setup data in the enterprise management system. This allows you to make all the settings regarding QM, in the connected QM system, without additional follow-on actions in the decentralized EWM system.

Required settings are:

  • For the required IDoc processing in the EWM system you can use the business configuration set /SCWM/QM_MASTER_DATA_SYNC_IDOC.
  • In the partner profile for the logical system (this is required for the IDoc communication for master data anyway) you maintain inbound parameters for the message type MATQM and the process code /SCWM/MATQM.
  • You maintain entries for the relevant inspection types in Customizing for Extended Warehouse Management. Entries are possible for:
    • IOT4
    • IOT5
  • You transfer the inspection setup data to the decentralized EWM using the transaction, Send Inspection Setup (QL11).

Partial Decisions for Lot Inspections

With the partial decision for lot inspections function, you can enter a decision for a partial quantity of an inspection lot. For example, you can do this for individual HUs, or items that are in different deliveries, but in the same inspection document, through inspection lot summarization.

Flowchart shows inbound delivery 410000, inspection document 400040, EWM and ERP processes. Below lists stock inspection items 111-113 with status, bin, product, stock ref, qual. insp., and quantity.

You can call a separate screen from the EWM inspection document, where you can see the different stocks and make the decision for all, or for individual, stocks. For this, the stock must be in a bin that is assigned to a work center, but this behavior can be influenced by the BAdI Define Ability to Perform Quality Inspection (External).

To call the same screen from SAP ERP, a BAdI implementation is necessary. SAP note 1953900 describes the necessary requirements and includes a sample implementation for the BAdI QEVA_SUBSCREEN_1101.