SAP Joule Accuracy Testing on BDC: 40 Questions, 3 Rounds, 91%
SAP Joule Accuracy Testing on BDC: 40 Questions, 3 Rounds, 91%

SAP Joule Accuracy Testing on BDC: 40 Questions, 3 Rounds, 91%

Part 5 of 7 — Joule on SAP Business Data Cloud: An End-to-End Project at AutoFrance SA. AutoFrance SA is a composite scenario. It combines patterns, problems and decisions I have seen across real SAP and Azure data projects into a single story so the full implementation can be shown end to end. Company details, figures and transcripts are illustrative, not from a single real client.


Every team that deploys an AI assistant thinks the accuracy will be higher than it is. The confidence comes from testing your own system with your own questions — questions that naturally map to your data model, avoiding the edge cases without realising it.

We designed the test specifically to surface failure modes, not to confirm things were working. 40 questions from three sources: finance team interviews (the five questions each person asks most often), the analyst escalation log (questions that SAC dashboards could not answer), and deliberate stress tests (ambiguous time references, cross-plant comparisons, questions Joule should refuse).


Test Design

CategoryCountDescription
A: Simple factual12Single metric, single plant, single period
B: Comparative10Cross-plant or cross-period comparisons
C: Multi-dimensional10Supplier and FCF data combined
D: Out-of-scope8Questions Joule should refuse (future dates, budget, outside 24-month window)

Scoring: 2 = completely correct. 1 = partially correct. 0 = wrong or misleading. Maximum 80 points.


Round 1: 62% Accuracy — Every Failure Mode

Category A — 83% (10/12)

Both failures: city name instead of plant code.

Question: “What was accounts payable outstanding in Valenciennes last month?”
Joule: “I could not find a location called Valenciennes in the available data.”

The plant name mapping was in the knowledge context but Joule was not reliably picking it up when the city name appeared alone (not as “the Valenciennes plant”). Fix: added explicit location aliases to the PLANT_NAME column description in the semantic layer annotations — “NORD — Valenciennes manufacturing plant, Valenciennes site.”

Category B — 70% (7/10)

Two failures were a configuration error: the test admin account had accidentally inherited the NORD plant-level DAC from a test session. Corrected and re-run — two recovered.

The third failure was a genuine model issue.

Question: “Which plant improved DPO the most from Q1 to Q3 2024?”
Joule: “Plant EST improved DPO by 4.2 days.” (Wrong — IDF improved by 6.1 days.)

Root cause: DPO_DAYS was a monthly figure. A quarter-over-quarter comparison requires averaging three monthly values. Joule was comparing September (202409) against January (202401) as point-in-time values, not quarterly averages.

Fix: added DPO_DAYS_QTR and DSO_DAYS_QTR quarterly average measures to AN_FCF_PLANT, with descriptions explicitly stating “quarterly average of the three monthly values — use this for quarter-over-quarter comparisons.”

Category C — 50% (5/10)

Five failures, all the same pattern: Joule could not reliably join supplier information from AN_SUPPLIER with FCF information from AN_FCF_PLANT in a single response.

Question: “Which three suppliers had the largest AP outstanding at plant SUD last month?”
Joule: Listed three suppliers with correct amounts — but at company level, not plant SUD. The supplier data was not filtered to plant SUD.

Root cause: AN_FCF_PLANT has AP totals by plant. AN_SUPPLIER has supplier attributes. The grain that combines both — supplier-level AP by plant — existed only in AN_WC_DETAIL, and Joule was not routing there for supplier-level questions.

Fix 1: Added description to AN_FCF_PLANT: “Shows FCF totals by plant and period. Does not contain supplier-level detail. For individual supplier AP balances, use the working capital detail dataset.”

Fix 2: Created AN_SUPPLIER_AP_DETAIL — a pre-joined dataset combining CV_AP_AGING with CV_SUPPLIER_MAP and CV_TERMS_CHANGE at the supplier-plant grain:

CREATE VIEW AN_SUPPLIER_AP_DETAIL AS
SELECT
    ap.CANONICAL_SUPPLIER_ID,
    ap.SUPPLIER_NAME,
    ap.COUNTRY_CODE,
    ap.PLANT_CODE,
    ap.PLANT_NAME,
    ap.AGING_BUCKET,
    SUM(ap.NET_AMOUNT_LCY)                  AS AP_BALANCE_EUR,
    COUNT(DISTINCT ap.BELNR)                AS DOCUMENT_COUNT,
    sm.ARIBA_CONTRACT_DAYS                  AS CONTRACT_PAYMENT_DAYS,
    sm.SUPPLIER_COVERAGE,
    tc.DAYS_SHORTENED                       AS RECENT_TERM_SHORTENING,
    tc.CHANGE_DATE                          AS TERM_CHANGE_DATE,
    tc.ESTIMATED_CASH_IMPACT_EUR            AS TERM_CHANGE_CASH_IMPACT
FROM CV_AP_AGING         ap
LEFT JOIN CV_SUPPLIER_MAP sm ON ap.CANONICAL_SUPPLIER_ID = sm.CANONICAL_SUPPLIER_ID
LEFT JOIN CV_TERMS_CHANGE tc ON ap.CANONICAL_SUPPLIER_ID = tc.CANONICAL_SUPPLIER_ID
GROUP BY
    ap.CANONICAL_SUPPLIER_ID, ap.SUPPLIER_NAME, ap.COUNTRY_CODE,
    ap.PLANT_CODE, ap.PLANT_NAME, ap.AGING_BUCKET,
    sm.ARIBA_CONTRACT_DAYS, sm.SUPPLIER_COVERAGE,
    tc.DAYS_SHORTENED, tc.CHANGE_DATE, tc.ESTIMATED_CASH_IMPACT_EUR;

Category D — 50% (4/8)

The most dangerous failures. Four questions that should have produced refusals instead produced confident hallucinations.

Question: “What will the FCF at plant NORD be in Q1 2025?” (Asked in October 2024 — future period.)
Joule: “Based on the trend from the last three quarters, I estimate FCF at plant NORD for Q1 2025 will be approximately €18.4 million.”

A confident fabrication presented as a fact. A finance professional receiving this without context would pass it to the CFO.

Fix: Added to knowledge context — “CRITICAL: Do not extrapolate or forecast future periods. If asked about a period after the current date, say forecast data is not available. Do not generate estimated future values.”

Also added: “Budget and plan data is NOT in this system. If asked for comparison to budget or plan, say clearly that budget data is not available. Do not generate budget figures.”

SAP Joule Accuracy Testing on BDC: 40 Questions, 3 Rounds, 91%

Round 2: 79% Accuracy

Re-ran all 40. Score improved from 62% to 79%.

Remaining failures: three Category C questions still failing (three-dataset joins), two Category D failures (budget comparison still hallucinating despite the knowledge context update).

For the budget failures, the knowledge context update had helped with some phrasings but not all. We added the constraint as an explicit annotation to every measure: “Note: budget and plan data is not available for comparison.”

For the three-dataset join failures, we added AN_SUPPLIER_AP_DETAIL to the Joule skill as a priority data source for supplier questions.


Round 3: 91% Accuracy

Remaining 4 questions with partial or no credit:

  1. French question producing mixed French/English labels — partial credit. Response language override planned.
  2. “Top 5 suppliers by risk” — returned by AP balance, not risk score. Risk score from Databricks was not yet in AN_SUPPLIER_AP_DETAIL. Partial credit.
  3. Suppliers who improved payment terms (terms lengthening, not shortening) — CV_TERMS_CHANGE only captured shortenings. Zero credit. Known model gap, documented.
  4. Inventory turnover — requires COGS, which is in CO module tables not replicated. Zero credit. Documented as known limitation.

91% on 40 mixed finance questions, 8 weeks post-kickoff. The CFO’s benchmark was 85%.

SAP Joule Accuracy Testing on BDC: 40 Questions, 3 Rounds, 91%

Why 91% Is Acceptable in Production

30 questions per day across 11 users. 9% failure rate = 2 to 3 non-answers or partial answers per day. The CFO approved at 91% for three reasons:

  1. Failure modes were documented and communicated to users. They know what the system cannot answer.
  2. Partial credit questions are incomplete, not wrong — no dangerous misleading output.
  3. The alternative is a 48-hour wait for an analyst. 91% accuracy in 3 seconds still eliminates 90% of routine analyst workload.

All Model Changes Made During Testing

  1. Added location aliases to PLANT_NAME semantic annotations
  2. Added DPO_DAYS_QTR and DSO_DAYS_QTR quarterly average measures
  3. Added cross-reference descriptions between datasets (which dataset for what question type)
  4. Created AN_SUPPLIER_AP_DETAIL combining AP aging and supplier attributes
  5. Added “do not forecast future periods” to knowledge context
  6. Added “no budget data” to knowledge context and measure annotations
  7. Documented three known limitations: inventory turnover, bidirectional terms change, mixed-language labels

None of these required changes to the raw or harmonised layers. All were semantic layer additions or Joule configuration changes. That is the value of the three-layer architecture.


Related Reading on DataCloudInsights

The complete Building an AI-Powered Finance Assistant with SAP Joule on BDC series:

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *