AdvancedInfor LX and BPCS (IBM i)Private AI / Integration Architecture

How to add a private AI layer to Infor LX / BPCS on-prem

Question
Infor LX BPCS AI integration without cloud

Also searched as

  • how to use AI with BPCS on AS/400
  • Infor LX chatbot Db2 for i
  • local LLM for BPCS data

Short answer

BPCS and Infor LX run on IBM i with their data in Db2 for i, in files that carry short coded names by module. A private AI layer reads those files through read-only SQL views over a replica, indexes documents and attachments separately, exposes approved queries through a tool server, and serves an open-weight model on local GPUs. Writes, if any, go through the supported transaction programs with human approval.

Applies to: Infor LX 8.x and BPCS 6.x on IBM i; file names and library layout vary by release and by customer modification.

Reference build for Infor LX / BPCS

  1. 1List the BPCS or LX modules in use and the physical and logical files behind your first five questions.
  2. 2Confirm file and field meanings against your release documentation and your own modifications.
  3. 3Create read-only business-named SQL views in a separate library.
  4. 4Set up a replica or scheduled extract so the assistant never queries production.
  5. 5Serve an open-weight model on local GPUs and put a tool server in front with parameterised queries only.
  6. 6Map users to facilities and warehouses and apply the filter in the tool server.
  7. 7Pilot read-only questions, add drafts later, and keep an audit log of every query.

Data access paths in Infor LX / BPCS

BPCS uses a three-letter file naming convention by module. Commonly documented examples are IIM for the item master, ITH for inventory transaction history, ILI for item location inventory, ECH and ECL for customer order headers and lines, HPH and HPO for purchase order headers and lines, FSO for shop orders, and AVM and RCM for vendors and customers. Treat these as a starting list and confirm each against your own library and release before building views, because customers often add fields, logical files and entire custom files.

Access is plain SQL to Db2 for i through ODBC or the JTOpen JDBC driver, or through RPG and CL programs the customer already runs. Where a release provides an ION connector or documented interface files, those are the supported route for writes and event-driven feeds. For reads, SQL views with business names on top of the physical files keep the model away from cryptic field names.

-- Business-named read-only view over a BPCS item master (verify names in your library)
CREATE OR REPLACE VIEW AIREAD.ITEM_MASTER AS
SELECT IPROD AS ITEM_NUMBER, IDESC AS DESCRIPTION, IITYP AS ITEM_TYPE
FROM BPCSDATA.IIM;

-- Find which libraries and files carry a field before mapping it
SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, COLUMN_TEXT
FROM QSYS2.SYSCOLUMNS
WHERE COLUMN_NAME = 'IPROD'
ORDER BY TABLE_SCHEMA, TABLE_NAME;

Reference architecture, including the air-gapped option

A workable private AI layer for Infor LX / BPCS has six parts. First, a read-only data path: Db2 for i views over a replica or reporting copy so production is not queried. Second, a retrieval index over the documents and attachments people actually search, built with an open embedding model and stored in a vector database that runs on your servers. Third, a tool server, for example an MCP server, that exposes a short list of approved read actions with typed parameters. Fourth, an open-weight model served with vLLM or Ollama on local GPUs. Fifth, an identity layer that carries BPCS profile, facility and warehouse into every request. Sixth, an audit log of who asked what, which queries ran and which documents were retrieved.

The model never receives a database connection string. It asks the tool server to run a named action, and the tool server builds the parameterised query, applies the user's visibility filter and returns rows. This keeps free-form SQL generation out of production paths and makes every answer traceable to a query you can show the user. For an air-gapped site, all six parts run with no outbound route; model weights and updates arrive on approved media and are scanned and checked before use.

Point the assistant at a replica or a scheduled extract, not the production partition. Planners and customer service work during the day while MRP and batch runs hit the same files overnight, so isolating the AI workload protects both. A journal-based replica gives near-real-time data; an hourly extract into PostgreSQL is simpler and often enough for question answering.

Permissions: the assistant must never show more than the user may see

BPCS security is largely driven by IBM i authority, menu and program-level controls, and facility or warehouse conventions in the application. A language model has no knowledge of these rules, so the tool server must apply them: resolve the user to their IBM i or BPCS profile, look up the facilities and warehouses they may see, and inject that filter into every query.

Keep cost, margin and pricing columns out of the default views and add them only for the roles that already see them on green screens.

Write-back only through supported interfaces

Writes to BPCS tables should never come from the model directly. If you want drafted purchase orders or order comments, generate a structured draft, display it, and submit it through the vendor's supported transaction programs or interface files under the approving user's profile. Record who approved what and the posting result.

Sizing, phased rollout and honest limits

Sizing depends on concurrency, not on headcount. A pilot of 10 to 20 users with a 7B to 14B class model can run on one workstation-class or datacentre GPU with 24 to 48 GB of memory. A site with 100 to 300 named users, of whom a third use it daily, often needs one to four GPUs depending on model size and answer length. Retrieval indexes for tens of thousands of documents are typically in the single to low double digit gigabytes. Use the sizing calculator for your own numbers and treat results as ranges.

Roll out in three phases. Phase one is read-only questions over a small set of views and documents, with every answer showing the query or sources. Phase two adds drafts, such as a summary, a message or a prepared transaction, that the user reviews but that nothing posts. Phase three adds approved actions through Infor LX / BPCS's supported interfaces, always under the approving user's identity, with an audit record.

Naming is the biggest obstacle. Without a dictionary of what each file and field means in your installation, models guess, and wrong guesses on money fields are costly. Plan the mapping as a real work item.

If the questions you need are fixed and repetitive, a few well-built queries or a report writer may serve you better than a language model. LX and BPCS releases that are far behind on IBM i level may also constrain driver versions, which is another reason to read from a replica.

Try it here, free

Infor LX / BPCS Private AI Layer Blueprint Generator

Open full tool

Fill in your Infor LX / BPCS version, database, hosting and use cases and get a shareable architecture plan for a private AI layer.

Common pitfalls

  • !Assuming file names from public lists match your installation without checking.
  • !Letting the model write free-form SQL against production physical files.
  • !Ignoring customer-modified fields that change what a column means.
  • !Skipping facility and warehouse filters because the pilot team can see everything.
  • !Treating dates stored as numbers (such as century-based formats) as real dates without conversion.

How an ERP-grounded AI assistant handles this

ERPray and Netray's custom build work follow this pattern: read-only by default, the query is shown to the user, Infor LX / BPCS roles and visibility are respected, and everything runs on your hardware with open-weight models. Where a vendor's own AI or standard reporting already answers the question, we say so; the private layer earns its place for cross-system questions, document search and sites that cannot send data off premises.

Frequently asked questions

Does this work for older BPCS releases?

Usually yes for reads, because the pattern needs only SQL access to Db2 for i. Older releases may constrain driver versions and journaling options, so a replica or extract is even more advisable there.

Can the assistant create orders?

Not directly. It can prepare a draft that a user reviews, and the draft is then posted through supported transaction programs under that user's profile. That keeps the ERP's own validation and audit in the loop.

How long does the data dictionary take?

Plan weeks, not days, for the first modules. Start with the 20 to 40 tables behind the first use cases and expand as questions demand it.

Do we need a vector database?

Only for documents and attachments such as specifications and procedures. Structured questions over order and item data are answered by SQL, not by embeddings.

Related

Advanced

How to add a private AI layer to Infor XA on-prem

Infor XA keeps its data in Db2 for i on IBM i, so the safest way to add AI is a read-only reporting copy or logical-file access over JDBC or ODBC, a retrieval index over documents, a small tool server that exposes approved queries, and an open-weight model served on local GPUs. Nothing has to leave the building, and any write-back goes through the supported XA transaction programs after a person approves it.

Advanced

How to add a private AI layer to Infor System21 on-prem

System21 runs on IBM i with its business data in Db2 for i. The practical private AI pattern is a read-only replica or extract, SQL views that give files readable names, a retrieval index over documents, a tool server of approved queries, and a locally served open-weight model. User visibility is carried over from System21 security and company set-up, and writes only go through its supported entry points after approval.

CIO briefing

Staffing an ERP AI Team: What Roles You Actually Need

Most mid-market organizations do not need a dedicated ERP AI team at pilot stage - one ERP-literate technical owner working part-time with an implementation partner is enough. A dedicated team becomes worthwhile once you have more than two or three live AI use cases in production, at which point you need a named owner for prompt/data quality, one for integration and access, and a business-side owner for adoption.

Advanced

How to add a private AI layer to Infor EAM on-prem

On-prem Infor EAM stores its data in an Oracle or SQL Server schema whose tables use the R5 prefix, and it exposes web services for supported access. A private AI layer reads equipment, work order and parts data through read-only views on a reporting copy, indexes failure notes and manuals for retrieval, mirrors EAM organisation security, and serves an open-weight model locally. Work orders created or changed by the assistant go through EAM's web services after a person approves.

Advanced

How to Add a Private AI Layer to PeopleSoft On-Prem

Reach PeopleSoft through its own mechanisms: PS Query exposed through Query Access Services, Integration Broker service operations, and Component Interfaces for writes. For bulk reads use a replica with the security join tables applied. Add a local retrieval index over file attachments and an open-weight model on your own GPUs, and keep row security equal to what the user sees in the application.

Advanced

How to Add a Private AI Layer to Hyperion and Essbase On-Prem

Essbase is a multidimensional cube, so the AI layer should call approved, parameterised MDX or report tools rather than letting a model write free queries. Authenticate as the end user so Shared Services provisioning and Essbase filters apply, pull narrative context from planning documents and commentary into a local index, and run the model on your own GPUs. Writes to plans stay in Planning forms, with human approval.

AI for ERP

AI for Infor LX: A Private Layer on Top of Your IBM i Investment

Add a private AI layer to Infor LX on IBM i: natural-language answers over LX files and BODs, agents for MRP and order status, on-prem deployment.

Stuck on Infor LX and BPCS (IBM i)?

Talk to engineers who work inside Infor LX and BPCS (IBM i) every week, and who build private AI that answers these questions from your own ERP data.