Yes. AI can connect to the SAP, LIMS, MES and Veeva Vault systems a pharma company already runs, through APIs and exports the vendors document. Veeva's Direct Data API, for example, publishes a full copy of a Vault every day and a change file every 15 minutes (Veeva). Connecting is rarely the hard part. GxP is. Any workflow that creates or changes a GMP record has to be validated for its intended use (FDA). And the EU's draft Annex 22 on AI, whose consultation closed on 7 October 2025, says large language models shouldn't be used in critical GMP applications at all. So the first projects to ship read data, keep a person on every decision, or sit outside GxP.
TL;DR
- Yes, technically. SAP, LIMS, MES and Veeva Vault all have APIs or exports.
- Validation is the constraint. If AI writes to a GMP record, that workflow is validated, with audit trails and access controls (21 CFR 11.10).
- The EU's AI draft is strict. Draft Annex 22 keeps generative AI out of critical GMP uses. Elsewhere, a trained person is responsible for every output.
- Start read-only or outside GxP. SOP first drafts, search over approved documents and back-office finance don't touch a validated record.
- No primary source publishes a price range for this work. Validation scope, supplier qualification and interfaces drive it.
How AI reaches the systems
| System | What it holds | How AI reaches it |
|---|---|---|
| ERP (SAP) | Materials, batches, orders, finance | ECC: BAPIs and IDocs (SAP). S/4HANA: APIs on SAP Business Accelerator Hub (SAP) |
| LIMS | Samples, results, specifications | Vendor API or reporting views |
| MES | Batch records, process data | Level 3 in ISA-95, one level below the ERP (ISA) |
| QMS and documents (Veeva Vault) | SOPs, deviations, CAPAs | REST API, plus daily full, 15-minute incremental and daily audit-log files |
| Green-screen apps | Whatever never got an API | Screen-level automation. FDA's CSA guidance lists bots among the tools it covers |
The access path matters more than the system. In order of risk:
- A read-only copy. The AI works on an export or replica, and the validated system doesn't change. If people make GMP decisions from the copy, Annex 11 asks you to check that moved data isn't altered in value or meaning (Annex 11, 4.8).
- A read-only API. Live data, no writes. Vault slows responses once it hits a burst limit per 5-minute window. Veeva's own example limit is 2,000 calls (Veeva).
- Screen level. It breaks when screens change, and the bot acts as a user, so it needs its own account. The draft revised Annex 11 calls shared accounts a data integrity violation unless they're read-only.
- Write-back. The AI creates or changes a GMP record. Now it's a validated workflow, with audit trails and change control.
FDA's data integrity guidance has the example to remember: qualifying an MES platform doesn't show that a master production record it generates "contains the correct calculations" (FDA, Q3). Each workflow is validated for its own intended use, and an AI feature inside a validated system is a new workflow.
The rules, and where each one stands
| Document | Status and date | What it means here |
|---|---|---|
| 21 CFR Part 11 | US regulation, published March 20, 1997 | Validation, time-stamped audit trails, access limits |
| Part 11 Scope and Application | FDA final guidance, 2003 | Validate by risk: "validation would not be important for a word processor used only to generate SOPs" |
| Data Integrity and Compliance With Drug CGMP | FDA final guidance, December 2018 | Data should be ALCOA. Every CGMP workflow is validated, scaled to risk |
| Computer Software Assurance | FDA final guidance, February 3, 2026 (replaced the September 24, 2025 version) | Risk-based assurance for device quality software, including AI/ML tools. Accounting apps generally fall outside |
| AI to Support Regulatory Decision-Making | FDA draft guidance, January 2025 | Excludes "operational efficiencies" such as internal workflows that don't affect patient safety, drug quality or study results |
| Good AI Practice in Drug Development | FDA and EMA principles, January 2026 | Ten principles, starting with "human-centric by design" |
| EU GMP Annex 11 | In operation since June 30, 2011 | Risk-based validation, agreements with integrators, documented interfaces |
| Revised Annex 11, new Annex 22 | EU drafts, consultation closed October 7, 2025. Not adopted as of December 3, 2026 | Annex 22: only static, deterministic models in critical GMP uses; generative AI only in non-critical uses, with a human in the loop |
| EMA reflection paper on AI | Adopted, September 30, 2024 | AI drafting of product information "should be used under close human supervision" |
| PIC/S PI 041-1 | In force July 1, 2021 | ALCOA+ adds complete, consistent, enduring and available |
| ISPE GAMP 5, 2nd ed. and GAMP AI guide | Industry guides, July 2022 and July 2025 | Risk-based practice for GxP systems, including AI |
FDA's CSA guidance was written for devices, in consultation with CDER. For drugs, the direct references are the CGMP rules and the 2018 data integrity guidance. The EU drafts aren't in force, but EMA's GMP/GDP inspectors wrote them with PIC/S, so design to them now.
For an AI output that becomes part of a record, ALCOA+ points to a named person who approved it, a trail of what the AI proposed and what the person changed, and a record that stays readable for the whole retention period.
Why read-only and human-in-the-loop go first
| Use | Typical position | Why |
|---|---|---|
| Back-office finance | Usually outside GxP | CSA puts accounting apps generally outside validation |
| Search over approved SOPs | Non-critical, read-only | The approved document stays the record |
| First drafts of SOPs | Non-critical, human-in-the-loop | The draft goes through your normal review and approval |
| Batch release, writing batch records | Critical GMP | Validated workflow. Draft Annex 22 keeps generative AI out |
Your quality team decides where each use sits, and writes the decision down: Annex 11 asks for a "justified and documented risk assessment". Human review isn't free either. Draft Annex 22 says that where model testing is reduced because a person makes the decision, that person's training and performance should be monitored like any other manual process (draft Annex 22, 3.3).
What the price and timeline leave out
We found no primary source with a cost or time range for this work, so we won't print one. These move it:
- Validation scope. A read-only use outside GxP needs none. Every write into a GMP record adds requirements, testing and evidence.
- Supplier qualification. Annex 11 wants formal agreements with anyone who integrates or maintains a system, and an audit where risk calls for one (3.1–3.2).
- Interfaces and data checks. Critical systems need a current description of data flows and interfaces (4.3), and data exchanged between systems needs built-in checks (5).
- Freshness. Veeva's incremental files land 15 minutes after each 15-minute window, so a copy can run about 30 minutes behind.
- The ERP clock. SAP ends mainstream maintenance for Business Suite 7, including the latest SAP ERP 6.0 enhancement packages, at the end of 2027. Extended maintenance to the end of 2030 costs two percentage points more on the maintenance basis (SAP). Integrations built on ECC may need rework.
- Systems older than Part 11. FDA's 2003 guidance gives systems in use before August 20, 1997 enforcement discretion only while they still meet the predicate rules. If a change stops that, Part 11 controls apply.
- Life after go-live. Annex 11 requires controlled changes, including configuration, and periodic evaluation (10–11). A new model or prompt is a change.
Where Prizmstack fits
We haven't worked for a pharma company. We have no GxP validation track record and hold no compliance certifications. Validation stays with your quality team. What we have done is legacy integration.
For Hoskins Equipment, invoicing lived on a green-screen ERP and a spreadsheet. We built a modern layer that works with the legacy system instead of replacing it: a customer portal, a billing app that replaced the ERP screens, and a bridge into QuickBooks. More than $4M was collected through the portal in its first fifteen months.
Moneo is our own product. It writes step-by-step SOPs from a screen recording by reading pixels, so it documents green screens, AS/400 terminals and legacy ERPs that browser-based SOP tools can't see. It went from MVP to live, billed SaaS in five weeks. It isn't validated for GxP use, so in a pharma company it belongs in the first-draft row above, with your document control approving.
Engagements start at $4,000 a month, and Bryan quotes anything above that on the first call. Every engagement has one team, the same people every week, something live every week, your code and accounts from day one, and a person reviewing every change.
What to ask before you start
- Which of our systems will this read, and will it write to any of them?
- Has our quality team decided, in writing, whether this use is inside GxP?
- Where does a person approve the output, and how is that recorded?
- If the AI works on a copy, how do we show the copy matches the source?
- What happens when the source system throttles or goes down?
- Does any model output feed a critical GMP decision? If so, is the model static and deterministic?
- How will model and prompt changes go through our change control?
- Are we building on SAP ECC interfaces we plan to retire by 2030?
FAQ
Can AI integrate with legacy systems in pharma?
Yes. SAP, LIMS, MES and Veeva Vault can be reached through APIs or exports, and terminal apps at screen level. GxP sets the pace: read-only and human-reviewed uses go first, and anything that writes to a GMP record is validated.
Does AI used in pharma have to be validated?
It depends on the intended use. A workflow that creates or changes GMP records is validated, scaled to risk. Tools outside production and quality, like accounting, generally aren't, and your quality team documents which is which.
Can we use large language models in GMP work?
Not in critical GMP applications, under the EU's draft Annex 22, which isn't adopted yet. In non-critical uses, a trained person is responsible for every output. EMA's adopted reflection paper also asks for close human supervision of AI-drafted product information.
How much does AI integration cost in pharma?
We found no primary source with a range, so we don't give one. Cost follows validation scope, supplier qualification, interfaces and data checks. A read-only, non-GxP first project avoids most of them.
Sources
- eCFR: 21 CFR Part 11
- FDA: Part 11 Scope and Application (final, 2003)
- FDA: Data Integrity and Compliance With Drug CGMP (final, 2018)
- FDA: Computer Software Assurance (final, February 2026)
- FDA: AI to Support Regulatory Decision-Making (draft, January 2025)
- FDA and EMA: Good AI Practice in Drug Development (January 2026)
- European Commission: Annex 11 (2011), Annex 11 and 22 consultation and EudraLex Volume 4
- EMA: Reflection paper on AI (2024)
- PIC/S: PI 041-1 (2021)
- ISPE: GAMP 5, 2nd edition and GAMP Guide: AI
- ISA: ISA-95
- SAP: BAPI/ALE, S/4HANA APIs and maintenance strategy
- Veeva: API rate limits and Direct Data files
