Expert Advice: Ensure MES/ERP warehouse transactions are performed in real time. Delayed posting leads to stock mismatches that can compromise compliance, audit readiness, and material traceability.
1. Purpose
This SOP defines the standardized procedure for managing, controlling, and monitoring MES/ERP systems used in Pharma warehouse operations, ensuring GxP compliance, data integrity, and accurate material flow.
Important Fact: MES/ERP acts as the digital backbone of warehouse operations, connecting dispensing, sampling, issuance, quarantine, and batch traceability—making system control critical for compliance.
2. Scope
This SOP applies to all MES/ERP systems used for warehouse transactions including receipt, sampling, dispensing, storage, issuance, and batch status management in Pharma manufacturing sites.
3. Responsibilities
Role
Responsibility
Warehouse Operator
Perform MES/ERP transactions accurately and timely.
IT Administrator
Manage system access, backups, performance, and data integrity.
Warehouse Manager
Review system logs, reconcile discrepancies, approve inventory movements.
QA
Ensure audit readiness, compliance monitoring, and change control review.
MES (Manufacturing Execution System)
ERP (SAP/Oracle/Other GxP System)
Barcode Scanners & Label Printers
Warehouse Tablets/PCs
Material Master & Batch Master Data
System Audit Trail and Activity Logs
User ID creation only through controlled access request form.
Role-based access for warehouse, QA, and IT teams.
Temporary accounts auto-expire (max 30 days).
Inactive accounts disabled after 90 days of non-use.
Password policy aligned with site IT security standards.
6.1 Material Receipt
Scan GRN / incoming material barcode.
Enter supplier batch number, quantities, COA reference.
System auto-assigns quarantine status.
6.2 Sampling
Create sampling request through MES/ERP workflow.
Record sampling container and analyst details.
Update status to "Sampled".
6.3 Material Dispensing
Select Batch → Dispense Order → Material Code.
Perform barcode-based verification.
MES auto-captures weight details via connected weighing balance (if integrated).
6.4 Batch Status Update
QA updates material from Quarantine → Approved/Rejected.
6.5 Warehouse Mapping
Record storage location (Rack → Row → Bin).
System stores all movements in audit trail.
Expert Tip: Avoid manual entry for warehouse movements—barcode scanning ensures accuracy and prevents audit observations.
Audit trail review weekly for warehouse transactions.
Auto-logging of:
User login/logout
Status changes
Material movements
Master data edits
Any abnormal variation triggers deviation workflow.
Incorrect postings corrected via controlled reversal process.
Missing transactions reported to QA via deviation.
System failures documented in IT Incident form.
User Access Review: Quarterly
Backup Restore Testing: Quarterly
Audit Trail Review: Weekly
System Health & Performance Check: Monthly
All warehouse movements traceable & timestamped.
No unauthorized access or transactions.
All material status updates documented with e-signatures.
Backup success rate: 100%.
Ensure barcode scanners & printers are calibrated quarterly.
Perform MES/ERP patching as per approved IT Patch SOP.
System downtime communicated to Warehouse & QA.
Master data changes follow Change Control SOP.
GAMP 5 – System Lifecycle Approach
21 CFR Part 11
EU Annex 11
Site IT Security Policy
Version
Date
Change Description
Prepared By
01
16-Nov-2025
Initial Issue: MES/ERP System Control SOP for Pharma Warehouse
IT & QA Team
Practical application & learning guide
Template status: site-specific review and controlled approval required before use.
Why this procedure matters: A useful SOP makes the approved task repeatable, clarifies who may perform and review it, and leaves enough reliable evidence to reconstruct what happened and support a sound quality decision. Read the task-specific scope, prerequisites, steps, and acceptance criteria in the SOP above; this guide explains how to apply them in a controlled way.
Practical workflow
Prepare: confirm the current approved document and training; verify authorization, materials, equipment and status, environmental/safety prerequisites, applicable specification or method, and required forms. Resolve missing or conflicting prerequisites before starting.
Perform: follow the approved sequence without undocumented shortcuts. Record actual observations and results as the work occurs, using required units, identifiers, date/time, initials/signatures, and controlled record references. Explain entries so a trained independent reviewer can understand the work without relying on memory.
Evaluate: compare actual results with the approved acceptance criteria and defined decision rules. Verify calculations, transcriptions, checks, and required second-person reviews. If data conflict, criteria are unclear, or the result is unexpected, pause the affected decision and seek QA/owner direction.
Close: reconcile all pages, attachments, labels, samples/materials, electronic records, calculations, and handoffs. Complete required review and disposition, file evidence in the approved repository, and record open actions with an owner and due date.
Task-specific learning points
For IT operations, act only from an authorized ticket/change and verify affected assets, system criticality, approved configuration, access authority, backup/recovery needs, security impact, and validation impact before execution. Use segregation of duties where defined; record before/after state, commands or configuration evidence where appropriate, validation/check results, timestamps, approvals, rollback or recovery outcome, and user/QA notification. Escalate unexpected access, data loss, malware, outages, or unapproved changes through incident and deviation processes.
Decision, exception & escalation
If a prerequisite is not met, a result is outside the approved criteria, an error or unexpected condition occurs, a record is incomplete, or product/sample/data may be affected, contain or stop the affected work when safe; protect materials, records, and evidence; promptly inform the responsible supervisor and QA; and use the linked deviation, OOS/OOT, incident, safety, change-control, or investigation procedure. Assess impact and document the facts, immediate controls, affected scope, decision authority, disposition, and closure evidence. Resume only when the authorized decision-maker has documented that conditions for restart are met. Do not silently repeat, overwrite, discard, backdate, or average results.
Records and evidence to confirm locally
Identify the controlled form/logbook or electronic record, source data and attachments, required independent review, linked deviation/change/training records, repository, retention period, and retrieval method. The exact record set and retention period must come from approved site procedures and applicable requirements.
Site adoption fields
Document ID: [site ID] Version: [approved version] Effective date: [date] Process owner: [role] QA approver: [role] Forms/specifications: [controlled IDs] Training: [assignment] Related procedures: [IDs]. Replace placeholders, resolve conflicts, obtain controlled approval, and train affected personnel before implementation.
Template boundary: This guide supplements the task-specific method; it does not establish a test limit, processing parameter, frequency, sample size, retention period, or regulatory applicability. Use approved specifications, validated methods, product commitments, safety controls, and local requirements. QA and a qualified subject matter expert must approve technical changes.