CORPEX LIMS · ERP interface

LIMS SAP integration: the SAP QM to LIMS interface

SAP QM creates the inspection lot. The laboratory tests the sample. The results go back and the lot is closed. This page explains how a SAP QM LIMS integration works with a LIMS: the messages that cross (inspection lots, results, the usage decision, master data), who owns which data, what QM-IDI is and is not, and what to control at the interface. There is no pre-built SAP connector; the interface is enabled and mapped in an integration project.

The Round Trip

The Inspection-Lot Round Trip Between SAP QM and a LIMS


Five steps, two systems. The lot and the final decision belong to SAP; the laboratory work in between belongs to the LIMS.

  1. SAP QM creates the inspection lotSAP QM

    A goods receipt, production order or stock posting triggers a lot for a material and batch, with its inspection plan.

  2. The LIMS receives the lotInterface

    Lot number, material, batch and quantity arrive as one message, a sample is registered, and the test panel comes from the approved specification.

  3. Samples and testsLIMS

    The lab receives the sample, captures the data, calculates against the specification, reviews and approves.

  4. Results and valuation go backInterface

    Approved results per characteristic, with the pass or fail verdict, return to the lot.

  5. The usage decision stays in SAPSAP QM

    A SAP user closes the lot with the usage decision, which releases or blocks the stock.

What the lot message carries

CORPEX LIMS accepts an inspection lot, a goods receipt or a production batch as a single message. It holds the lot reference, the material or product code, the batch, the quantity and unit, manufacture and expiry dates, the supplier where relevant, and the sample type (raw material, packaging, in-process or finished product). The LIMS registers a sample for it. When the laboratory receives that sample, the test panel of the approved specification is loaded, the same way it is when an analyst registers a sample by hand.

The message is checked as a whole before anything is written. If the material code, a test code or a supplier name is unknown to the LIMS, the message is rejected with the reason and nothing is created, so there is never a half-registered lot.

What comes back

After QA approval, CORPEX LIMS queues one release document per lot. It lists each test with the value as reported (not re-rounded), the unit, the specification text, the verdict, and an out-of-specification flag, together with the laboratory's conclusion and the QA approver and time. A test with no value is sent as pending, never as zero.

Where your SAP design keeps the usage decision in SAP QM, as most do, this document is the evidence the SAP user decides on. The document also carries the laboratory's signed QA disposition (release, reject, hold or quarantine). Whether SAP treats that as an input to its own usage decision or as a recommendation is a design choice we settle with you in the integration project.

CORPEX LIMS is built to expose its side of this exchange as a JSON interface over HTTPS, set up during the integration project. It is not an SAP-certified interface and it ships no pre-built SAP connector. The SAP side, whether an inbound web service, IDoc or a middleware flow, is mapped in an integration project against your environment.

Interface Scope

What the SAP to LIMS Interface Covers


Four groups of messages. Anything not on this list is not part of the interface.

MessageDirectionWhat it carries
Inspection lot, goods receipt or production batchSAP to LIMSThe ERP's lot reference, the material or product code, batch, quantity and unit, manufacture and expiry dates, supplier and manufacturer where relevant, and the sample type: raw material, packaging, in-process or finished product. The LIMS registers a sample for it.
Master dataSAP to LIMSMaterials, products, suppliers, tests and locations, loaded from a file or posted as messages, updating on the natural key (the code, or the name for suppliers and tests). Rows without that key are refused.
Results and the usage decisionLIMS to SAPOne document per lot, queued after QA approval: each test with the value as reported, unit, specification text, verdict and out-of-specification flag, the laboratory's conclusion, who decided and when. The decision is sent as release, reject, hold or quarantine; a conditional release is flagged as conditional, and rework travels as hold.
ReconciliationSAP pulls from LIMSThe ERP side can ask for the sample behind a lot reference, or for every document queued after a given point, with a cursor that does not skip documents queued in the same instant.

Not in the interface: instrument data (the LIMS captures it at the bench), the working data behind a result, and any edit to the SAP lot itself. The LIMS never writes into SAP tables; SAP, or the middleware you choose, reads and posts through the interface only.

Ownership

Which Side Owns What


Every data item should have one owner. The interface moves copies; it does not create a second source of truth.

DataOwnerWhat the other side does
Material, batch and supplier master dataSAPThe LIMS loads the codes it needs (materials, products, test masters, locations) from CSV or JSON, updating on the code. Suppliers are matched on the name in the message, not on a code. A lot that names an unknown code is rejected, not guessed.
Inspection lot and inspection planSAP QMThe LIMS registers a sample for the lot and never edits the lot.
Specifications and acceptance limitsOne side, chosen per projectIn CORPEX LIMS, specifications are authored and approved in the specification module, and only an approved one governs a sample. If SAP keeps the master inspection characteristics, the project decides how the two are kept aligned and who changes them first.
Samples, raw data, calculations, review, approvalLIMSSAP receives the outcome, not the working data.
Out-of-specification investigationLIMSSAP sees the verdict and the OOS flag on the result.
Usage decision on the lotSAP QM in the usual designThe LIMS supplies results and its signed QA disposition after approval.
Certificate of AnalysisLIMSIssued from the approved record. See Certificate of Analysis software.
Triggers and Direction

Trigger Points: One-Way Messages, a Two-Way Exchange


Each message type moves in one direction, and each is idempotent. Taken together the exchange is bidirectional, but nobody writes into the other system's tables. That is the main design rule that keeps the interface auditable.

EventDirectionHow it is triggered
Inspection lot, goods receipt or production batch createdSAP to LIMSPushed by SAP (or the middleware) when the lot is created. Resending the same lot reference is safe and returns the original outcome.
Master data changesSAP to LIMSPushed in batches by entity, on a schedule or on change. Rows update on their code.
Results approved, usage decision signed in the LIMSLIMS to SAPQueued at the moment of the signed act, then delivered by a scheduled job, so a failed delivery never blocks or undoes the approval. Only samples that came from the ERP are sent.
Delivery failsLIMS to SAPRetried with increasing waits. After five failures the document stays visible as failed until a person requeues it.
ReconciliationSAP pulls from LIMSOn request, the ERP side can ask for the sample behind a lot reference or for every document queued after a given time, so it can catch up if a push was missed.

Receivers must de-duplicate on the document id, because a document can arrive more than once after a retry. Outbound requests carry a timestamp and an HMAC signature, which the receiving side must verify, refusing stale timestamps.

QM-IDI

What QM-IDI Is, and What It Is Not


It is SAP's inspection data interface

QM-IDI is a standard way for an external system to exchange inspection lots and inspection results with SAP QM. It sits on the SAP side of the connection.

It is not a bench-instrument driver

It does not read balances, HPLC systems, titrators or other instruments. Raw data from the bench is captured by the LIMS, calculated and reviewed there, and only the approved result is sent on.

It is not the laboratory workflow

Sample tracking, worksheets, calculations against the specification, stability pulls and OOS investigations stay in the LIMS. The interface carries their outcome.

It is one possible SAP-side mechanism

Whether the SAP side uses QM-IDI, a web service or an integration platform depends on your release and environment. CORPEX LIMS carries the data objects such an exchange needs; the mapping is project work.

Other ERPs

LIMS Integration With Other ERP Systems


A LIMS ERP integration answers the same questions whatever the ERP: which side creates the request to test, which side owns the master data, who takes the release decision, and what happens when a message fails. The CORPEX LIMS interface is not shaped around one vendor. The inspection lot, goods receipt, production batch and master-data messages are plain JSON objects, and access is controlled by API keys scoped to the ERP's role: a key issued for the ERP can post those messages and read its own lots, and nothing else. A key with no scope is refused, and refusals are written to the audit trail.

For an ERP that is not SAP, the same messages are used and only the ERP-side mapping changes. Any ERP that can call a web service, or sit behind a middleware layer, can use them. A middleware layer is worth having when the ERP, an MES and a QMS share the same data, because the mappings then live in one place. Each interface is specified, built and tested in the project.

CORPEX-ERP. CORPEX-ERP is a separate product from CORPEX LIMS. Connecting the two follows the same route as any other ERP: the same messages, the same scoped keys, the same specification and test evidence, set up in the project and validated with the rest. If your ERP is still open, see how CORPEX-ERP and the LIMS software divide the work, and our data integration services. For the wider question of whether an ERP can do the laboratory's job at all, read SAP QM versus a LIMS.

Data Integrity

ALCOA+ and Part 11 at the Interface


The seam between two validated systems is where audit trails most often stop. These are the controls to ask for, and what CORPEX LIMS does at its side.

Attributable

Every transfer is logged

Audit trail of transfers

Inbound messages are stored with their status and the reason for any rejection. Outbound documents are stored with their delivery status.

Accurate

Results cross as reported

No silent rounding

Values travel as the reported string, with the unit and the verdict. An unmeasured test is pending, never zero, and an out-of-specification value is flagged.

Controlled

Nothing leaves unapproved

Signed before sent

A release document is queued only for a QA-approved sample, checked when it is queued. The electronic signature is applied in the LIMS before anything crosses.

Complete

Failed messages stay visible

Failed-message handling

A rejected message keeps its reason and creates nothing. Failed deliveries are retried and then held. A person can reprocess or requeue, or resolve with a written reason; both are audited and nothing is deleted.

Consistent

Duplicates do nothing

Idempotent messages

A message already received is not applied twice, and a lot reference cannot open a second sample. A retry that arrives mid-processing is told to try again later.

Available

Both sides can prove the match

Reconciliation

An integration-messages screen counts queued, sent, acknowledged, failed, applied and rejected items per system and opens each count. The ERP can also pull from the record.

For 21 CFR Part 11 and EU Annex 11, the interface is part of the validated system. It is specified, risk-assessed and tested as part of computer system validation, including the failure paths: a rejected lot, a dropped delivery, a replayed message and a revoked key. The secrets used to sign outbound documents are stored encrypted, and issued API keys are kept only as hashes.

The Project

What an Integration Project With CORPEX Covers


The interface is built into CORPEX LIMS and is enabled during the integration project, with a single switch for the interface as a whole. There is no ready-made SAP adapter to install, so the work is a defined project:

  • An interface specification that lists each message, its fields, owner, trigger and failure handling.
  • A mapping workshop with your SAP and quality teams for the lot, the characteristics and the results.
  • Configuration of keys, endpoints and signing secrets on the LIMS side, and the build of the SAP or middleware side with your team.
  • Test scripts, including the failure paths, as evidence for your validation, and a reconciliation procedure for operations.

See data integration and computer system validation for how we run those parts.

Quick Explainer

Watch: ERP and LIMS in 23 seconds

What an ERP owns, what the lab owns, and how the two connect.

Planning a LIMS to SAP Interface?

Tell us your SAP release, how inspection lots are created today and where the usage decision is made. We will come back with the messages, the owners and a test plan.

Request a Consultation

LIMS and SAP Integration: Frequently Asked Questions

What is a LIMS SAP integration?

It is a defined interface between SAP (usually SAP QM and the material and batch master) and the laboratory system. SAP creates the inspection lot and owns the business decision; the LIMS receives the lot, runs the samples and tests, and returns the results. The point is to stop people re-keying lots and results between the two systems while keeping the audit trail intact on both sides.

How does the SAP QM to LIMS interface work?

SAP QM creates an inspection lot for a material and batch. The lot, with the material, batch and quantity, is sent to the LIMS, which loads the test panel from the approved specification. The LIMS registers a sample, the lab tests it, and after review and approval the results and the valuation go back to SAP QM. In the usual set-up the usage decision on the lot is recorded in SAP.

Does the usage decision stay in SAP?

In a typical SAP QM design, yes: SAP closes the inspection lot with the usage decision. The LIMS sends results and its own conclusion. CORPEX LIMS can also send the laboratory's signed QA disposition (release, reject, hold or quarantine) with the results, only after QA approval. Which side takes the final decision, and how the two are reconciled, is agreed in the integration design.

What is QM-IDI, and is it an instrument interface?

QM-IDI is SAP's inspection data interface, a way for an external system to exchange inspection lots and results with SAP QM. It is an interface to SAP, not to analytical instruments. Balances, HPLC systems and other instruments are captured at the bench by the LIMS, which then sends the approved results across.

Does CORPEX have a certified SAP interface or a ready-made SAP connector?

No. CORPEX LIMS includes a JSON interface, designed for HTTPS, with scoped API keys, and the SAP side is mapped in an integration project with your SAP team or your middleware. We do not claim an SAP-certified connector. What we deliver is the interface specification, the mapping, the configuration and the test evidence for your validation.

Can the same interface connect an ERP that is not SAP?

Yes. The messages are plain JSON objects for the inspection lot, goods receipt, production batch and master data, so any ERP that can call a web service or sit behind a middleware layer can use them. Only the ERP-side mapping changes.

How is data integrity protected at the interface?

Every message in and out is logged with its status and reason. Duplicates are ignored safely, a rejected message creates nothing, failed deliveries stay visible until a person requeues or resolves them with a written reason, and each system can reconcile against the record. Results cross as reported, unrounded, and an unmeasured test is sent as pending, never as zero.

Which LIMS integrates with SAP and other ERP systems?

CORPEX LIMS does, through an ERP interface: JSON messages over HTTPS for inspection lots, goods receipts, production batches and master data coming in, and approved results with the usage decision going out. It is not a pre-built or SAP-certified connector. The SAP or other ERP side is mapped and built in an integration project and validated with the system. The same messages serve an ERP that is not SAP, including CORPEX-ERP.

Is SAP QM enough without a LIMS?

For inspection lots and usage decisions, yes. For sample tracking across stages, instrument capture, calculations, stability studies and OOS investigations, most pharma labs add a dedicated LIMS. Our comparison of SAP QM and a LIMS in pharma goes through the differences.

SAP and SAP QM are trademarks or registered trademarks of SAP SE. CORPEX is not affiliated with, endorsed by or sponsored by SAP SE.