ERPClimb logoERPClimb
Sample Management
Quality Managementadvanced 4 min read

Sample Management and LIMS Integration Architecture

Free sample lesson · open to everyone

Key takeaway

Integrate SAP sample and inspection data with laboratory systems using stable identifiers, controlled result ownership and reconciliation so analytical results never become detached from the business lot.

In this lessonShow sections

Visual overview

Sample Management and LIMS Integration Architecture — learning sheetIn one line: Integrate SAP sample and inspection data with laboratory systems using stable identifiers, controlled result ownership and reconciliation so analytical results never become detached from the business lot.ERPClimb.com / QM / LESSON 1/2 / LEARNING SHEETSample Management and LIMS Integration Architecture1 · IN ONE LINEIntegrate SAP sample and inspection data with laboratory systems using stable identifiers,controlled result ownership and reconciliation so analytical results never become detachedfrom the business lot.2 · KEY IDEAS EXPLAINED1Laboratory integrations often fail because bothSAP and the LIMS try to own the same status orbecause sample identifiers are transformedinconsistently.2Define the system of record for sample creation,test method and final quality disposition. SAP maycreate the inspection lot and sample while theLIMS executes laboratory tests and returnsresults. The integration must carryinspection-lot, operation, characteristic and…3Use asynchronous, idempotent messaging wherelaboratory turnaround is long. A repeated resultmessage should not create duplicate measurementsor overwrite a later approved result withoutversion control.4Handle partial results explicitly. Somecharacteristics can complete while others remainpending; the usage decision should follow thedefined completion policy.3 · DO · AVOIDBest practice!Common mistakeCarry stable sample and characteristic keys.Define one final-disposition owner.Make result updates idempotent.✕Mapping results only by material/batch.✕Allowing both systems to own finaldisposition.✕Assuming every result arrives once and inorder.4 · IN A REAL PROJECTA LIMS returned results using only material and batch, causing ambiguity when two inspection lots existed forthe same batch. Adding inspection-lot and sample identifiers eliminated cross-posting risk.Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

A LIMS returned results using only material and batch, causing ambiguity when two inspection lots existed for the same batch. Adding inspection-lot and sample identifiers eliminated cross-posting risk.

Explanation

Laboratory integrations often fail because both SAP and the LIMS try to own the same status or because sample identifiers are transformed inconsistently.

Define the system of record for sample creation, test method and final quality disposition. SAP may create the inspection lot and sample while the LIMS executes laboratory tests and returns results. The integration must carry inspection-lot, operation, characteristic and sample identity so each result can be mapped unambiguously.

Use asynchronous, idempotent messaging where laboratory turnaround is long. A repeated result message should not create duplicate measurements or overwrite a later approved result without version control.

Handle partial results explicitly. Some characteristics can complete while others remain pending; the usage decision should follow the defined completion policy.

Monitor interface queues, rejected result messages and aged samples. Reconciliation should compare samples sent to the lab against results received and lots awaiting completion.

Sample management can integrate with external LIMS systems on both ECC and S/4HANA. S/4HANA additionally exposes sample drawing and tracking through Fiori apps, though the underlying physical-sample and drawing-procedure model is unchanged.

How the SAP process fits together

SAP PROCESS EXPLORER · Quality: inspection to decision

ERPClimb.com

Sample Management — process breakdown

Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.

1/4

Selected process stage

Plan

Define sample determination procedure

Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario.

Watch out

Common mistakes

Mapping laboratory results back to SAP using only material and batch, which becomes ambiguous the moment two inspection lots exist for the same batch. Allowing both SAP and the LIMS to behave as if each owns the final quality disposition, so the two systems can disagree about whether a lot is approved.

Assuming every result message arrives exactly once and in order, when real interfaces retry, duplicate, and occasionally reorder messages. Allowing a lot to be completed or dispositioned before all required laboratory results have actually arrived, because the interface did not enforce the completion policy.

Having no reconciliation process to compare samples sent to the lab against results returned, so a lost sample is only discovered when someone asks why a lot has been open for weeks.

Do this

Best practices

Carry stable, unambiguous keys -- inspection lot, operation, characteristic and sample identity -- through every message exchanged with the LIMS, so a result can never be mapped to the wrong lot when multiple lots exist for the same material and batch.

Define exactly one system as the owner of final quality disposition and document it, so SAP and the LIMS never both believe they control the final decision. Design result updates to be idempotent, so a retried or duplicated message cannot create a duplicate measurement or silently overwrite a later, already-approved result.

Monitor aged pending samples so a lab sample that never returns a result does not sit invisibly, blocking lot completion. Regularly reconcile samples sent to the lab against results actually received, to catch silent interface failures before they affect a usage decision.

In the interview

Interview angle

Typical question: "How would you design a robust integration between SAP QM and an external LIMS?"

A strong answer covers: defining a single system of record for final quality disposition so SAP and the LIMS never both try to own it; carrying stable identifiers (inspection lot, operation, characteristic, sample) through every message so results can never be mis-mapped when several lots exist for the same batch; designing result updates to be idempotent so a duplicated or retried message cannot create a duplicate measurement or overwrite a later approved result; and explicitly handling partial results, where some characteristics complete while others remain pending in the lab.

Loses marks: assuming a simple one-message-per-result design is sufficient, or mapping results by material and batch alone without lot-level identity.

Practice this lesson

Quick check

0 of 3 questions attempted

Question 1 of 3

Scenario — A LIMS returned results using only material and batch, causing ambiguity when two inspection lots existed for the same batch. For the lesson "Sample Management and LIMS Integration Architecture", which response shows the strongest architecture and production judgment?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1You are the senior consultant/architect responsible for Sample Management and LIMS Integration Architecture. The project situation is: A LIMS returned results using only material and batch, causing ambiguity when two inspection lots existed for the same batch. How would you assess the design, identify the highest-risk failure modes, and define the evidence required before approving it for production?

2During a physical sample drawing process for incoming inspection, samples are not appearing correctly linked to their storage location, and lab technicians cannot trace which physical sample corresponds to which inspection lot. How would you troubleshoot and correct this?

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.