arXiv:2610.34258cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34258

Recovering Business Rules as Cascade Lookups for Enterprise Field Prediction

Changxu Duan

Changxu Duan (✉)[0000-0003-0547-0901]

Technische Universität Darmstadt

Darmstadt, Germany

duan@linglit.tu-darmstadt.de

Abstract. Enterprise sales-order systems rely on manually maintained configuration rules to determine fields such as payment terms, shipping points, and sales ownership. When these rules are incomplete or stale, operators must enter values by hand, and downstream errors spread into billing, logistics, and reporting. This paper studies whether missing or outdated rules can be recovered from historical transactions instead of being relearned as opaque statistical patterns. We introduce a knowledge-graph-guided workflow in which an LLM agent proposes candidate business keys, meaning column combinations such as customer and document type, validates them through SQL profiling, and compiles the resulting evidence into deterministic cascade lookups. The LLM is used only during offline rule discovery. At inference time, prediction is a transparent key lookup with no model-serving requirement. Experiments on enterprise sales-order prediction and public relational benchmarks show that cascades are most effective when fields follow stable business rules, while learned graph models remain preferable when prediction depends on temporal or neighborhood patterns. Drift analysis further turns residual errors into diagnostics for configuration maintenance.

Keywords: Enterprise AI · Knowledge Graphs · Relational prediction · ERP systems · LLM agents

Code and data. https://github.com/Fireblossom/CascadER

1 Introduction

Enterprise Resource Planning (ERP) systems orchestrate business operations, spanning procurement, manufacturing, sales, and finance, by maintaining a unified transactional database across organizational functions. In a sales-order workflow, the system must fill business fields before an order can be billed, shipped, and reported. These fields include payment terms that determine invoice due dates, shipping points that identify the warehouse or dispatch location, Incoterms that allocate shipping cost and risk, and sales ownership fields that assign the responsible sales team. These values are not arbitrary labels. In well-configured ERP systems, they are determined by business rules over customers,

C. Duan

materials, document types, and organizational units such as sales offices, sales groups, and plants.

SAP, the dominant ERP vendor serving over 400,000 customers worldwide, implements such field-level determination through its Condition Technique, SAP's rule mechanism for assigning default field values from ordered lookup tables called Access Sequences [13,14]. Each table is keyed by a combination of business attributes such as customer, material, and organizational context. However, these Access Sequences must be manually configured and maintained by domain experts. When configurations are incomplete, outdated after system migrations, or invalidated by organizational restructuring, the system either leaves fields blank or applies coarse defaults, forcing sales representatives to select values manually [8].

This configuration gap has tangible business consequences. An incorrect shipping point routes goods from the wrong warehouse and causes fulfillment delays. Mismatched payment terms create billing disputes. Wrong Incoterms misallocate shipping risk between buyer and seller, and inaccurate sales group assignments distort commission calculations. Systematic reviews of enterprise and manufacturing data ecosystems confirm that such data quality defects are a persistent and costly problem [2,19]. Furthermore, these errors are not static because even well-configured rules degrade over time as organizations restructure and customer relationships evolve. On the SALT-KG benchmark [15], which captures 2.3M historical order items from a single SAP S/4HANA ERP system instance, between 17% and 44% of customers changed their most frequently assigned field value within a two-year window, depending on the field (Section 4.5). Because each affected customer generates many orders, stale defaults can propagate errors across thousands of transactions before anyone notices.

A prediction system that suggests correct field values during order entry would reduce the need for manual correction, catch configuration drift before it propagates, and provide configuration owners with continuous visibility into which rules are still valid and which have silently broken. Here, configuration drift means that a formerly valid default no longer matches current business assignments because contracts, organizational responsibilities, or logistics settings have changed. We focus on cascade lookups as a practical representation for such suggestions. A cascade lookup is an ordered list of lookup tables, from specific rules to general fallbacks. For example, the system may first try a customer-by-document-type rule, then a customer-only rule, and finally a global default.

Existing approaches treat field prediction as a standard supervised learning problem, but each family of methods encounters a characteristic barrier when applied to rule-governed enterprise data. Gradient-boosted ensembles [1,18,4] perform well on fields with few possible values but struggle on high-cardinality targets whose correct value depends on specific multi-column business rules rather than broad feature correlations. For example, on the SALT-KG benchmark, predicting which internal sales team handles an account (589 possible teams) requires knowing the exact combination of customer and organizational unit that the company's assignment policy prescribes, and the best tree-based model achieves only 51% MRR on this field. Heterogeneous GNNs [7,20] learn relational embeddings by propagating signals along primary-foreign key edges, yet they too fail on fields where the correct value is determined by a specific lookup rule rather than by neighborhood similarity. On SALT-KG, a GNN achieves only 15.8% accuracy on sales team assignment and 37.5% on customer payment terms. KG-enhanced embeddings [15] inject domain metadata as auxiliary features, but yield only modest accuracy gains (<2 percentage points) when limited to field definitions without encoding the determination rules themselves. The common limitation is that these methods model the problem as statistical pattern recognition, while the underlying signal is often configured determinism. By configured determinism, we mean that field values follow explicit lookup rules keyed by specific combinations of customer, document type, material, and organizational unit.

Directly using LLMs at inference time is also impractical. Even with retrieval-augmented approaches, per-order LLM calls introduce latency and cost incompatible with high-throughput transactional systems, and enterprise deployments require that identical inputs always produce identical outputs with full audit trails, a guarantee that stochastic generation cannot provide.

Our key observation is that configured rules, even when missing from the live system, leave recoverable traces in historical transaction data. The challenge is that the space of possible key combinations is combinatorially large, making exhaustive search difficult, while identifying which combinations carry business meaning requires domain knowledge that is not encoded in table schemas alone. We address this by using an LLM agent guided by a Knowledge Graph [15] that provides field-level descriptions and dependency hints derived from SAP's internal ontology. The KG helps prioritize semantically meaningful key combinations, while SQL profiling against the full transaction history validates each candidate rule with coverage and accuracy statistics. The output is a set of deterministic JSON lookup cascades that require no GPU or LLM at inference time, provide built-in interpretability, and can be rebuilt as configurations change.

This paper makes three contributions.

  1. A KG-guided rule discovery workflow in which an LLM proposes candidate business keys, profiles them via SQL, and codifies the selected rules as hierarchical cascade lookups, achieving the best results among evaluated baselines on all 8 SALT-KG fields.

  2. A generalization study on two public RelBench v2 datasets (rel-arxiv, rel-stack) that characterizes when cascades match or underperform GNNs, showing that the method's advantage is specific to domains with stable, recoverable rules.

  3. A drift root-cause analysis linking many residual errors to organizational restructuring and showing how cascade failures can support configuration maintenance.

Application setting. An SAP sales order consists of a header and one or more line items. The header stores order-wide attributes, while each line item stores

C. Duan

Table 1. Target field classification. Header-level fields apply to the entire order. Item-level fields are set per product line. Downstream consequence describes the operational impact of an incorrect value.

FieldLevelDownstream consequence of error
CUSTOMERPAYMENTTERMSHeaderIncorrect invoice due dates and early/late payment disputes
SALESGROUPHeaderMisattributed revenue reporting and incorrect commission assignment
SALESOFFICEHeaderDistorted regional sales analytics
HEADERINCOTERMSHeaderWrong allocation of shipping risk and cost between buyer and seller
SHIPPINGCONDITIONHeaderSuboptimal carrier selection and delivery delays
ITEMINCOTERMSItemPer-line risk allocation inconsistent with contract
SHIPPINGPOINTItemGoods dispatched from wrong warehouse and fulfillment delay
PLANTItemWrong production or sourcing site and inventory discrepancy

product-specific attributes for one ordered product. The 8 target fields in SALT-KG span both levels (Table 1). Our system targets cases where configured Access Sequences fail to resolve a value. The cascade lookup provides an editable suggestion based on statistically recovered rules, with cascade-level provenance visible to the operator.

References (24)