# Running an AI pilot inside a RISE transformation

> Fit a 12-week AI pilot into a RISE or GROW programme, with entitlements checked, clean core gates passed and a business case built on the target landscape.

- Course: Orchestrate, Unit 12 · The FDE operating system and capstone
- Page: https://erpfde.com/topics/running-an-ai-pilot-inside-a-rise-transformation/
- Updated: 2026-11-23
- Reading time: Foundational 9 min, Deep 34 min

Independent learning resource. Not affiliated with, sponsored by or endorsed by SAP SE. SAP and other SAP products mentioned are trademarks of SAP SE in Germany and other countries.

## Foundational layer

### The 60-second version

Many SAP customers are in the middle of a RISE with SAP or GROW with SAP programme when someone asks for an AI pilot. The programme has a plan, a design authority, freeze dates and a team that is already busy. An AI pilot that ignores those things gets stopped, or worse, gets built on a system that is about to be switched off.

A pilot that works inside the programme does four things:

1. **Checks the entitlement first.** Some SAP AI is already in the subscription, some is paid per use, and some you build and pay to run. The answer decides whether you need a pilot budget at all.
2. **Passes the programme's clean core gate.** The pilot is held to the same extension rules as everything else the programme builds.
3. **Fits the programme calendar.** Twelve weeks, placed where key users are free and production isn't frozen, with the decision due before the programme's scope freeze.
4. **Builds a business case on the target landscape.** The numbers count the volumes the new system will carry, not only today's.

Done this way, the pilot becomes one more workstream with a gate, not a side project competing for the same people.

### Why it matters to the business

**The people are the scarce resource.** A transformation borrows its key users from the business for workshops, testing, mock loads and cutover. An AI pilot needs the same people: an accounts payable lead who knows why invoices block, a buyer who can judge a proposal. Put the pilot on top of user acceptance testing and both suffer.

**A pilot on the old system is often wasted.** Calder Pumpworks, the course's fictional pump maker, is moving its German company `CP20` from SAP ECC into the S/4HANA system that its US company `CP10` already runs under RISE. The go-live is Monday 5 July 2027. An agent built against ECC tables in Augsburg would need rebuilding seven months later. The same idea, built on `CP10`'s released APIs, carries straight over.

**The money question changes.** As of November 2026, SAP's pricing page says Base AI is included in every SAP cloud subscription with no AI Units needed, while agents and other premium services consume AI Units ([SAP AI plans and pricing](https://www.sap.com/products/artificial-intelligence/pricing.html)). A "pilot" of an included feature needs an activation plan, not a budget line. A pilot of a premium feature needs the contract checked first.

**The business case is better with the programme than against it.** In the course's synthetic example (deep layer), Calder's invoice triage agent pays back in about 18 months on `CP10` alone, and in about 10.5 months once `CP20`'s invoices arrive after go-live. The pilot only makes sense as part of the rollout.

### How SAP does it

As of 23 November 2026, here is what SAP's own pages say. Contract terms vary by customer, so treat this as what to ask about, not what you have.

**RISE and GROW.** SAP Learning describes GROW with SAP as the offering for new customers on SAP S/4HANA Cloud Public Edition, always a new implementation, and RISE with SAP as the offering for existing customers on Private Edition, either new or converted ([SAP Learning](https://learning.sap.com/courses/exploring-sap-cloud-erp/differentiating-grow-and-rise-with-sap)). A GROW pilot therefore usually meets a young system with little history. A RISE pilot meets a system with years of data and a migration still running.

**Three ways AI is paid for.** SAP's pricing page and its licensing lesson describe three layers ([pricing](https://www.sap.com/products/artificial-intelligence/pricing.html), [SAP Learning](https://learning.sap.com/courses/exploring-sap-cloud-erp/understanding-subscription-licensing_b664e32d-b9fb-487f-8f64-5f19894d3d9f)):

| Layer | What SAP puts in it | How it is paid |
| --- | --- | --- |
| Base AI | Joule Base and embedded AI, which varies by product | Included in the cloud subscription |
| Premium AI | SAP-built agents, document AI, document grounding | AI Units, bought yearly in blocks of 100 |
| Custom-built AI | Agents and apps you build | Free to design; runtime billed through the SAP BTP agreement |

The pricing page also says SAP is changing this model so that most generative AI features that need AI Units today move into Base AI, after a terms acceptance step. Check the page and your account team before you budget.

**What RISE packages said about AI.** In July 2024 SAP announced Joule for all RISE customers on Private Edition and AI Units for premium edition customers to pilot three services, among them SAP Cash Application ([SAP News](https://news.sap.com/2024/07/ai-available-rise-with-sap-commercial-packages/)). That is a 2024 statement. Read your own order form for what your package includes today.

**Help from SAP.** From 2 November 2026, SAP says its Max Success Plan is available to every customer, directly or through partners, and includes tailored AI use case adoption with prototype development before scaling ([SAP News](https://news.sap.com/2026/11/ai-transformation-guidance-for-every-customer/)). The Foundational plan is included in every cloud subscription.

**Gates.** SAP Learning's RISE with SAP methodology adds clean core quality gates to SAP Activate, answered as questionnaires in SAP Cloud ALM and reviewed with a RISE with SAP Enterprise Architect ([SAP Learning](https://learning.sap.com/courses/introducing-the-rise-with-sap-methodology-for-sap-partners-and-customers/defining-the-standardized-framework)). An AI pilot should pass through the same gates.

### The 12-week pilot on one page

| Weeks | Work | Who is needed | Gate at the end |
| --- | --- | --- | --- |
| Before week 1 | Entitlement check, clean core check, calendar fit | Architect, account team | G0: may this pilot start? |
| 1-2 | Measure today's baseline, design the pilot | Key users, process owner | G1: design review by the programme's design authority |
| 3-8 | Build and test in development and quality systems | Build team; key users test in weeks 7-8 | |
| 9-11 | Live trial in production, drafts only | Key users every day | G2: security and readiness before the move to production |
| 12 | Measure and decide | Process owner, sponsor | G3: scale, change or stop |

Three placement rules decide the dates: key users can't be in a blackout (testing, mock loads, year-end close) in the weeks they are needed; production can't be frozen in weeks 9-11; and the decision must land before the programme's scope freeze, so a "scale" decision can still join the rollout.

> **Note** **For functional consultants.** A pilot inside the programme touches your work in four places. Its test cases join the programme's test plan. Its roles join the role design, including a technical user for the agent with read access only. Its live weeks put new work items in the business team's inbox, which needs a short how-to. And if it scales, the change impact assessment for the rollout must include it.

### Questions to ask

- **Our account team:** which AI does our order form already include: Base AI only, AI Units, a BTP agreement with credits? Does the coming change to SAP's AI model affect the feature we want to pilot?
- **Our programme lead:** when are key users blocked, and when is production frozen? What is the date after which no new scope joins the rollout?
- **Our design authority:** which clean core gate does the pilot answer to, and who signs it?
- **Our partner:** is the pilot built on the target system's released APIs, or on the system we are retiring?
- **Our sponsor:** what result in week 12 means "scale", and what means "stop"?
- **SAP or our partner:** does our success plan include AI use case adoption or prototyping, and what does it cover?

### Common misconceptions

- **"We'll pilot AI after go-live."** Sometimes right, but the best time to measure a baseline is before the process changes, and a scale decision made before the scope freeze can ride the rollout's own testing.
- **"RISE includes AI, so it's free."** Base AI is included. Agents and premium services consume AI Units, and what you build is paid at runtime. Read the order form.
- **"A pilot doesn't need the clean core rules; it's temporary."** Pilots that work become production. A level D pilot becomes a level D production extension.
- **"Twelve weeks starts when the team is ready."** It starts when the programme calendar allows it. Calder's earliest workable start was five weeks after the first one it tried.
- **"The business case is about today's volumes."** Inside a migration, the case should count the volumes of the target system after go-live, and say so.

### Key terms

- **RISE with SAP:** SAP's offering for moving existing customers to SAP S/4HANA Cloud Private Edition, as a new implementation or a conversion.
- **GROW with SAP:** SAP's offering for new customers on SAP S/4HANA Cloud Public Edition, always a new implementation.
- **Base AI:** SAP AI included in a cloud subscription, such as Joule Base and embedded AI, consuming no AI Units.
- **AI Units:** SAP's consumption currency for premium AI, bought yearly in blocks of 100.
- **Clean core quality gate:** a checkpoint in the RISE with SAP methodology where the programme confirms its extensions, data and integrations follow clean core rules.
- **Scope freeze:** the programme date after which no new scope joins the current release.
- **Key-user blackout:** a period when the business experts a project needs are committed elsewhere.
- **Max Success Plan:** SAP's highest success plan, which as of November 2026 includes tailored AI use case adoption with prototype development.

### Check yourself

1. A sponsor asks for a pilot of a feature that SAP lists as Base AI. What is the right first move?
   - A. Budget AI Units for the twelve weeks of the pilot and its live trial
   - B. Plan an activation and measure it, without a pilot budget
   - C. Build the same feature yourself on SAP BTP
   - D. Wait until the AI model change takes effect

   Answer: B. SAP's pricing page lists Base AI as included in the cloud subscription with no AI Units. The work is activating and measuring it, not funding a pilot.

2. Calder could pilot an invoice agent on CP20's ECC system or on CP10's S/4HANA. Why choose CP10?
   - A. ECC has no invoices worth triaging today
   - B. SAP's pricing gives ECC customers no Base AI features at all
   - C. CP20 moves into CP10's system, so the work carries over
   - D. The CP10 system has no freeze dates to plan around

   Answer: C. CP20's ECC system retires on 5 July 2027. A pilot built on CP10's released APIs keeps working when CP20's invoices move there.

3. Which date should the pilot's week-12 decision land before?
   - A. The first day of the programme's hypercare after go-live
   - B. The end of the calendar year
   - C. The next renewal date of the AI Units contract
   - D. The programme's scope freeze for the coming release

   Answer: D. A "scale" decision made before the scope freeze can join the rollout's testing. A decision after it waits for a later release.

4. Why is a level D pilot a problem even if it is "only temporary"?
   - A. A pilot that works becomes production, level D included
   - B. Level D extensions can't be deployed to quality systems at all
   - C. SAP charges extra AI Units for level D extensions
   - D. Level D applies only to GROW, so RISE customers can't use it

   Answer: A. Pilots that succeed are scaled, not rebuilt. Holding the pilot to the programme's clean core gate avoids carrying a modification or a table write into production.

5. Key users are the scarce resource in a transformation. How should the pilot plan reflect that?
   - A. Use only the build team, and skip key users until week 12
   - B. Start whenever the build team is ready, and fit key users around it
   - C. Keep its key-user weeks out of the programme's blackouts
   - D. Ask SAP's success plan to provide the key users instead

   Answer: C. The pilot needs business judgement in its baseline, test and live weeks. Placing those weeks outside UAT, mock loads and close keeps both the pilot and the programme on track.

6. In the course example, why does Calder's business case pass only with CP20's volumes?
   - A. AI Units cost less once both companies share one contract
   - B. Only both companies' invoices bring payback under 12 months
   - C. CP10 alone has too few blocked invoices for the agent to learn from
   - D. The agent's run cost drops sharply after CP20's go-live

   Answer: B. On CP10 alone the synthetic case pays back in about 18 months; adding CP20's invoices after go-live brings it to about 10.5. The case depends on the target landscape.

7. What is the best question to ask your account team before planning the pilot?
   - A. Which large language models does SAP run behind Joule today?
   - B. How many other customers have already run this same pilot?
   - C. Can the pilot skip the review by the programme's design authority?
   - D. What AI does our order form include, and how is the rest paid?

   Answer: D. The entitlement decides whether you need a budget, AI Units or a BTP runtime. It is the first check, before calendar or build.

## Deep layer

### Mental model

**The pilot is a small workstream inside the programme, with its own gates mapped onto the programme's gates.** Every rule the programme already has applies to it: the extension rules, the landscape and transport route, the test plan, the freeze dates, the design authority. What the pilot adds is a hypothesis with a number in it and a date to decide.

Three constraints shape everything:

- **Entitlement:** what the contract already pays for decides the route (activate, consume AI Units, or build and run).
- **Clean core:** the pilot is rated like any extension, by its worst component.
- **Calendar:** key users, production freezes and the scope freeze fix the twelve weeks.

If any one of the three fails, the right answer is often "not now" rather than "pilot anyway". The deep layer turns the three constraints into checks you can run.

### How it works

#### The entry gate (G0)

Before week 1, four questions decide whether a candidate may start:

1. **Target system.** Does it run on the system that survives the programme? Calder's `CP20` ECC system retires on 5 July 2027, so anything built there must be rebuilt.
2. **Clean core level.** SAP Learning rates an extension by the lowest-ranked technology it uses: level A uses released APIs, level B classic APIs, level C internal objects with upgrade risk, and level D not recommended objects such as modifications or writes to SAP tables ([SAP Learning](https://learning.sap.com/courses/practicing-clean-core-extensibility-for-sap-s-4hana-cloud/explaining-extensibility-model-best-practices_e290f382-800e-40ef-a203-85a13115f487)). A pilot at C needs an exception; at D it doesn't start.
3. **Changes to SAP.** A custom pilot that writes to SAP needs a draft-and-approve design before it starts (see [human approval in AI workflows](https://erpfde.com/topics/human-approval-in-ai-workflows/)).
4. **Entitlement.** Is the route confirmed in the contract?

The course gives four results: **PASS** (may start), **HOLD** (fix one thing first), **FAIL** (redesign or drop) and **ACTIVATE** (already included; plan an activation, not a pilot).

#### The route decides the money

| Route | Typical candidate at Calder | What to confirm | Pilot budget covers |
| --- | --- | --- | --- |
| Base AI | Joule for buyers and AP clerks in `CP10` | That the feature is Base AI for your product and edition | Activation, training, measuring adoption |
| Premium AI | SAP Cash Application for incoming payments | AI Units in the order form, or a quote; the conversion rate for the service | Configuration, AI Units consumed, measuring |
| Custom-built | `AGT_INV_TRIAGE`, the invoice exception agent | A BTP agreement for the runtime; the model and tool costs | Build, runtime, model calls, measuring |

As of 23 November 2026, SAP's pricing page says custom agents in productive runtime are free through the end of 2026 and billed through the SAP BTP Enterprise Agreement after that ([SAP AI plans and pricing](https://www.sap.com/products/artificial-intelligence/pricing.html)). A pilot starting in January 2027 should budget runtime from day one. The radar page [Pricing custom agents after the free runtime](https://erpfde.com/topics/pricing-custom-agents-after-the-free-runtime/) covers what SAP has and hasn't published.

#### The calendar

A RISE programme publishes dates: SAP Learning describes Realize as waves of one to three months with sprints of two to four weeks, and cutover planned in Realize and run in Deploy ([SAP Learning](https://learning.sap.com/courses/discovering-sap-activate-implementation-tools-and-methodology/analyzing-each-phase-of-sap-activate)). From those dates the pilot needs two lists: **key-user blackouts** and **production freezes**. It also needs one date: the **scope freeze** for the release the pilot would scale into.

```mermaid
flowchart LR
  G0[G0 entry gate] --> W1[Weeks 1-2<br/>baseline, design]
  W1 --> G1[G1 design review]
  G1 --> W3[Weeks 3-8<br/>build, test<br/>S4D and S4Q]
  W3 --> G2[G2 readiness]
  G2 --> W9[Weeks 9-11<br/>live trial in S4P<br/>drafts only]
  W9 --> G3[G3 decide<br/>before scope freeze]
```

The pilot's weeks map to the programme's gates. G1 is a design review by the programme's design authority, using the same clean core questionnaire the programme answers in SAP Cloud ALM. G2 is the programme's normal readiness check before a transport to production. G3 is a decision the steering committee takes, with numbers.

#### The business case

The case uses the target landscape. Calder's numbers are course values: `CP10` posts about 1,500 supplier invoices a month and `CP20` about 1,000, which join `CP10`'s system after go-live. The pilot's job is to replace the assumed share of blocked invoices and the assumed minutes per invoice with measured ones. Use the method from [the AI business case](https://erpfde.com/topics/the-ai-business-case/); this topic adds only the rule that the volumes must be the target system's.

### Build it yourself: a pilot plan that fits the programme

**Before you start:** complete [Set up your computer for this course](https://erpfde.com/topics/set-up-your-computer/) and [Set up for Unit 12](https://erpfde.com/topics/set-up-for-unit-12/). This walkthrough doesn't repeat those steps.

You will write Calder's candidate list and programme calendar as data, run the entry gate on four candidates, find the 12-week windows the calendar allows, compute the business case and write a one-page pilot charter.

```mermaid
flowchart LR
  A[register --sample] --> B[gates]
  B --> C[window --pilot P01]
  C --> D[case --pilot P01]
  D --> E[charter --pilot P01]
```

> **Note** Words you will meet. **JSON:** a text format for structured data that people and programs can both read. **Entitlement:** what your contract allows you to use. **Blackout:** a period when a group of people or a system can't be used for the pilot. **Charter:** a one-page agreement that says what a pilot will do, when, and how it will be judged.

#### What you need

- The course folder `orchestrate-course` with its `.venv`, from the setup topics.
- Nothing else: the script uses only Python's built-in modules, and no account or key.
- Time: about 30 minutes. Cost: free.

Calder Pumpworks is fictional. Its landscape (`CP10` on S/4HANA Cloud Private Edition under RISE, systems `S4D`, `S4Q`, `S4P`; `CP20` on ECC moving in on 5 July 2027) comes from [landscape and deployment options](https://erpfde.com/topics/landscape-and-deployment-options/) and [data migration strategy](https://erpfde.com/topics/data-migration-strategy/). Every blackout, freeze, deadline, volume and rate in the script is a course value, not an SAP price or standard. Nothing connects to an SAP system.

#### Step 1: Open your course folder and turn on the virtual environment

1. Open VS Code, choose **File > Open Folder**, and open `orchestrate-course`.
2. Open a terminal: **Terminal > New Terminal**.
3. Turn on the virtual environment:

   - **Windows (PowerShell):**

     ```powershell
     .venv\Scripts\Activate.ps1
     ```

   - **macOS / Linux:**

     ```bash
     source .venv/bin/activate
     ```

4. You should see `(.venv)` at the start of the prompt. The `unit12` folder exists from Set up for Unit 12. If it doesn't, create it with `mkdir unit12` (the same command works in both terminals).

Run every command from the course folder, not from inside `unit12`. On macOS or Linux, if `python` isn't found before `.venv` is active, use `python3`.

#### Step 2: Create the script

1. In VS Code's Explorer, right-click `unit12` and choose **New File**. Name it `rise_pilot.py`.
2. Paste in the code below and save.

```python
"""Fit a 12-week AI pilot into Calder's RISE programme (course lab, Unit 12).

Calder Pumpworks is fictional. Every date, rule, rate and volume here is a
course value, not an SAP price or an SAP standard. Built-in modules only.

Commands:
  python unit12/rise_pilot.py register --sample   write the candidates and the programme calendar
  python unit12/rise_pilot.py gates               run the entry gate (G0) on every candidate
  python unit12/rise_pilot.py window --pilot P01  find the 12-week windows the programme allows
  python unit12/rise_pilot.py case --pilot P01    the business case, with and without CP20's volume
  python unit12/rise_pilot.py charter --pilot P01 write the one-page pilot charter
"""
import argparse
import datetime as dt
import json
import sys
from pathlib import Path

HERE = Path(__file__).resolve().parent / "pilot"
CANDIDATES = HERE / "candidates.json"
PROGRAMME = HERE / "programme.json"

LEVEL_RANK = {"A": 1, "B": 2, "C": 3, "D": 4}
ROUTES = {
    "base": "Base AI: included in the cloud subscription, no AI Units",
    "premium": "Premium AI: consumed through AI Units",
    "custom": "Custom-built AI: free design time, runtime billed through the BTP agreement",
}
# The pilot's shape: which weeks need key users, which week moves to production.
KEY_USER_WEEKS = [1, 2, 7, 8, 9, 10, 11]
PROD_WEEKS = [9, 10, 11]
PHASES = [
    (1, 2, "Baseline and design", "G1 design review at the end of week 2"),
    (3, 8, "Build and test in S4D and S4Q", "Key users test in weeks 7 and 8"),
    (9, 11, "Live trial in S4P, drafts only", "G2 before the transport in week 9"),
    (12, 12, "Measure and decide", "G3 scale, change or stop"),
]


def sample_candidates():
    return [
        {"id": "P01", "name": "Invoice exception triage agent (AGT_INV_TRIAGE)",
         "system": "CP10 S/4HANA", "route": "custom",
         "components": [{"what": "Read blocked invoices and POs through released APIs", "level": "A"},
                        {"what": "Write proposals to a task list on BTP", "level": "A"}],
         "changes_sap": False, "entitlement": "confirmed",
         "case": {"invoices_cp10": 1500, "invoices_cp20": 1000, "blocked_share": 0.12,
                  "minutes_before": 30, "minutes_after": 12, "cost_per_hour": 60.0,
                  "pilot_days": 40, "scale_days": 20, "day_rate": 900.0,
                  "run_cost_month": 250.0, "payback_months_max": 12}},
        {"id": "P02", "name": "SAP Cash Application for CP10's incoming payments",
         "system": "CP10 S/4HANA", "route": "premium",
         "components": [{"what": "SAP-delivered matching service, configured", "level": "A"}],
         "changes_sap": True, "entitlement": "unconfirmed"},
        {"id": "P03", "name": "Joule in CP10 for buyers and AP clerks",
         "system": "CP10 S/4HANA", "route": "base",
         "components": [{"what": "SAP-delivered assistant, activated", "level": "A"}],
         "changes_sap": False, "entitlement": "confirmed"},
        {"id": "P04", "name": "Agent that rewrites PO delivery dates in Augsburg",
         "system": "CP20 ECC", "route": "custom",
         "components": [{"what": "Read POs through a classic BAPI", "level": "B"},
                        {"what": "Write delivery dates straight into the PO table", "level": "D"}],
         "changes_sap": True, "entitlement": "confirmed"},
    ]


def sample_programme():
    return {
        "programme": "CP20 joins CP10's S/4HANA (option A), RISE with SAP",
        "today": "2026-11-23",
        "earliest_start": "2026-12-07",
        "decision_deadline": "2027-04-09",
        "retiring_systems": {"CP20 ECC": "2027-07-05"},
        "key_user_blackouts": [
            ["2026-12-21", "2027-01-08", "Year-end close"],
            ["2027-02-15", "2027-02-19", "Mock load 1 validation"],
            ["2027-04-12", "2027-04-16", "Mock load 2 validation"],
            ["2027-04-19", "2027-05-28", "Rollout UAT"],
            ["2027-06-07", "2027-06-18", "Dress rehearsal"],
            ["2027-06-21", "2027-08-13", "Cutover and hypercare"],
        ],
        "production_freezes": [
            ["2026-12-14", "2027-01-08", "Year-end freeze"],
            ["2027-06-21", "2027-08-13", "Cutover and hypercare freeze"],
        ],
        "go_live": "2027-07-05",
    }


def load(path):
    if not path.exists():
        sys.exit(f"{path.relative_to(Path.cwd()) if path.is_relative_to(Path.cwd()) else path} not found. "
                 "Run: python unit12/rise_pilot.py register --sample")
    return json.loads(path.read_text(encoding="utf-8"))


def day(text):
    return dt.date.fromisoformat(text)


def find(cands, pid):
    for c in cands:
        if c["id"] == pid:
            return c
    sys.exit(f"No candidate {pid}. Known: {', '.join(c['id'] for c in cands)}")


# ---------- the entry gate ----------
def gate(c, prog):
    """Return (result, reasons). Results: PASS, HOLD, FAIL, ACTIVATE."""
    reasons, result = [], "PASS"
    worst = max(c["components"], key=lambda x: LEVEL_RANK[x["level"]])["level"]
    if c["system"] in prog["retiring_systems"]:
        result = "FAIL"
        reasons.append(f"runs on {c['system']}, which retires {prog['retiring_systems'][c['system']]}")
    if worst == "D":
        result = "FAIL"
        reasons.append("clean core level D (lowest component decides)")
    elif worst == "C" and result != "FAIL":
        result = "HOLD"
        reasons.append("clean core level C needs an architecture exception")
    if c["changes_sap"] and c["route"] == "custom" and result != "FAIL":
        result = "HOLD"
        reasons.append("writes to SAP: needs a draft-and-approve design")
    if c["entitlement"] != "confirmed" and result == "PASS":
        result = "HOLD"
        reasons.append("entitlement not confirmed in the contract")
    if c["route"] == "base" and result == "PASS":
        result = "ACTIVATE"
        reasons.append("included already: activate and measure, no pilot budget")
    if not reasons:
        reasons.append("target system, level A, drafts only, entitlement confirmed")
    return result, worst, reasons


def cmd_register(args):
    if not args.sample:
        sys.exit("Add --sample to write the course's sample files.")
    HERE.mkdir(parents=True, exist_ok=True)
    CANDIDATES.write_text(json.dumps(sample_candidates(), indent=2), encoding="utf-8")
    PROGRAMME.write_text(json.dumps(sample_programme(), indent=2), encoding="utf-8")
    print(f"Wrote {CANDIDATES.name} (4 candidates) and {PROGRAMME.name} to unit12/pilot/")


def cmd_gates(args):
    cands, prog = load(CANDIDATES), load(PROGRAMME)
    print(f"Entry gate (G0), {prog['programme']}")
    print(f"{'ID':4} {'Route':8} {'Level':5} {'Result':9} Reasons")
    for c in cands:
        result, worst, reasons = gate(c, prog)
        print(f"{c['id']:4} {c['route']:8} {worst:5} {result:9} {'; '.join(reasons)}")


# ---------- the window ----------
def overlaps(start, end, ranges):
    return [label for a, b, label in ranges if start <= day(b) and day(a) <= end]


def week(start, n):
    a = start + dt.timedelta(weeks=n - 1)
    return a, a + dt.timedelta(days=4)


def check_start(start, prog):
    problems = []
    for n in KEY_USER_WEEKS:
        a, b = week(start, n)
        for label in overlaps(a, b, prog["key_user_blackouts"]):
            problems.append(f"week {n} key users: {label}")
    for n in PROD_WEEKS:
        a, b = week(start, n)
        for label in overlaps(a, b, prog["production_freezes"]):
            problems.append(f"week {n} production: {label}")
    end = week(start, 12)[1]
    if end > day(prog["decision_deadline"]):
        problems.append(f"decision {end} is after the deadline {prog['decision_deadline']}")
    return end, problems


def windows(prog, last=None):
    start = day(prog["earliest_start"])
    start -= dt.timedelta(days=start.weekday())
    last = last or day(prog["decision_deadline"])
    out = []
    while start <= last:
        end, problems = check_start(start, prog)
        out.append((start, end, problems))
        start += dt.timedelta(weeks=1)
    return out


def cmd_window(args):
    cands, prog = load(CANDIDATES), load(PROGRAMME)
    c = find(cands, args.pilot)
    result = gate(c, prog)[0]
    if result not in ("PASS",):
        sys.exit(f"{c['id']} did not pass the entry gate ({result}). Run: python unit12/rise_pilot.py gates")
    print(f"12-week windows for {c['id']} from {prog['earliest_start']}, decision by {prog['decision_deadline']}")
    fits = []
    for start, end, problems in windows(prog):
        if start + dt.timedelta(weeks=11) > day(prog["decision_deadline"]):
            break
        mark = "FITS" if not problems else "no  "
        print(f"  {start} to {end}  {mark}  {problems[0] if problems else ''}")
        if not problems:
            fits.append(start)
    if fits:
        print(f"Earliest window: {fits[0]} (spare windows: {len(fits) - 1})")
    else:
        print("No window fits. Move the decision deadline or shorten the pilot.")


# ---------- the business case ----------
def business_case(c):
    k = c["case"]
    saved_h = lambda invoices: invoices * k["blocked_share"] * (k["minutes_before"] - k["minutes_after"]) / 60
    cp10 = saved_h(k["invoices_cp10"]) * k["cost_per_hour"]
    cp20 = saved_h(k["invoices_cp20"]) * k["cost_per_hour"]
    invest = (k["pilot_days"] + k["scale_days"]) * k["day_rate"]
    net10 = cp10 - k["run_cost_month"]
    net_all = cp10 + cp20 - k["run_cost_month"]
    return {"hours_cp10": round(saved_h(k["invoices_cp10"]), 1),
            "hours_cp20": round(saved_h(k["invoices_cp20"]), 1),
            "saving_cp10": round(cp10, 2), "saving_cp20": round(cp20, 2),
            "invest": round(invest, 2), "run": k["run_cost_month"],
            "payback_cp10": round(invest / net10, 1), "payback_all": round(invest / net_all, 1),
            "max": k["payback_months_max"]}


def cmd_case(args):
    cands = load(CANDIDATES)
    c = find(cands, args.pilot)
    if "case" not in c:
        sys.exit(f"{c['id']} has no business case inputs in candidates.json.")
    b = business_case(c)
    k = c["case"]
    print(f"Business case for {c['id']} (course values, synthetic)")
    print(f"  Blocked invoices a month: CP10 {k['invoices_cp10'] * k['blocked_share']:.0f}, "
          f"CP20 after go-live {k['invoices_cp20'] * k['blocked_share']:.0f}")
    print(f"  Hours saved a month:      CP10 {b['hours_cp10']}, CP20 {b['hours_cp20']}")
    print(f"  Saving a month (USD):     CP10 {b['saving_cp10']:,.2f}, CP20 {b['saving_cp20']:,.2f}")
    print(f"  Investment (USD):         {b['invest']:,.2f} (pilot {k['pilot_days']} + scale {k['scale_days']} days)")
    print(f"  Run cost a month (USD):   {b['run']:,.2f}")
    for label, months in (("CP10 only", b["payback_cp10"]), ("CP10 + CP20", b["payback_all"])):
        verdict = "within" if months <= b["max"] else "outside"
        print(f"  Payback, {label:11} {months:>5} months ({verdict} the {b['max']}-month horizon)")


# ---------- the charter ----------
def cmd_charter(args):
    cands, prog = load(CANDIDATES), load(PROGRAMME)
    c = find(cands, args.pilot)
    result, worst, reasons = gate(c, prog)
    if result != "PASS":
        sys.exit(f"{c['id']} did not pass the entry gate ({result}); no charter.")
    fits = [s for s, e, p in windows(prog) if not p]
    if not fits:
        sys.exit("No window fits; no charter.")
    start = fits[0]
    b = business_case(c) if "case" in c else None
    lines = [f"# Pilot charter: {c['id']} {c['name']}", "",
             f"Programme: {prog['programme']}. Calder Pumpworks is fictional; all values are course values.", "",
             "## Entry gate (G0)", "",
             f"- Result: {result}. Route: {ROUTES[c['route']]}. Clean core level: {worst}.",
             f"- {'; '.join(reasons)}.", "",
             "## Plan", "", "| Weeks | Dates | Work | Gate |", "| --- | --- | --- | --- |"]
    for a, z, work, g in PHASES:
        span = f"{a}-{z}" if a != z else f"{a}"
        lines.append(f"| {span} | {week(start, a)[0]} to {week(start, z)[1]} | {work} | {g} |")
    if fits[1:]:
        lines += ["", f"Fallback start if the start slips: {fits[1]}."]
    lines += ["", "## Success criteria (measured in weeks 9-11)", "",
              "- Median minutes per blocked invoice at most 15, on at least 100 invoices.",
              "- Owner proposed correctly on at least 90% of those invoices, checked by the AP supervisor.",
              "- The agent changes nothing in SAP: every proposal is a draft a person approves.",
              "", "## Stop rules", "",
              "- Stop if fewer than 80 blocked invoices reach the agent in weeks 9-11.",
              "- Stop if any proposal reaches SAP without a person's approval.", ""]
    if b:
        lines += ["## Business case (synthetic, course values)", "",
                  f"- Investment {b['invest']:,.2f} USD; run cost {b['run']:,.2f} USD a month.",
                  f"- Payback CP10 only: {b['payback_cp10']} months; with CP20 after go-live: "
                  f"{b['payback_all']} months; horizon {b['max']} months.",
                  "- The pilot's job is to replace the assumed share and minutes with measured ones.", ""]
    lines += ["## Sign-off", "", "- Process owner: ______  Date: ______",
              "- Programme design authority: ______  Date: ______", ""]
    out = HERE / f"pilot_charter_{c['id']}.md"
    out.write_text("\n".join(lines), encoding="utf-8")
    print(f"Wrote unit12/pilot/{out.name}: start {start}, decision {week(start, 12)[1]}")


def main():
    p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    sub = p.add_subparsers(dest="cmd", required=True)
    r = sub.add_parser("register"); r.add_argument("--sample", action="store_true"); r.set_defaults(f=cmd_register)
    sub.add_parser("gates").set_defaults(f=cmd_gates)
    for name, f in (("window", cmd_window), ("case", cmd_case), ("charter", cmd_charter)):
        s = sub.add_parser(name); s.add_argument("--pilot", required=True); s.set_defaults(f=f)
    args = p.parse_args()
    args.f(args)


if __name__ == "__main__":
    main()
```

#### Step 3: Write the candidates and the calendar

1. Run:

   ```bash
   python unit12/rise_pilot.py register --sample
   ```

2. You should see:

   ```text
   Wrote candidates.json (4 candidates) and programme.json to unit12/pilot/
   ```

3. Open `unit12/pilot/programme.json` in VS Code. It lists the programme's key-user blackouts (year-end close, two mock load validations, the rollout's UAT, the dress rehearsal, cutover and hypercare), its production freezes, the earliest start (2026-12-07, two weeks to confirm entitlements) and the decision deadline (2027-04-09, the course's scope freeze for the rollout's UAT).
4. Open `unit12/pilot/candidates.json`. Each candidate names its system, its route, its components with a clean core level, whether it changes SAP data, and whether its entitlement is confirmed.

#### Step 4: Run the entry gate

1. Run:

   ```bash
   python unit12/rise_pilot.py gates
   ```

2. You should see:

   ```text
   Entry gate (G0), CP20 joins CP10's S/4HANA (option A), RISE with SAP
   ID   Route    Level Result    Reasons
   P01  custom   A     PASS      target system, level A, drafts only, entitlement confirmed
   P02  premium  A     HOLD      entitlement not confirmed in the contract
   P03  base     A     ACTIVATE  included already: activate and measure, no pilot budget
   P04  custom   D     FAIL      runs on CP20 ECC, which retires 2027-07-05; clean core level D (lowest component decides)
   ```

3. Read each result:
   - **P01**, the invoice exception agent, reads through released APIs and writes proposals to a task list, never to SAP. It may start.
   - **P02**, SAP Cash Application, is SAP-delivered and level A, but Calder's order form (a course assumption) names no AI Units. It waits for the account team.
   - **P03**, Joule for buyers and AP clerks, is Base AI. It needs an activation plan, not a pilot.
   - **P04** fails twice: it runs on a system that retires, and it writes delivery dates straight into a table, which is level D.

#### Step 5: Find the windows

1. Run:

   ```bash
   python unit12/rise_pilot.py window --pilot P01
   ```

2. You should see:

   ```text
   12-week windows for P01 from 2026-12-07, decision by 2027-04-09
     2026-12-07 to 2027-02-26  no    week 11 key users: Mock load 1 validation
     2026-12-14 to 2027-03-05  no    week 2 key users: Year-end close
     2026-12-21 to 2027-03-12  no    week 1 key users: Year-end close
     2026-12-28 to 2027-03-19  no    week 1 key users: Year-end close
     2027-01-04 to 2027-03-26  no    week 1 key users: Year-end close
     2027-01-11 to 2027-04-02  FITS  
     2027-01-18 to 2027-04-09  FITS  
   Earliest window: 2027-01-11 (spare windows: 1)
   ```

3. Notice what blocks the first try: not the build, but the AP key users, who validate the first mock load in week 11. Only two start dates fit, one week apart. That week is the pilot's only slack.
4. Try a candidate that didn't pass:

   ```bash
   python unit12/rise_pilot.py window --pilot P04
   ```

   The script refuses: `P04 did not pass the entry gate (FAIL)`.

#### Step 6: Compute the business case

1. Run:

   ```bash
   python unit12/rise_pilot.py case --pilot P01
   ```

2. You should see:

   ```text
   Business case for P01 (course values, synthetic)
     Blocked invoices a month: CP10 180, CP20 after go-live 120
     Hours saved a month:      CP10 54.0, CP20 36.0
     Saving a month (USD):     CP10 3,240.00, CP20 2,160.00
     Investment (USD):         54,000.00 (pilot 40 + scale 20 days)
     Run cost a month (USD):   250.00
     Payback, CP10 only     18.1 months (outside the 12-month horizon)
     Payback, CP10 + CP20   10.5 months (within the 12-month horizon)
   ```

> **Note** These numbers come from synthetic course values: a 12% blocked share, 30 minutes per blocked invoice before and 12 after, 60.00 USD an hour, the course day rate of 900 USD and an assumed run cost of 250 USD a month (not an SAP price). They show the method, not a result from a real SAP system. The pilot's weeks 9-11 exist to replace the share and the minutes with measured values.

#### Step 7: Write the charter

1. Run:

   ```bash
   python unit12/rise_pilot.py charter --pilot P01
   ```

2. You should see:

   ```text
   Wrote unit12/pilot/pilot_charter_P01.md: start 2027-01-11, decision 2027-04-02
   ```

3. Open `unit12/pilot/pilot_charter_P01.md`. Its plan table reads:

   ```text
   | 1-2 | 2027-01-11 to 2027-01-22 | Baseline and design | G1 design review at the end of week 2 |
   | 3-8 | 2027-01-25 to 2027-03-05 | Build and test in S4D and S4Q | Key users test in weeks 7 and 8 |
   | 9-11 | 2027-03-08 to 2027-03-26 | Live trial in S4P, drafts only | G2 before the transport in week 9 |
   | 12 | 2027-03-29 to 2027-04-02 | Measure and decide | G3 scale, change or stop |
   ```

4. Read the success criteria and stop rules. The live trial covers three weeks, about 125 blocked invoices at 180 a month, so the criteria ask for at least 100 and the stop rule fires below 80. A criterion the volume can't reach is a criterion nobody can pass.

#### Step 8: Save your work in Git

```bash
git add unit12/rise_pilot.py unit12/pilot
git commit -m "Unit 12: pilot gate, window, business case and charter for Calder's RISE programme"
```

Check with `git status` first: you must not see `.env`.

#### How the code works

| Part of the script | What it does |
| --- | --- |
| `sample_candidates()`, `sample_programme()` | The course's four candidates and the programme calendar, written as JSON so you can edit them |
| `gate()` | The entry gate: target system, worst clean core level, writes to SAP, entitlement, Base AI; returns PASS, HOLD, FAIL or ACTIVATE with reasons |
| `check_start()` | For one start date, checks the key-user weeks against blackouts, the production weeks against freezes, and the end against the deadline |
| `windows()` | Tries every Monday from the earliest start and keeps the problems for each |
| `business_case()` | Hours and money saved a month for each company, the investment, and payback with and without CP20 |
| `cmd_charter()` | Writes the one-page charter from the gate result, the earliest window, the criteria and the case |

The **calendar is data**: when the programme moves a mock load, you edit `programme.json` and run `window` again. The gate is a **rule the design authority can read**, not a judgement hidden in a slide.

#### If something goes wrong

| What you see | What it means | What to do |
| --- | --- | --- |
| `python` is not recognized, or `command not found` | Python isn't installed, or the terminal can't find it | Windows: repeat Unit 2, Step 1, then open a new terminal. macOS/Linux: use `python3` until `.venv` is active |
| `unit12/pilot/candidates.json not found` | You skipped Step 3 | Run `python unit12/rise_pilot.py register --sample` |
| `No candidate P06` | The ID isn't in `candidates.json` | Check the spelling, or add the candidate |
| `did not pass the entry gate` | `window` and `charter` only plan candidates with PASS | Run `gates` and fix the reason first |
| `json.decoder.JSONDecodeError` | A typing error in a JSON file, often a missing comma | Undo your edit, or run `register --sample` to start again |
| `KeyError: 'level'` | A component in your new candidate has no `level` | Give every component a level from A to D |
| A proxy or network message | This lab needs no network | Nothing to fix; the lab runs offline |

### The SAP way

As of 23 November 2026, these are the SAP pieces a pilot inside a RISE programme touches. Your contract decides which you hold.

**RISE with SAP methodology and clean core gates.** SAP Learning's course on the RISE with SAP methodology says it augments the SAP Activate roadmap from Discover to Run. Clean core quality gates are answered as questionnaires in SAP Cloud ALM and reviewed with a RISE with SAP Enterprise Architect; the first gate is completed in Prepare. The methodology lists over 150 recommended clean core tasks in Cloud ALM ([SAP Learning](https://learning.sap.com/courses/introducing-the-rise-with-sap-methodology-for-sap-partners-and-customers/defining-the-standardized-framework)). Two details matter for a pilot:

- The Discover phase hands over a Clean Core Maturity Assessment and a RISE Adoption Plan, and the assessment report has an **AI Adoption** section. Start the pilot's candidate list from it.
- The report covers business processes, extensibility, data, integration and operations. Answer the pilot's G1 review in the same five areas.

**Extension levels.** Rate the pilot like any extension, by its weakest component, on the A to D scale ([SAP Learning](https://learning.sap.com/courses/practicing-clean-core-extensibility-for-sap-s-4hana-cloud/explaining-extensibility-model-best-practices_e290f382-800e-40ef-a203-85a13115f487)). The course topics on [fit-to-standard and extension choices](https://erpfde.com/topics/fit-to-standard-and-extension-choices/) and [integration platform and clean core](https://erpfde.com/topics/integration-platform-and-clean-core/) apply the same scale to Calder.

**Entitlements.** Three SAP pages set out the commercial model:

- **Base AI** is included in every SAP cloud subscription with no AI Units; it covers Joule Base and embedded AI, which varies by solution ([pricing](https://www.sap.com/products/artificial-intelligence/pricing.html)).
- **Premium AI** is consumed through AI Units. SAP's AI Units page says they are bought in blocks of 100 a year on contracts of one to three years, consumed at conversion rates per request, user or record ([AI Units](https://www.sap.com/products/artificial-intelligence/ai-units.html)). SAP Learning adds that unused units expire after 12 months ([SAP Learning](https://learning.sap.com/courses/exploring-sap-cloud-erp/understanding-subscription-licensing_b664e32d-b9fb-487f-8f64-5f19894d3d9f)). The AI Units page lists RISE with SAP S/4HANA Cloud Private Edition (premium and premium plus) among solutions with existing AI Unit contracts, and asks those customers to contact their sales executive for a contract change.
- **Custom-built AI** is free to design; its productive runtime is billed through the SAP BTP Enterprise Agreement, and the pricing page says custom agents run free through the end of 2026.
- SAP says it is **changing the model**: most generative AI features that need AI Units today move into Base AI, and the per-user Joule premium packages are retired, after a terms acceptance process. The page says "later this year" and gives no date. A pilot planned for 2027 should list this as a dependency.

For RISE specifically, SAP's July 2024 announcement gave all RISE customers Joule on Private Edition and included AI Units for premium edition customers to pilot SAP Cash Application, SAP Business Integrity Screening and SAP Field Service Management ([SAP News](https://news.sap.com/2024/07/ai-available-rise-with-sap-commercial-packages/)). Whether your package carries such units today is in your order form, not on a web page.

**GROW programmes.** GROW runs on Public Edition, always as a new implementation ([SAP Learning](https://learning.sap.com/courses/exploring-sap-cloud-erp/differentiating-grow-and-rise-with-sap)). The same gate applies. The main difference is data: a new system has little history for a baseline, so a GROW pilot often measures today's process outside SAP, or measures the baseline in its first live weeks.

**Success plans.** SAP describes three plans: Foundational, included in every cloud subscription; Advanced; and Max. From 2 November 2026, SAP says Max is available to every customer, directly or through partners (Cloud Choice and Resell, with managed service providers in pilot), and includes "tailored AI use case adoption, including prototype development" before scaling ([SAP News](https://news.sap.com/2026/11/ai-transformation-guidance-for-every-customer/), [Max Success Plan](https://www.sap.com/services-support/max-success-plan.html)). If your programme holds Max, ask whether the pilot can use that prototyping; it may change who builds week 3 to 8.

**What we didn't find.** None of the pages we read defines an AI pilot inside the RISE methodology, an AI-specific quality gate, or a price per AI Unit. Ask your RISE enterprise architect how AI candidates enter the clean core gates, and ask your account team for the conversion rate of the service you want to pilot.

### Build vs. SAP

| Situation | Use | Why |
| --- | --- | --- |
| The feature is Base AI for your edition | SAP's feature, activated and measured | Included; a pilot budget would pay for nothing |
| An SAP premium service covers the process (cash matching, document extraction) | SAP's service with AI Units | Maintained by SAP; you pay per use, so measure volume first |
| The process is specific to you, or no SAP service covers it | A custom agent on SAP BTP, level A, drafts only | Fits your exceptions; you own the runtime cost and the maintenance |
| The idea needs the old system's internals | Wait for go-live, or redesign on released APIs | A level D pilot on a retiring system is built twice |
| You hold the Max Success Plan | Ask SAP to prototype inside its AI use case adoption | May cover weeks 3 to 8; the gates and calendar still apply |
| No window fits before the scope freeze | Pilot after hypercare, on the target system | Better than squeezing it into UAT |

### Architecture view

**Where it sits.** Calder's invoice pilot lives beside `CP10`'s S/4HANA, never inside it. It reads through released APIs and writes proposals to a task list on SAP BTP. It travels the programme's own route from `S4D` to `S4Q` to `S4P`.

```mermaid
flowchart LR
  S4P[CP10 S/4HANA<br/>S4P, RISE] -- released APIs, read --> AG[AGT_INV_TRIAGE<br/>on SAP BTP]
  AG --> GW[AI gateway<br/>model calls]
  AG --> TL[Task list<br/>proposals]
  AP[AP accountant] --> TL
  AP -- approves, acts --> S4P
  ECC[CP20 ECC<br/>retires 2027-07-05] -. migrates .-> S4P
```

**Non-functional requirements.**

| Requirement | Typical target in the pilot | What breaks if missed |
| --- | --- | --- |
| Changes to SAP | None by the agent; people act | The pilot becomes an unapproved posting path |
| Authorization | Technical user with read access to invoices and purchase orders only | An audit finding in the middle of the rollout |
| Data volume | About 180 blocked invoices a month now, about 300 after go-live (course values) | A case built on the wrong volume |
| Latency | A proposal ready before the AP accountant opens the invoice, within minutes | Nobody waits for the agent; adoption falls |
| Cost | Runtime and model calls measured per invoice from week 9 | No real run cost for the G3 decision |
| Freeze compliance | No transport to `S4P` during a freeze | A conflict with the programme's change control |

**Integration and identity.** Data flows one way, from `CP10` to the agent, through released OData APIs for supplier invoices and purchase orders, the ones [procure-to-pay, end to end](https://erpfde.com/topics/procure-to-pay-end-to-end/) traces. The agent runs under its own technical user. The person who acts uses their own SAP user and authorizations, so every change in SAP is traceable to a person.

**The decision to record.**

- **Context:** a 12-week AI pilot is wanted during `CP20`'s move into `CP10`'s S/4HANA; key users are scarce and ECC retires in July 2027.
- **Options:** A build on `CP20`'s ECC now; B build on `CP10` with released APIs now, scale to `CP20` at go-live; C wait until after hypercare.
- **Decision:** B, starting 2027-01-11, deciding by 2027-04-02.
- **Consequences:** CP20's invoices aren't in the pilot; the scale build must join the rollout's UAT; the pilot's role and test cases enter the programme's design.

**What a design review will ask.**

1. What is the pilot's clean core level, and which component sets it?
2. Which entitlement pays for it, and what happens to the cost when SAP's AI model changes?
3. Which programme gates does it pass through, and who signs G3?
4. What does the agent's technical user see, and can it change anything?
5. If G3 says "stop", what is removed, and from which systems?

### Production concerns

**Security and authorizations.** Give the agent a technical user in `CP10` with read access to the objects the pilot needs, and nothing that posts. Design it with the programme's role team; see [roles and authorization design](https://erpfde.com/topics/roles-and-authorization-design/).

**Governance.** The pilot enters the programme's design authority and risk log like any workstream. Add it to the AI register described in [AI governance for SAP programs](https://erpfde.com/topics/ai-governance-for-sap-programs/).

**Evaluation.** Weeks 9-11 produce the evidence. Keep a frozen test set from week 8 and a log of every proposal and decision; [UAT and sign-off](https://erpfde.com/topics/uat-and-sign-off-for-ai-in-sap-programs/) shows how to turn it into a verdict.

**Cost.** Measure runtime and model cost per invoice in the live weeks. Budget for the runtime after the end of 2026 and for SAP's announced change to the AI model.

**Operations.** Name who watches the agent in weeks 9-11 and who can switch it off. During the rollout's hypercare, the same people are busy with the go-live; a scaled agent needs an owner who isn't. [Hypercare and drift after go-live](https://erpfde.com/topics/hypercare-and-drift-after-go-live/) covers monitoring and on-call for the agent once it is live.

**Clean core.** Keep the pilot at level A. If a feature needs an internal object, record it as an exception at G1 rather than discovering it at G2.

### Pitfalls

- **Building on the system that retires.** The pilot works, then has to be rebuilt for the target.
- **Counting today's volumes only.** Inside a migration the case often turns on the volumes that arrive at go-live.
- **Placing the live weeks on top of UAT or a mock load.** Key users can't do both, and the pilot's numbers suffer.
- **Treating included AI as a pilot.** A pilot budget for Base AI pays for nothing; plan the activation instead.
- **Assuming the 2024 package terms.** SAP's AI commercial model is changing; read the current order form and pricing page.
- **No stop rule.** A pilot without one never ends, and the programme carries it into hypercare.
- **Criteria the volume can't reach.** Check that three live weeks produce enough cases to judge.

### Exercise

Add a fifth candidate and move a programme date, then see what changes.

1. Open `unit12/pilot/candidates.json` and add, before the closing `]`, a candidate `P05` named "Overdue receivables call list", system `CP10 S/4HANA`, route `custom`, one component "Read a custom view on internal tables" at level `C`, `changes_sap` false, entitlement `confirmed`. Mind the comma after the previous candidate.
2. Run `python unit12/rise_pilot.py gates` and confirm P05 shows `HOLD` with the reason about level C.
3. Change P05's component to "Read released CDS views for receivables" at level `A`, and run `gates` again.
4. In `unit12/pilot/programme.json`, the programme moves mock load 1 validation to `2027-03-08` to `2027-03-12`. Edit that blackout.
5. Run `python unit12/rise_pilot.py window --pilot P05` and write down which windows fit now.
6. Write two sentences in `unit12/pilot/notes.md`: what the moved mock load did to the pilot's dates, and what you would tell the programme lead.

**Done when** `gates` shows P05 as `PASS`, `window --pilot P05` prints its windows with the moved mock load, and `notes.md` names the earliest window and your message to the programme lead. Keep the charter and notes: the capstone's engagement plan uses them.

### Check yourself

1. Which candidate result should the entry gate give a Joule feature that SAP lists as Base AI for your edition?
   - A. PASS, because it is level A and confirmed
   - B. ACTIVATE, because it is included and needs no pilot budget
   - C. HOLD, because the AI Units must be confirmed in the contract first
   - D. FAIL, because SAP features can't be piloted

   Answer: B. Base AI is included in the cloud subscription with no AI Units. The script returns ACTIVATE so the team plans an activation and measures it, instead of funding a pilot.

2. P04 reads POs through a classic BAPI and writes delivery dates straight into the PO table. Which clean core level does it get?
   - A. Level B, because most of its reads use classic APIs
   - B. Level A, because the agent runs outside SAP on BTP
   - C. Level C, because it touches internal tables only once
   - D. Level D, because the lowest-ranked component decides

   Answer: D. SAP rates an extension by the lowest-ranked technology it uses. A direct write to an SAP table is not recommended, so the whole candidate is level D.

3. The first start date Calder tried, 2026-12-07, doesn't fit. What blocks it?
   - A. Week 11 needs key users while they validate mock load 1
   - B. The production freeze over year end covers weeks 9 to 11
   - C. The decision would land after the scope freeze
   - D. The build weeks overlap the year-end close

   Answer: A. The window check found that week 11, a live trial week, falls on the mock load 1 validation. Build weeks don't need key users, so the year-end close doesn't block them.

4. Why does `check_start()` test production weeks against freezes but build weeks against nothing?
   - A. Build weeks happen on the developer's laptop only
   - B. Freezes in a RISE programme never apply to S4Q
   - C. Only weeks 9 to 11 run in S4P, where freezes apply
   - D. Build weeks are excluded from the decision deadline

   Answer: C. The pilot moves to production for the live trial in weeks 9 to 11. Earlier weeks run in S4D and S4Q, so a production freeze doesn't stop them; key-user needs are checked separately.

5. The pilot's business case uses 1,500 CP10 invoices and 1,000 CP20 invoices a month. Why both?
   - A. CP20's invoices are cheaper to triage than CP10's
   - B. The investment is split between the two companies
   - C. SAP charges AI Units per company code in the system
   - D. After go-live both companies post in CP10's system

   Answer: D. CP20 joins CP10's S/4HANA on 5 July 2027, so the scaled agent serves both. The case must count the target system's volumes, which is what brings payback inside 12 months.

6. Three live weeks give about 125 blocked invoices. Why does the charter ask for at least 100 rather than 150?
   - A. Fewer cases make the agent's accuracy look a little higher
   - B. A criterion the volume can't reach can't be passed
   - C. The AP supervisor can only check 100 a month
   - D. SAP Cloud ALM limits a test plan to 100 cases

   Answer: B. The success criteria must be reachable with the volume the live weeks produce. The stop rule at 80 catches a trial that sees too few invoices to judge.

7. Your account team says the AI Units for the premium service you want to pilot aren't in your order form. What does the gate do, and what next?
   - A. FAIL; drop the idea and build a custom agent instead
   - B. PASS; start and settle the contract before week 9
   - C. HOLD; ask for a quote and the conversion rate first
   - D. ACTIVATE; premium services are included in RISE

   Answer: C. An unconfirmed entitlement holds the candidate. The fix is commercial, not technical: get the units quoted and the conversion rate for the service, then run the gate again.

8. SAP's pricing page says custom agents run free through the end of 2026. How should a pilot starting 2027-01-11 budget runtime?
   - A. As zero, because the pilot is not productive use
   - B. From day one, billed through the BTP agreement
   - C. Only after the week-12 decision to scale
   - D. In AI Units, at the Base AI conversion rate

   Answer: B. The free runtime period ends before the pilot starts, and the page says the productive runtime is billed through the SAP BTP Enterprise Agreement. Measuring that cost in the live weeks is part of the evidence for G3.

## Sources

- [SAP AI plans and pricing (sap.com)](https://www.sap.com/products/artificial-intelligence/pricing.html): Opened 2026-11-23. Base AI included in every cloud subscription with no AI Units (Joule Base, embedded AI); Premium AI through AI Units (agents, document AI, document grounding; Joule for Consultants per user); custom-built AI free to design, runtime billed through the SAP BTP Enterprise Agreement, custom agents in productive runtime free through the end of 2026; SAP says it is evolving the AI commercial model so most generative AI capabilities needing AI Units move into Base AI, with a terms acceptance process
- [Simplify AI consumption with a unified AI currency: AI Units (sap.com)](https://www.sap.com/products/artificial-intelligence/ai-units.html): Opened 2026-11-23. AI Units bought in blocks of 100 per year, 1 to 3 year contracts, consumed at conversion rates per request, user or record; RISE with SAP S/4HANA Cloud Private Edition (premium, premium plus) customers with AI Unit contracts contact their SAP sales executive for a contract change
- [Understanding Subscription Licensing (SAP Learning, Exploring SAP Cloud ERP)](https://learning.sap.com/courses/exploring-sap-cloud-erp/understanding-subscription-licensing_b664e32d-b9fb-487f-8f64-5f19894d3d9f): Opened 2026-11-23. Private Edition users licensed by full use equivalents; Base AI included and consumes no AI Units; Premium AI mainly through AI Units sold annually in blocks of 100, unused units expire after 12 months; customer-built AI free design time, runtime billed on use; SAP Build Process Automation included in GROW and RISE packages
- [SAP Makes AI Available to All RISE with SAP Customers with Improved Commercial Packages (SAP News, 16 July 2024)](https://news.sap.com/2024/07/ai-available-rise-with-sap-commercial-packages/): Opened 2026-11-23. Joule for all RISE customers in Private Edition; AI Units included for premium edition customers to pilot SAP Cash Application, SAP Business Integrity Screening and SAP Field Service Management; premium plus with expanded access to generative AI. A 2024 statement: check today's order form
- [Differentiating GROW and RISE with SAP (SAP Learning, Exploring SAP Cloud ERP)](https://learning.sap.com/courses/exploring-sap-cloud-erp/differentiating-grow-and-rise-with-sap): Opened 2026-11-23. GROW for new customers on Public Edition, always greenfield; RISE for existing customers on Private Edition, greenfield or brownfield; Foundational, Advanced and Max success plans, Max with tailored AI use case adoption services
- [AI and Transformation Guidance for Every Customer (SAP News, 2 November 2026)](https://news.sap.com/2026/11/ai-transformation-guidance-for-every-customer/): Opened 2026-11-23. Max Success Plan available to every customer from 2 November 2026, directly or through partners (Cloud Choice and Resell), managed service providers piloting; includes tailored AI use case adoption with prototype development before scaling; Foundational included in every cloud subscription
- [Max Success Plan (sap.com)](https://www.sap.com/services-support/max-success-plan.html): Opened 2026-11-23. Includes the Advanced Success Plan; dedicated success plan manager; transformation advisory, tailored AI use case adoption, cross-solution process improvement; for the lifetime of the cloud subscription
- [Defining the Standardized Framework (SAP Learning, Introducing the RISE with SAP Methodology)](https://learning.sap.com/courses/introducing-the-rise-with-sap-methodology-for-sap-partners-and-customers/defining-the-standardized-framework): Opened 2026-11-23. RISE with SAP methodology augments SAP Activate (Discover to Run); clean core quality gates answered as questionnaires in SAP Cloud ALM and reviewed with a RISE with SAP Enterprise Architect, the first in Prepare; over 150 clean core tasks; Discover deliverables include Clean Core Maturity Assessment and RISE Adoption Plan; the assessment report has an AI Adoption section and covers processes, extensibility, data, integration and operations
- [Exploring Clean Core Extensibility Best Practices (SAP Learning)](https://learning.sap.com/courses/practicing-clean-core-extensibility-for-sap-s-4hana-cloud/explaining-extensibility-model-best-practices_e290f382-800e-40ef-a203-85a13115f487): Opened 2026-11-23. Levels A (released APIs) to D (not recommended objects: modifications, writes to SAP tables); an extension is rated by the lowest-ranked technology it uses; the earlier three-tier model is sunset
- [Analyzing each phase of SAP Activate (SAP Learning)](https://learning.sap.com/courses/discovering-sap-activate-implementation-tools-and-methodology/analyzing-each-phase-of-sap-activate): Opened 2026-11-23. Explore runs fit-to-standard workshops; Realize builds in waves of one to three months with sprints of two to four weeks; cutover is planned in Realize and executed in Deploy
