# Migrating from Process Integration and Process Orchestration: assess, plan waves, test and switch off

> Plan a move from SAP PI/PO to SAP Integration Suite, with SAP's assessment and migration tools, what doesn't map, wave sequencing, parallel run and switch-off.

- Course: Orchestrate, Unit 26 · Integration in depth
- Page: https://erpfde.com/topics/migrating-from-pi-po/
- Updated: 2026-11-30
- Reading time: Foundational 9 min, Deep 40 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

**SAP Process Integration (PI)** and **SAP Process Orchestration (PO)** are SAP's older middleware. They sit in the customer's own data center and carry messages between SAP ERP and everything else: CRM orders, bank files, EDI with customers, shop-floor confirmations. Many companies have run them for fifteen years, and many have hundreds of interfaces on them.

Release 7.5 is the last one. SAP states that PI and PO 7.5 follow SAP NetWeaver 7.5: **mainstream maintenance until the end of 2027, optional extended maintenance until the end of 2030** ([SAP Community](https://pages.community.sap.com/topics/abap/netweaver-maintenance-strategy)). SAP's successor is **SAP Integration Suite**, a cloud service on SAP Business Technology Platform (BTP).

A migration is not a copy. Some interfaces should stop, some are replaced by SAP's prebuilt content, many move with SAP's tools, and some must be redesigned because the old feature has no equal in the new platform. The work is mostly sorting, testing and switching over carefully, one group of interfaces at a time.

The decision for a leader: **set the switch-off date first, then plan backwards**, and fund the testing. SAP's own course puts testing at around 65% of the migration effort ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/testing-your-migration)).

This topic uses a fictional company, **Pelgrave Valve Company**, which runs PO 7.5 in front of its SAP ECC. Calder Pumpworks, the course's running company, runs no PI/PO, so it can't show the problem.

### Why it matters to the business

Every interface on PO is a business process that stops if the message stops. At Pelgrave, PO carries sales orders from the CRM (9,000 a month), goods movements from the warehouse, payments to the bank, EDI orders and invoices with distributors, and production confirmations from the plant. All numbers here are course values.

What is at stake:

- **Support risk.** After 2027, fixes for PO need extended maintenance, which SAP prices at a premium of two percentage points on the maintenance basis ([SAP Community](https://pages.community.sap.com/topics/abap/netweaver-maintenance-strategy)). After 2030 the platform underneath, SAP NetWeaver AS Java 7.5, moves to customer-specific maintenance with no follow-on release, and SAP's Java support arrangements end ([SAP News, 7 October 2026](https://news.sap.com/2026/10/beyond-2030-sap-business-suite-7-sap-netweaver-customers-third-party-databases-java/)).
- **Running two platforms.** Most companies run PO and Integration Suite side by side for a while; SAP's course says many do until migration is complete ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/developing-a-migration-approach)). Every extra month is two sets of licenses, monitoring and skills.
- **Outage risk at switch-over.** A bank file that goes out twice, or an EDI order that is lost, costs more than the whole migration of that interface. That is why testing dominates.
- **A chance to clean up.** Interfaces nobody uses still cost testing time if they are moved. Pelgrave finds two that sent nothing for a year.

> **Note** **For functional consultants.** A PO migration changes your work even though no configuration in SD, MM or FI changes. You provide the test messages and expected results for each process, especially edge cases (credit-blocked orders, partial deliveries, rejected payments). You confirm that each process works after its wave switches over, so plan time in each wave's test window. IDoc partner profiles and RFC destinations in ECC may point to a new address after cutover; the basis team changes them, you check that documents still post. Interfaces marked for retirement need your sign-off that the business no longer needs them.

### How SAP does it

As of 30 November 2026, SAP offers these pieces for a PO move:

- **SAP Integration Suite** as the target. Its Cloud Integration capability runs integration flows, the programs that replace PO's configured scenarios. The [Cloud Integration flows topic](https://erpfde.com/topics/cloud-integration-flows-in-depth/) explains flows.
- **Migration Assessment**, a capability of Integration Suite. It reads the PO system's design and configuration, sorts each integration scenario into *Ready to migrate*, *Adjustment required* or *Evaluation required*, and estimates effort in sizes S to XL ([SAP Developers tutorial](https://developers.sap.com/tutorials/migration-assessment.html)).
- **Migration tooling** inside Cloud Integration. A wizard turns supported PO scenarios into integration flows from templates; SAP's course says it aims at 60 to 70% time savings, with manual work still needed ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/automating-migration-of-artifacts)).
- **Both tools are part of the Integration Suite subscription**, according to a customer reference architecture on SAP's Architecture Center ([SAP Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/8566b4)).
- **Edge Integration Cell**, a way to run Integration Suite flows in the customer's own environment while designing them in the cloud. The same reference architecture recommends it for integrations that must stay on premise; the [Edge Integration Cell topic](https://erpfde.com/topics/edge-integration-cell/) covers when to choose it.
- **Help to start.** SAP's migration page offers a free migration assessment, financial incentives in cloud credits (terms apply), migration services and a list of partners in the SAP Migration Factory ([sap.com](https://www.sap.com/uk/products/technology-platform/integration-suite/migration.html)). Ask your account executive what applies to your contract.

### A decision guide: what happens to each interface

Every interface gets one of these outcomes. The labels are this course's; SAP's tools give the category and size, and people decide the outcome.

| Outcome | When | Pelgrave example | Effort |
| --- | --- | --- | --- |
| **Retire** | Nothing has used it for months, or the business process is gone | Supplier catalog upload, silent for a year | A sign-off, no build |
| **Replace** | SAP or the other vendor publishes prebuilt content for the pair | Employee data from the cloud HR system (course assumption) | Configure and test the package |
| **Migrate** | SAP's tool supports the scenario as it is | CRM sales orders into ECC | Small: the tool builds the flow, people test it |
| **Migrate and fix** | The tool moves it, with known gaps | Warehouse files, an old Java mapping, messages that must arrive in order | Medium |
| **Redesign** | No one-to-one equal: EDI with partners, custom PO modules, business process steps inside PO | Distributor EDI, bank payments with a custom encryption module | Large |
| **Move to a workflow tool** | A person approves something inside PO | Price change approval | Large, and a different team |
| **Stay on site** | The process must run when the internet link is down | Plant confirmations from the MES | Same build, a different runtime (Edge Integration Cell) |

Then group interfaces into **waves**: first the retirements and replacements, then a small pilot, then the bulk, partner-facing interfaces together per partner, and the hardest redesigns last. Each wave switches over only when its test messages give the same results on the new platform as on PO.

### Questions to ask

1. What is our switch-off date for PO, and is it before the end of 2027 or are we budgeting extended maintenance?
2. How many interfaces do we have, and how many sent nothing in the last six months?
3. Has Migration Assessment been run on our PO system, and what share of scenarios is *Evaluation required*?
4. Which interfaces face customers, banks or authorities, and when can each partner test with us?
5. Who provides test messages and expected results for each process, and is that time in their plan?
6. Does anything on PO run business process management (approvals, long-running processes), and who owns its new home?
7. Which interfaces must keep running if the internet link to the cloud is down?
8. What does our SAP contract give us: a free assessment, incentives, partner test tools?

### Common misconceptions

- **"The migration tool moves everything."** It handles supported scenario types and adapters; SAP lists what it covers, and the rest needs manual work ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/automating-migration-of-artifacts)).
- **"PO stops working at the end of 2027."** It keeps running. What changes is the support: extended maintenance at a premium until the end of 2030, then customer-specific maintenance.
- **"We'll migrate everything in one weekend."** A big-bang cutover puts every partner and process at risk at once and leaves no way back for one interface. Waves let one group fail without stopping the others.
- **"If it compiles, it works."** The new flow can produce slightly different output, such as a number with fewer decimals, and a receiver may reject it. Only comparing real messages finds that.
- **"Edge Integration Cell is PO in a new box."** It runs Integration Suite flows on infrastructure you operate. It is for interfaces that must stay on site, not a way to avoid redesign.

### Key terms

- **SAP Process Integration / Process Orchestration (PI/PO):** SAP's on-premise middleware; PO adds business process management and rules to PI.
- **Integrated configuration object (ICO):** the PO object that holds one scenario's sender, receivers, mappings and channels; the unit the migration tools work on.
- **Migration Assessment:** the Integration Suite capability that reads PO and sorts scenarios by how easily they move.
- **Migration tooling:** the wizard in Cloud Integration that builds integration flows from PO scenarios.
- **Wave:** a group of interfaces that switch over together.
- **Parallel run:** a period when PO and Integration Suite both exist, and a migrated interface can be pointed back to PO.
- **Cutover:** the moment senders start sending to the new platform for a wave.
- **Edge Integration Cell:** an Integration Suite runtime that runs in the customer's own environment.

### Check yourself

1. What should a leader fix first when planning a PO migration?
   - A. The integration flow naming convention for the new platform
   - B. The PO switch-off date, to plan waves backwards
   - C. The list of interfaces that the migration tool can convert
   - D. The order in which partners will be told about new addresses

   Answer: B. The switch-off date decides whether extended maintenance is needed and how much time each wave gets. The other items matter, but they are planned inside that date.

2. What does SAP state about maintenance for PI and PO 7.5?
   - A. Mainstream maintenance ends in 2025 and there is no extension
   - B. Maintenance continues without an end date while customers pay
   - C. Mainstream to the end of 2027, extended to the end of 2030
   - D. Mainstream maintenance to 2030, then extended maintenance to 2033

   Answer: C. SAP aligned PI and PO 7.5 with SAP NetWeaver 7.5: mainstream to the end of 2027 and optional extended maintenance to the end of 2030, at a premium. After 2030 the Java platform moves to customer-specific maintenance.

3. Pelgrave has an interface that sent no message for a year. What is the best outcome?
   - A. Migrate it first, because it carries no risk to production
   - B. Move it to Edge Integration Cell so it stays near ECC
   - C. Keep it on PO until the last wave and decide then
   - D. Retire it once the business owner signs off

   Answer: D. Moving an unused interface still costs building and testing. Retiring it with the owner's sign-off removes that cost; keeping it on PO only delays the decision.

4. Why does SAP's course put so much weight on testing?
   - A. New flows can differ in output; only real messages show it
   - B. The migration tool doesn't produce flows that can be deployed at all
   - C. Integration Suite can't run any flow without a partner testing tool
   - D. SAP requires a certificate of testing before the subscription starts

   Answer: A. SAP's course says to run historical PO messages on Integration Suite and compare the outputs; it puts testing at around 65% of the effort. Small differences, such as a number format, break receivers.

5. Which interfaces should switch over in the same wave?
   - A. All interfaces owned by the same business department
   - B. All interfaces that use the same adapter type in PO
   - C. All interfaces with the same outside partner
   - D. All interfaces that the assessment sized as small

   Answer: C. A partner such as a bank changes its connection once and tests once. Splitting its interfaces across waves makes the partner switch twice and doubles the risk.

6. An approval process with a person in the loop runs inside PO. Where does it go?
   - A. Into an integration flow, as a step that waits for an email reply
   - B. To a workflow tool such as SAP Build Process Automation
   - C. Into Edge Integration Cell, which keeps the process on site
   - D. Into the migration tool's default pattern, then fixed by hand

   Answer: B. SAP points human-centric processes from PO's business process management to SAP Build Process Automation, and system-centric orchestration to Integration Suite. An integration flow is not a place for human tasks.

7. When is Edge Integration Cell the right target for an interface?
   - A. When the interface uses an adapter the migration tool can't convert
   - B. When the team wants to keep PO's design tools for one more year
   - C. When the interface is too large to fit the cloud subscription
   - D. When the process must keep running on site even if the cloud link is down

   Answer: D. Edge Integration Cell runs Integration Suite flows in the customer's own environment, for integrations that must stay on premise. It doesn't add adapters or keep PO's tools.

## Deep layer

### Mental model

A PO migration is **a sorting problem followed by a testing problem**. The building is the smallest part.

PO holds a few hundred scenarios. Each one is a contract between a sender and receivers that nobody wants to read again. Sorting decides, scenario by scenario: stop it, replace it with prebuilt content, move it with SAP's tool, fix it after the tool, redesign it, or move it to a workflow tool. Testing then proves, wave by wave, that the new flow says exactly what the old one said, before senders are pointed at it. PO stays running and reachable until the last wave has been quiet for a while; that is your way back.

Hold on to three rules:

1. **Most severe finding wins.** One unsupported feature makes the whole scenario hard, however simple the rest is. SAP's assessment works the same way ([SAP Developers](https://developers.sap.com/tutorials/migration-assessment.html)).
2. **A partner switches once.** Group by outside party, not by adapter or department.
3. **Same input, same output.** A replay of real PO messages through the new flow is the acceptance test. Differences are fixed in the flow, never hidden in the comparison.

### How it works

```mermaid
flowchart LR
  PO[PO 7.5<br/>ESR + Directory] -->|Cloud Connector| MA[Migration Assessment<br/>extract and evaluate]
  MA --> SORT[Sort: retire, replace,<br/>migrate, fix, redesign]
  SORT --> W[Waves and dates]
  PO -->|Cloud Connector| MT[Migration tooling<br/>in Cloud Integration]
  W --> MT
  MT --> IF[Integration flows]
  IF --> T[Replay PO messages<br/>compare outputs]
  T -->|match| C[Cutover:<br/>point senders]
  C --> OFF[Hold, then<br/>switch PO off]
```

#### Step 1: extract and evaluate

Migration Assessment runs in your Integration Suite subaccount. You activate it under **Manage Capabilities** as *Assess Migration Scenarios*, and assign the role collections `PIMAS_Administrator` and `PIMAS_IntegrationAnalyst` ([SAP Developers](https://developers.sap.com/tutorials/migration-assessment-enablement/)). It reaches PO through the Cloud Connector with an HTTP destination of back-end type *SAP Process Integration*, using a technical user with the PO roles `SAP_XI_API_DISPLAY_J2EE`, `SAP_XI_API_DEVELOP_J2EE` and `SAP_XI_MONITOR_J2EE` ([SAP Developers](https://developers.sap.com/tutorials/migration-assessment.html)). SAP Learning lists the supported PO releases as 7.31 SP28, 7.40 SP23 and 7.50 SP06 or higher ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/using-migration-assessment-tools)).

The tutorial's steps, as of November 2026:

1. **Settings**: add the PO system and its destinations (Integration Directory, and the Enterprise Services Repository if it is separate), then test the connection.
2. **Configure > Rules**: view the predefined rules, such as `SenderAdapterType`. You can't add or edit rules.
3. **Request > Data Extractions**: create a complete or custom extraction. The tutorial gives a 2 GB size limit, and says to rerun only after PO changes.
4. **Request > Scenario Evaluation**: create an evaluation on an extraction, then **Open Dashboard**.
5. Download a PDF report (**Generate Report**) or an XLSX file (**Export**).

Each scenario gets the most severe category among the rules it triggers:

| Category | SAP's meaning | Example SAP gives |
| --- | --- | --- |
| Ready to migrate | Matches a scenario Integration Suite offers; little or no configuration | |
| Adjustment required | Partial match; end-to-end adjustments needed | File to SFTP conversion, external JMS connection |
| Evaluation required | Can't be migrated at present; check the design guidelines and roadmap | Some B2B scenarios |

Effort comes as sizes S, M, L and XL, estimated in days, with a learning-curve factor that lowers effort for similar interfaces ([SAP Developers](https://developers.sap.com/tutorials/migration-assessment.html)).

#### Step 2: sort

The assessment gives category and size; it doesn't decide what the business still needs. Add, per scenario: last message date and volume (from PO monitoring), the owner, the outside partner if any, whether prebuilt content exists, and whether it must run on site. The decision guide in the foundational layer turns those into outcomes.

#### Step 3: migrate with the tool

The migration tooling is a **Migrate** button on an integration package in Cloud Integration. The wizard connects to the PO system, lets you pick an integrated configuration object (ICO), a pattern and an approach, imports message mappings and their resources, and builds a flow for review ([SAP Developers](https://developers.sap.com/tutorials/migration-tool/)). As of November 2026:

- **Scope.** SAP Learning lists ICOs as the supported object, with channels HTTP, REST, SOAP, IDOC, FTP, XI and SFTP, timer events, and flow steps including message, Java and XSLT mapping, function libraries, imported archives, XML/JSON conversion and routing. Anything else needs manual effort ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/automating-migration-of-artifacts)). SAP's 2023 feature post added XI, JDBC and RFC adapters ([SAP blog, June 2023](https://blogs.sap.com/2023/06/05/latest-migration-assessment-and-migration-tool-features/)); SAP's migration tooling tutorial adds that receiver determinations are now supported.
- **Patterns.** Point-to-Point Asynchronous, Point-to-Point Synchronous, Recipient List Asynchronous and Content-Based Routing. A ready ICO without a matching pattern falls back to *Default*, which builds a point-to-point flow and copies the mappings but not the channels.
- **Approaches.** *Standard* (every pattern, with error handling, monitoring and restart) or *Pipeline* (asynchronous scenarios only, built on generic flows).
- **Gate.** Only ICOs in *Ready to migrate* or *Adjustment required* can be migrated. Addresses, credentials and key aliases are set before deployment.

#### Step 4: handle what doesn't map

| PO feature | What changes | Source |
| --- | --- | --- |
| ABAP proxies (XI protocol) | Run through the XI adapter, but can't be regenerated with `SPROXY` against Cloud Integration; no acknowledgments | [SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/adressing-special-technical-functional-topics) |
| Exactly once in order (EOIO) | Not supported; build ordered delivery, for example from a data store with a sequence number | same |
| Java mappings | Small ones become Groovy scripts; larger ones can run in a Groovy wrapper, but binary attachments, Office files, encryption, lookups and dynamic headers may not work | same |
| Many asynchronous scenarios | SAP's pipeline concept uses a few generic flows and the Partner Directory instead of one queue per scenario | same |
| Business process management | Human-centric processes go to SAP Build Process Automation; system-centric orchestration to Integration Suite | [SAP blog](https://blogs.sap.com/t5/technology-blogs-by-sap/migrate-your-on-premise-sap-bpm-applications-to-sap-build-process/ba-p/13566443) |
| Aggregation | Cloud Integration has an Aggregator step with last-message and timeout completion; on PO it needed BPM | [SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/planning-the-migration-process) |
| B2B and EDI | Rebuilt with Trading Partner Management profiles and agreements; the [B2B and EDI topic](https://erpfde.com/topics/b2b-and-edi-integration/) covers them | [SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/using-manual-migration) |
| Security material | Certificates, keys and credentials are set up again in Cloud Integration; nothing moves by itself | same |
| Custom adapter modules | Not in the tool's list; rewrite as a script or a flow step | [SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/automating-migration-of-artifacts) |

#### Step 5: test by replay, then cut over

SAP's course says to run historical PO messages through Integration Suite and go live when the outputs match. It names SAP-arranged free use of partner test tools (Int4 Shield Lite, Figaf) for up to 12 months during a migration project ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/testing-your-migration)). Fields that always differ, such as message IDs and timestamps, are excluded from the comparison; everything else must match.

Cutover for a wave means pointing each sender at the new endpoint: a new URL or certificate for HTTP senders, new partner profiles or RFC destinations in ECC, a new SFTP server for file partners. PO keeps the old configuration, deactivated but present, so one interface can be pointed back if production shows a problem. SAP's own pages don't prescribe a hold period; this course uses 45 days after the last wave before PO is switched off.

### Build it yourself: assess, plan and test Pelgrave's migration

You will run a small planner over Pelgrave's 18 PO interfaces. It sorts each one with course rules modeled on SAP's categories, groups them into waves, checks the switch-off date against SAP's maintenance dates, and compares replayed PO and Cloud Integration messages for a wave.

```mermaid
flowchart LR
  I[--init] --> INV[inventory.json]
  I --> CFG[plan_config.json]
  I --> REP[replay.json]
  INV --> A[assess:<br/>category, size, outcome]
  A --> P[plan:<br/>waves, switch-off]
  CFG --> P
  P --> C[compare --wave N:<br/>GO or NO-GO]
  REP --> C
```

**Before you start:** complete [Set up your computer for this course](https://erpfde.com/topics/set-up-your-computer/) and [Set up for Unit 26](https://erpfde.com/topics/set-up-for-unit-26/). This walkthrough needs none of the setup's trials.

> **Note** New words. **JSON** is a text format for structured data. The **inventory** is a list of PO interfaces with the facts the rules need; it is a course format shaped like what Migration Assessment's export and PO monitoring give you, not SAP's file. A **replay** pairs one PO output with the new flow's output for the same input. **Exit code** is the number a program returns; `2` here means "stop": a failed plan rule or a NO-GO wave, which a pipeline can use to block a cutover.

> **Warning** The rules in this script are the course's, not SAP's predefined assessment rules. They reuse SAP's category names so the output reads like the real dashboard. On a real system, run Migration Assessment and use its results; this lab shows the reasoning around them.

#### What you need

- Python and your `orchestrate-course` folder with its `.venv`, from the setup topic.
- No account, no network and no extra libraries. The script uses built-in modules only and has no randomness, so your output matches the samples exactly.
- About 40 minutes. Everything is free.

#### Step 1: Open the 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. If the prompt doesn't start with `(.venv)`, turn it on:

   - **Windows (PowerShell):**

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

   - **macOS / Linux:**

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

4. Create the unit folder if it doesn't exist yet:

   - **Windows (PowerShell):**

     ```powershell
     New-Item -ItemType Directory -Force unit26
     ```

   - **macOS / Linux:**

     ```bash
     mkdir -p unit26
     ```

#### Step 2: Create the script

1. In VS Code, create a new file `unit26/po_migration_plan.py`.
2. Paste the code below and save.

```python
"""Plan a move from SAP Process Orchestration (PO) to SAP Integration Suite.

Course lab for Unit 26, "Migrating from Process Integration and Process
Orchestration". Built-in modules only, no randomness, no network.

  python unit26/po_migration_plan.py --init          write the sample files
  python unit26/po_migration_plan.py assess          categorize every interface
  python unit26/po_migration_plan.py plan            group into waves and dates
  python unit26/po_migration_plan.py compare --wave 1  replay check for a wave
  python unit26/po_migration_plan.py --self-test     check the expected counts

The company (Pelgrave Valve Company), its interfaces and every rule here are
course values. The three categories reuse the names SAP's Migration Assessment
shows; the rules that pick them are the course's, not SAP's predefined rules.
"""
import argparse
import datetime as dt
import json
import sys
from pathlib import Path

FOLDER = Path("unit26") / "pomigration"
INVENTORY = FOLDER / "inventory.json"
CONFIG = FOLDER / "plan_config.json"
REPLAY = FOLDER / "replay.json"

# Adapters and steps the migration tooling handles, per SAP Learning and SAP's
# 2023 feature post. Anything else needs manual work.
TOOL_ADAPTERS = {"HTTP", "REST", "SOAP", "IDOC", "FTP", "XI", "SFTP", "JDBC", "RFC"}
TOOL_MAPPINGS = {"message", "java", "xslt"}
CATEGORY_ORDER = ["Ready to migrate", "Adjustment required", "Evaluation required"]
SIZE_DAYS = {"S": 2, "M": 4, "L": 8, "XL": 15}          # course values
LEARNING_CURVE = 0.75                                    # course factor
EFFORT = 112.5                                           # expected total of the sample

SAMPLE_INVENTORY = {
    "company": "Pelgrave Valve Company (fictional)",
    "po_system": {"sid": "PVP", "release": "7.50", "sp": 27},
    "as_of": "2026-11-30",
    "interfaces": [
        {"id": "P01", "name": "Sales orders from CRM", "sender": "CRM", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message"], "per_month": 9000,
         "last_message": "2026-11-29", "owner": "Sales operations"},
        {"id": "P02", "name": "Order confirmations to CRM", "sender": "ECC", "sender_adapter": "IDOC",
         "receiver": "CRM", "receiver_adapter": "REST", "mappings": ["message"], "per_month": 8600,
         "last_message": "2026-11-29", "owner": "Sales operations"},
        {"id": "P03", "name": "Material master to WMS", "sender": "ECC", "sender_adapter": "IDOC",
         "receiver": "WMS", "receiver_adapter": "SFTP", "mappings": ["xslt"], "per_month": 1200,
         "last_message": "2026-11-28", "owner": "Logistics"},
        {"id": "P04", "name": "Goods movements from WMS", "sender": "WMS", "sender_adapter": "FILE",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message", "message"], "per_month": 21000,
         "last_message": "2026-11-29", "owner": "Logistics"},
        {"id": "P05", "name": "Payments to the bank", "sender": "ECC", "sender_adapter": "FILE",
         "receiver": "BANK", "receiver_adapter": "SFTP", "mappings": ["xslt"], "per_month": 40,
         "custom_modules": ["PGPEncryptModule"], "partner": "BANK", "last_message": "2026-11-27",
         "owner": "Treasury"},
        {"id": "P06", "name": "Bank statements", "sender": "BANK", "sender_adapter": "SFTP",
         "receiver": "ECC", "receiver_adapter": "FILE", "mappings": [], "per_month": 22,
         "partner": "BANK", "last_message": "2026-11-27", "owner": "Treasury"},
        {"id": "P07", "name": "Distributor orders (EDI)", "sender": "DISTRIBUTORS", "sender_adapter": "AS2",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message", "message"], "per_month": 2400,
         "b2b": True, "partner": "EDI", "last_message": "2026-11-29", "owner": "Customer service"},
        {"id": "P08", "name": "Distributor invoices (EDI)", "sender": "ECC", "sender_adapter": "IDOC",
         "receiver": "DISTRIBUTORS", "receiver_adapter": "AS2", "mappings": ["message"], "per_month": 2100,
         "b2b": True, "partner": "EDI", "last_message": "2026-11-28", "owner": "Accounts receivable"},
        {"id": "P09", "name": "Carrier status updates", "sender": "CARRIERS", "sender_adapter": "REST",
         "receiver": "ECC", "receiver_adapter": "RFC", "mappings": ["message"], "per_month": 5200,
         "last_message": "2026-11-29", "owner": "Transport planning"},
        {"id": "P10", "name": "Price lookup for the CRM", "sender": "CRM", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "RFC", "mappings": ["java"], "sync": True, "per_month": 30000,
         "last_message": "2026-11-29", "owner": "Sales operations"},
        {"id": "P11", "name": "Employee data from the cloud HR system", "sender": "HR", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message"], "per_month": 300,
         "standard_content": True, "last_message": "2026-11-26", "owner": "HR"},
        {"id": "P12", "name": "Credit checks at the credit agency", "sender": "ECC", "sender_adapter": "XI",
         "receiver": "CREDIT", "receiver_adapter": "SOAP", "mappings": ["message"], "eoio": True,
         "per_month": 900, "partner": "CREDIT", "last_message": "2026-11-29", "owner": "Credit management"},
        {"id": "P13", "name": "Test certificates as PDF", "sender": "ECC", "sender_adapter": "IDOC",
         "receiver": "PORTAL", "receiver_adapter": "SFTP", "mappings": ["java"], "binary": True,
         "per_month": 700, "last_message": "2026-11-28", "owner": "Quality"},
        {"id": "P14", "name": "Price change approval", "sender": "CRM", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "RFC", "mappings": ["message"], "bpm": "human",
         "per_month": 60, "last_message": "2026-11-25", "owner": "Pricing"},
        {"id": "P15", "name": "Intercompany order bundle", "sender": "ECC", "sender_adapter": "IDOC",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message", "message"], "bpm": "system",
         "per_month": 400, "last_message": "2026-11-27", "owner": "Intercompany team"},
        {"id": "P16", "name": "Supplier catalog upload", "sender": "SUPPLIERS", "sender_adapter": "FILE",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message"], "per_month": 0,
         "last_message": "2025-12-03", "owner": "Purchasing"},
        {"id": "P17", "name": "Production confirmations from the MES", "sender": "MES", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "IDOC", "mappings": ["message"], "ground_to_ground": True,
         "must_run_offline": True, "per_month": 14000, "last_message": "2026-11-29", "owner": "Production"},
        {"id": "P18", "name": "ZTEST ping", "sender": "ECC", "sender_adapter": "SOAP",
         "receiver": "ECC", "receiver_adapter": "SOAP", "mappings": [], "per_month": 0,
         "last_message": "2024-03-11", "owner": "Integration team"},
    ],
}

SAMPLE_CONFIG = {
    "retire_after_days": 180,
    "pilot_max": 4,
    "wave_cutovers": {"1": "2027-02-23", "2": "2027-04-27", "3": "2027-07-13", "4": "2027-10-12"},
    "hold_days_after_last_wave": 45,
    "mainstream_end": "2027-12-31",
    "extended_end": "2030-12-31",
    "team_days_per_wave": 55,
    "wave_overrides": {},
}

SAMPLE_REPLAY = {
    "ignore_fields": ["MessageId", "Timestamp"],
    "messages": [
        {"interface": "P01", "id": "M01",
         "po": {"MessageId": "a1", "Timestamp": "2026-11-02T08:01:00", "OrderType": "OR", "SoldTo": "300041", "Qty": "12"},
         "ci": {"MessageId": "b7", "Timestamp": "2026-12-01T09:14:00", "OrderType": "OR", "SoldTo": "300041", "Qty": "12"}},
        {"interface": "P01", "id": "M02",
         "po": {"MessageId": "a2", "Timestamp": "2026-11-02T08:05:00", "OrderType": "OR", "SoldTo": "300052", "Qty": "3"},
         "ci": {"MessageId": "b8", "Timestamp": "2026-12-01T09:14:03", "OrderType": "OR", "SoldTo": "300052", "Qty": "3"}},
        {"interface": "P02", "id": "M03",
         "po": {"MessageId": "a3", "Timestamp": "2026-11-03T10:00:00", "Order": "5001882", "Status": "CONFIRMED", "Date": "2026-11-20"},
         "ci": {"MessageId": "b9", "Timestamp": "2026-12-01T09:15:00", "Order": "5001882", "Status": "CONFIRMED", "Date": "2026-11-20"}},
        {"interface": "P03", "id": "M08",
         "po": {"MessageId": "a8", "Timestamp": "2026-11-03T22:00:00", "Material": "PV-BV50", "Plant": "PV01", "Unit": "EA"},
         "ci": {"MessageId": "c5", "Timestamp": "2026-12-01T09:15:05", "Material": "PV-BV50", "Plant": "PV01", "Unit": "EA"}},
        {"interface": "P09", "id": "M04",
         "po": {"MessageId": "a4", "Timestamp": "2026-11-04T13:30:00", "Delivery": "80044120", "Event": "DELIVERED"},
         "ci": {"MessageId": "c1", "Timestamp": "2026-12-01T09:15:10", "Delivery": "80044120", "Event": "DELIVERED"}},
        {"interface": "P09", "id": "M05",
         "po": {"MessageId": "a5", "Timestamp": "2026-11-04T13:31:00", "Delivery": "80044121", "Event": "DELAYED", "Reason": "WEATHER"},
         "ci": {"MessageId": "c2", "Timestamp": "2026-12-01T09:15:12", "Delivery": "80044121", "Event": "DELAYED", "Reason": "WEATHER"}},
        {"interface": "P10", "id": "M06",
         "po": {"MessageId": "a6", "Timestamp": "2026-11-05T07:59:00", "Material": "PV-BV50", "Price": "104.500", "Currency": "USD"},
         "ci": {"MessageId": "c3", "Timestamp": "2026-12-01T09:16:00", "Material": "PV-BV50", "Price": "104.5", "Currency": "USD"}},
        {"interface": "P10", "id": "M07",
         "po": {"MessageId": "a7", "Timestamp": "2026-11-05T08:02:00", "Material": "PV-GV80", "Price": "88.250", "Currency": "USD"},
         "ci": {"MessageId": "c4", "Timestamp": "2026-12-01T09:16:02", "Material": "PV-GV80", "Price": "88.25", "Currency": "USD"}},
    ],
}


def load(path):
    if not path.exists():
        sys.exit(f"{path} not found. Run: python unit26/po_migration_plan.py --init")
    try:
        return json.loads(path.read_text(encoding="utf-8"))
    except json.JSONDecodeError as err:
        sys.exit(f"{path} is not valid JSON (line {err.lineno}): {err.msg}")


def init():
    FOLDER.mkdir(parents=True, exist_ok=True)
    for path, data in ((INVENTORY, SAMPLE_INVENTORY), (CONFIG, SAMPLE_CONFIG), (REPLAY, SAMPLE_REPLAY)):
        if path.exists():
            print(f"{path} already exists; delete it first to get the sample back")
            continue
        path.write_text(json.dumps(data, indent=2) + "\n", encoding="utf-8")
        print(f"wrote {path}")


def assess_one(itf, as_of, retire_after):
    """Return (disposition, category, size, reasons) for one interface."""
    reasons = []
    idle = (as_of - dt.date.fromisoformat(itf["last_message"])).days
    if idle > retire_after:
        return "RETIRE", "-", "-", [f"no message for {idle} days"]
    if itf.get("standard_content"):
        return "REPLACE", "-", "-", ["prebuilt content covers this pair"]
    level = 0                                     # index into CATEGORY_ORDER
    points = 1 + len(itf["mappings"])
    for side in ("sender_adapter", "receiver_adapter"):
        adapter = itf[side]
        if adapter in TOOL_ADAPTERS:
            continue
        if adapter == "FILE":
            level = max(level, 1); points += 2
            reasons.append(f"{adapter} {side.split('_')[0]}: convert to SFTP")
        elif adapter == "JMS":
            level = max(level, 1); points += 2
            reasons.append(f"{adapter} {side.split('_')[0]}: rework the external JMS connection")
        else:
            level = max(level, 2); points += 4
            reasons.append(f"{adapter} {side.split('_')[0]}: not in the migration tooling")
    if itf.get("b2b"):
        level = max(level, 2); points += 4
        reasons.append("B2B: rebuild in Trading Partner Management")
    for module in itf.get("custom_modules", []):
        level = max(level, 2); points += 4
        reasons.append(f"custom adapter module {module}")
    for mapping in itf["mappings"]:
        if mapping not in TOOL_MAPPINGS:
            level = max(level, 2); points += 4
            reasons.append(f"{mapping} mapping: manual")
    if "java" in itf["mappings"]:
        if itf.get("binary"):
            level = max(level, 2); points += 4
            reasons.append("Java mapping on a binary payload: Groovy wrapper may not work")
        else:
            level = max(level, 1); points += 1
            reasons.append("Java mapping: port to Groovy and retest")
    if itf.get("eoio"):
        level = max(level, 1); points += 2
        reasons.append("EOIO: build ordered delivery")
    if itf.get("bpm"):
        level = max(level, 2); points += 6
        reasons.append(f"BPM ({itf['bpm']}): no one-to-one target")
    category = CATEGORY_ORDER[level]
    size = "S" if points <= 2 else "M" if points <= 4 else "L" if points <= 7 else "XL"
    if itf.get("bpm") == "human":
        disposition = "PROCESS AUTOMATION"
    elif itf.get("bpm") or level == 2:
        disposition = "REDESIGN"
    elif level == 1:
        disposition = "MIGRATE + FIX"
    else:
        disposition = "MIGRATE"
    if itf.get("ground_to_ground") and itf.get("must_run_offline"):
        disposition += " (EDGE CELL)"
        reasons.append("stays on site: Edge Integration Cell")
    if not reasons:
        reasons.append("tool pattern fits")
    return disposition, category, size, reasons


def assess_all(inv, cfg):
    as_of = dt.date.fromisoformat(inv["as_of"])
    seen_pairs = set()
    rows = []
    for itf in inv["interfaces"]:
        disp, cat, size, reasons = assess_one(itf, as_of, cfg["retire_after_days"])
        days = 0.0
        if size in SIZE_DAYS:
            days = float(SIZE_DAYS[size])
            pair = (itf["sender_adapter"], itf["receiver_adapter"])
            if disp.startswith("MIGRATE"):
                if pair in seen_pairs:
                    days *= LEARNING_CURVE
                    reasons = reasons + ["learning curve: same adapters as an earlier migration"]
                seen_pairs.add(pair)
        rows.append({**itf, "disposition": disp, "category": cat, "size": size,
                     "days": days, "reasons": reasons})
    return rows


def cmd_assess(inv, cfg, quiet=False):
    rows = assess_all(inv, cfg)
    if quiet:
        return rows
    po = inv["po_system"]
    print(f"{inv['company']}: PO {po['sid']} {po['release']} SP {po['sp']}, as of {inv['as_of']}")
    if (po["release"], po["sp"]) < ("7.50", 6):
        print("WARN  Migration Assessment needs 7.50 SP06 or higher on a 7.5 system")
    for r in rows:
        print(f"{r['id']}  {r['disposition']:<28} {r['category']:<21} {r['size']:<2} {r['days']:>5.1f} d  "
              f"{r['name']}")
        for reason in r["reasons"]:
            print(f"       - {reason}")
    counts = {}
    for r in rows:
        key = r["disposition"].split(" (")[0]
        counts[key] = counts.get(key, 0) + 1
    cats = {c: sum(1 for r in rows if r["category"] == c) for c in CATEGORY_ORDER}
    print("Dispositions: " + ", ".join(f"{k} {v}" for k, v in sorted(counts.items())))
    print("Categories:   " + ", ".join(f"{k} {v}" for k, v in cats.items()))
    print(f"Build effort: {sum(r['days'] for r in rows):.1f} days (course sizes)")
    return rows


def waves_for(rows, cfg):
    wave = {}
    pilot = 0
    for r in rows:
        d = r["disposition"]
        if d in ("RETIRE", "REPLACE"):
            wave[r["id"]] = 0
        elif d.startswith(("REDESIGN", "PROCESS AUTOMATION")) and r.get("bpm"):
            wave[r["id"]] = 4
        elif r.get("partner"):
            wave[r["id"]] = 3
        elif d == "MIGRATE" and r["size"] == "S" and pilot < cfg["pilot_max"]:
            wave[r["id"]] = 1
            pilot += 1
        elif d.startswith("REDESIGN"):
            wave[r["id"]] = 3
        else:
            wave[r["id"]] = 2
    # A partner's interfaces move together, in the latest wave of the group.
    groups = {}
    for r in rows:
        if r.get("partner") and wave[r["id"]] > 0:
            groups.setdefault(r["partner"], []).append(r["id"])
    for members in groups.values():
        latest = max(wave[m] for m in members)
        for m in members:
            wave[m] = latest
    for itf_id, w in cfg.get("wave_overrides", {}).items():
        if itf_id not in wave:
            sys.exit(f"wave_overrides names {itf_id}, which is not in the inventory")
        wave[itf_id] = int(w)
    return wave


def cmd_plan(inv, cfg, quiet=False):
    rows = assess_all(inv, cfg)
    wave = waves_for(rows, cfg)
    findings = []
    out = []
    groups = {}
    for r in rows:
        if r.get("partner") and wave[r["id"]] > 0:
            groups.setdefault(r["partner"], set()).add(wave[r["id"]])
    for partner, waves in sorted(groups.items()):
        if len(waves) > 1:
            findings.append(("FAIL", f"partner {partner} is split across waves {sorted(waves)}: "
                                     "it would switch twice"))
    for w in range(0, 5):
        members = [r for r in rows if wave[r["id"]] == w]
        if not members:
            continue
        days = sum(r["days"] for r in members)
        when = "now (no build)" if w == 0 else f"cutover {cfg['wave_cutovers'][str(w)]}"
        out.append(f"Wave {w}  {when:<22} {len(members):>2} interfaces  {days:>5.1f} days  "
                   + " ".join(r["id"] for r in members))
        if w > 0 and days > cfg["team_days_per_wave"]:
            findings.append(("WARN", f"wave {w} needs {days:.1f} days, team has {cfg['team_days_per_wave']}"))
    last = max(int(k) for k in cfg["wave_cutovers"] if any(v == int(k) for v in wave.values()))
    last_cut = dt.date.fromisoformat(cfg["wave_cutovers"][str(last)])
    shutdown = last_cut + dt.timedelta(days=cfg["hold_days_after_last_wave"])
    mainstream = dt.date.fromisoformat(cfg["mainstream_end"])
    extended = dt.date.fromisoformat(cfg["extended_end"])
    out.append(f"PO {inv['po_system']['sid']} switched off {shutdown} "
               f"(last cutover {last_cut} + {cfg['hold_days_after_last_wave']} days on hold)")
    if shutdown > extended:
        findings.append(("FAIL", f"switch-off {shutdown} is after extended maintenance ends {extended}"))
    elif shutdown > mainstream:
        findings.append(("WARN", f"switch-off {shutdown} is after mainstream maintenance ends {mainstream}: "
                                 "budget extended maintenance or move waves earlier"))
    else:
        findings.append(("OK", f"switch-off {shutdown} is before mainstream maintenance ends {mainstream}"))
    if quiet:
        return wave, findings, shutdown
    print("\n".join(out))
    for level, text in findings:
        print(f"{level:<5} {text}")
    return wave, findings, shutdown


def normalize(msg, ignore):
    return {k: v for k, v in msg.items() if k not in ignore}


def cmd_compare(inv, cfg, rep, wave_no, quiet=False):
    rows = assess_all(inv, cfg)
    wave = waves_for(rows, cfg)
    in_wave = {r["id"] for r in rows if wave[r["id"]] == wave_no}
    tested = set()
    diffs = []
    lines = []
    for m in rep["messages"]:
        if m["interface"] not in in_wave:
            continue
        tested.add(m["interface"])
        a = normalize(m["po"], rep["ignore_fields"])
        b = normalize(m["ci"], rep["ignore_fields"])
        bad = [k for k in sorted(set(a) | set(b)) if a.get(k) != b.get(k)]
        if bad:
            for k in bad:
                diffs.append(m["id"])
                lines.append(f"DIFF  {m['interface']} {m['id']}  {k}: PO {a.get(k)!r}, Cloud Integration {b.get(k)!r}")
        else:
            lines.append(f"MATCH {m['interface']} {m['id']}")
    untested = sorted(in_wave - tested)
    for itf in untested:
        lines.append(f"NONE  {itf}  no replayed message")
    go = not diffs and not untested and bool(in_wave)
    summary = (f"Wave {wave_no}: {len(in_wave)} interfaces, {len(tested)} replayed, "
               f"{len(set(diffs))} messages differ -> {'GO' if go else 'NO-GO'}")
    if not quiet:
        print("\n".join(lines))
        print(summary)
    return go, summary


def self_test():
    inv, cfg, rep = SAMPLE_INVENTORY, SAMPLE_CONFIG, SAMPLE_REPLAY
    rows = cmd_assess(inv, cfg, quiet=True)
    by = {r["id"]: r for r in rows}
    checks = [
        (by["P16"]["disposition"] == "RETIRE", "P16 retires"),
        (by["P11"]["disposition"] == "REPLACE", "P11 is replaced by prebuilt content"),
        (by["P01"]["category"] == "Ready to migrate", "P01 is ready"),
        (by["P04"]["category"] == "Adjustment required", "P04 needs adjustment"),
        (by["P07"]["category"] == "Evaluation required", "P07 needs evaluation"),
        (by["P14"]["disposition"] == "PROCESS AUTOMATION", "P14 goes to process automation"),
        (by["P17"]["disposition"].endswith("(EDGE CELL)"), "P17 stays on site"),
        (abs(sum(r["days"] for r in rows) - EFFORT) < 0.01, f"effort is {EFFORT} days"),
    ]
    wave, findings, shutdown = cmd_plan(inv, cfg, quiet=True)
    checks.append((wave["P05"] == wave["P06"] == 3, "bank interfaces move together in wave 3"))
    checks.append((str(shutdown) == "2027-11-26", "switch-off 2027-11-26"))
    go, _ = cmd_compare(inv, cfg, rep, 1, quiet=True)
    checks.append((go, "wave 1 is GO"))
    go2, _ = cmd_compare(inv, cfg, rep, 2, quiet=True)
    checks.append((not go2, "wave 2 is NO-GO"))
    failed = [name for ok, name in checks if not ok]
    for ok, name in checks:
        print(f"{'OK' if ok else 'FAIL':<5} {name}")
    print(f"{len(checks) - len(failed)} of {len(checks)} self-test checks passed")
    return 0 if not failed else 1


def main():
    parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
    parser.add_argument("command", nargs="?", choices=["assess", "plan", "compare"])
    parser.add_argument("--init", action="store_true", help="write the sample files")
    parser.add_argument("--wave", type=int, default=1, help="wave to compare")
    parser.add_argument("--self-test", action="store_true", help="check the built-in sample")
    args = parser.parse_args()
    if args.self_test:
        return self_test()
    if args.init:
        init()
        return 0
    if not args.command:
        parser.print_help()
        return 0
    inv, cfg = load(INVENTORY), load(CONFIG)
    if args.command == "assess":
        cmd_assess(inv, cfg)
        return 0
    if args.command == "plan":
        _, findings, _ = cmd_plan(inv, cfg)
        return 2 if any(level == "FAIL" for level, _ in findings) else 0
    go, _ = cmd_compare(inv, cfg, load(REPLAY), args.wave)
    return 0 if go else 2


if __name__ == "__main__":
    sys.exit(main())
```

#### Step 3: Write the sample files and check them

1. Run:

   ```bash
   python unit26/po_migration_plan.py --init
   ```

   You see:

   ```text
   wrote unit26/pomigration/inventory.json
   wrote unit26/pomigration/plan_config.json
   wrote unit26/pomigration/replay.json
   ```

2. Run the self-test, which checks the built-in sample:

   ```bash
   python unit26/po_migration_plan.py --self-test
   ```

   The last line reads `12 of 12 self-test checks passed`.

3. Open `unit26/pomigration/inventory.json` and read two entries. `P01` is a plain SOAP-to-IDoc interface. `P05` sends payments from a file to the bank through SFTP, with a custom PO module `PGPEncryptModule`. That one module is what makes `P05` hard.

#### Step 4: Assess the interfaces

1. Run:

   ```bash
   python unit26/po_migration_plan.py assess
   ```

2. The output starts like this (the first lines of 18):

   ```text
   Pelgrave Valve Company (fictional): PO PVP 7.50 SP 27, as of 2026-11-30
   P01  MIGRATE                      Ready to migrate      S    2.0 d  Sales orders from CRM
          - tool pattern fits
   P04  MIGRATE + FIX                Adjustment required   L    8.0 d  Goods movements from WMS
          - FILE sender: convert to SFTP
   P05  REDESIGN                     Evaluation required   XL  15.0 d  Payments to the bank
          - FILE sender: convert to SFTP
          - custom adapter module PGPEncryptModule
   ```

   (Lines for `P02`, `P03` and others are left out here.) It ends with:

   ```text
   Dispositions: MIGRATE 5, MIGRATE + FIX 4, PROCESS AUTOMATION 1, REDESIGN 5, REPLACE 1, RETIRE 2
   Categories:   Ready to migrate 5, Adjustment required 4, Evaluation required 6
   Build effort: 112.5 days (course sizes)
   ```

3. Find these in your output:
   - `P16` and `P18` are `RETIRE`: no message for 362 and 994 days.
   - `P11` is `REPLACE`: the inventory says prebuilt content exists for this pair (a course assumption).
   - `P14` is `PROCESS AUTOMATION`: PO's business process management with a human step.
   - `P17` is `MIGRATE (EDGE CELL)` with 1.5 days: the plant must keep running offline, and the learning curve cut its effort because `P01` already moved the same adapter pair.

> **Note** The 112.5 days and every category here come from made-up data and course rules. They show the method, not the effort of a real migration.

#### Step 5: Plan the waves

1. Run:

   ```bash
   python unit26/po_migration_plan.py plan
   ```

2. You see:

   ```text
   Wave 0  now (no build)          3 interfaces    0.0 days  P11 P16 P18
   Wave 1  cutover 2027-02-23      4 interfaces    8.0 days  P01 P02 P03 P09
   Wave 2  cutover 2027-04-27      3 interfaces   13.5 days  P04 P10 P17
   Wave 3  cutover 2027-07-13      6 interfaces   61.0 days  P05 P06 P07 P08 P12 P13
   Wave 4  cutover 2027-10-12      2 interfaces   30.0 days  P14 P15
   PO PVP switched off 2027-11-26 (last cutover 2027-10-12 + 45 days on hold)
   WARN  wave 3 needs 61.0 days, team has 55
   OK    switch-off 2027-11-26 is before mainstream maintenance ends 2027-12-31
   ```

3. Read it. Wave 1 is the pilot: four small interfaces with no outside partner. Wave 3 holds every partner-facing interface, so the bank (`P05`, `P06`), the distributors (`P07`, `P08`) and the credit agency (`P12`) each switch once. Wave 3 is too heavy for the team.

#### Step 6: Rebalance wave 3

`P13` (test certificates as PDF) has no outside partner. It landed in wave 3 only because it is a redesign. Move it earlier.

1. Open `unit26/pomigration/plan_config.json`.
2. Change `"wave_overrides": {}` to:

   ```json
   "wave_overrides": {"P13": 2}
   ```

3. Save and run `python unit26/po_migration_plan.py plan` again. Wave 2 now lists `P04 P10 P13 P17` with 21.5 days, wave 3 has 53.0 days, and the `WARN` line is gone.

#### Step 7: Try to split a partner

1. Change the overrides to `{"P13": 2, "P06": 2}` and run `plan`.
2. You see:

   ```text
   FAIL  partner BANK is split across waves [2, 3]: it would switch twice
   ```

   The exit code is 2. Moving bank statements alone would make the bank change its connection twice.

3. Put the overrides back to `{"P13": 2}`.

#### Step 8: Compare replayed messages

1. Check wave 1:

   ```bash
   python unit26/po_migration_plan.py compare --wave 1
   ```

   ```text
   MATCH P01 M01
   MATCH P01 M02
   MATCH P02 M03
   MATCH P03 M08
   MATCH P09 M04
   MATCH P09 M05
   Wave 1: 4 interfaces, 4 replayed, 0 messages differ -> GO
   ```

2. Check wave 2:

   ```bash
   python unit26/po_migration_plan.py compare --wave 2
   ```

   ```text
   DIFF  P10 M06  Price: PO '104.500', Cloud Integration '104.5'
   DIFF  P10 M07  Price: PO '88.250', Cloud Integration '88.25'
   NONE  P04  no replayed message
   NONE  P13  no replayed message
   NONE  P17  no replayed message
   Wave 2: 4 interfaces, 1 replayed, 2 messages differ -> NO-GO
   ```

3. Read it. The Groovy port of `P10`'s Java mapping prints prices with fewer decimals. The CRM may accept it, or may not; the fix belongs in the Groovy script, not in `ignore_fields`. Three interfaces have no test message yet, which is a NO-GO on its own.

#### Step 9 (sketch): Run SAP's tools on a real PO system

> **Note** This step is a **sketch**. It needs an Integration Suite subscription, a Cloud Connector and a PO 7.5 system at SP06 or higher, which learners rarely have. Unit 21 covers subaccounts and connectivity.

1. In Integration Suite, choose **Manage Capabilities > Add Capabilities**, select **Assess Migration Scenarios**, then **Next** and **Activate**.
2. Assign `PIMAS_Administrator` and `PIMAS_IntegrationAnalyst` to the people doing the work.
3. Follow the steps in *How it works*: **Settings**, **Request > Data Extractions**, **Request > Scenario Evaluation**, **Export**.
4. Build `inventory.json` from the export plus PO monitoring (last message date, volume) and your owners list. Run Steps 4 to 8 on it.

#### Step 10: Save your work

```bash
git add unit26/po_migration_plan.py unit26/pomigration
git commit -m "Unit 26: PO migration plan for Pelgrave"
```

#### How the code works

| Part | What it does |
| --- | --- |
| `TOOL_ADAPTERS`, `TOOL_MAPPINGS` | The adapters and mapping types SAP lists for its migration tooling; anything else raises the category |
| `assess_one()` | Retires idle interfaces, replaces those with prebuilt content, then applies course rules; the most severe rule sets the category, points set the size |
| `assess_all()` | Adds days per size and the learning-curve factor for a repeated adapter pair among migrated interfaces |
| `waves_for()` | Wave 0 for no-build outcomes, a small internal pilot, partners together, BPM last; applies `wave_overrides` |
| `cmd_plan()` | Prints waves, checks team capacity, partner splits and the switch-off date against mainstream and extended maintenance |
| `cmd_compare()` | Removes `ignore_fields`, compares the rest field by field, and says GO only if every interface in the wave was replayed and matched |
| `self_test()` | Twelve checks on the built-in sample, so you can tell a broken copy from an edited file |

#### 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 | Repeat the Python step of Set up your computer, open a new terminal; on macOS/Linux use `python3` until `.venv` is active |
| `No module named ...` | A different script was pasted, or an import was added | The script needs built-in modules only; paste it again from Step 2 |
| `inventory.json not found` | Step 3 hasn't run, or you are in another folder | Run `python unit26/po_migration_plan.py --init` from `orchestrate-course` |
| `already exists; delete it first` | `--init` doesn't overwrite your edits | Delete the file only if you want the sample back |
| `is not valid JSON (line N)` | A comma or quote is missing after an edit | VS Code marks the line; fix it and run again |
| `wave_overrides names P99` | An override names an interface that isn't in the inventory | Fix the ID in `plan_config.json` |
| `KeyError: 'mappings'` | A new interface is missing a field | Copy an existing entry and change its values |
| Your numbers differ from the samples | The files were edited | Run `--self-test`, then `--init` in a fresh folder |
| A company proxy blocks downloads | Not used here | The lab needs no network |

### The SAP way

What SAP provides for a PO move, as of 30 November 2026:

- **Migration Assessment** in SAP Integration Suite, activated as *Assess Migration Scenarios*, with predefined rules, three categories, T-shirt sizes and PDF/XLSX outputs ([SAP Developers](https://developers.sap.com/tutorials/migration-assessment.html)).
- **Migration tooling** in Cloud Integration: the **Migrate** wizard with four patterns plus *Default*, and Standard or Pipeline approaches ([SAP Developers](https://developers.sap.com/tutorials/migration-tool/)).
- **The Migration Guide for SAP Process Orchestration** on the SAP Help Portal, which SAP Learning names as the starting point for planning, covering assessment, connectivity, security, error handling, governance and automated testing ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/planning-the-migration-process)). This run couldn't open the guide itself.
- **Edge Integration Cell** for flows that must run in your environment. SAP Learning names a migration path for ground-to-ground scenarios as a use case and lists restrictions, including B2B scenarios and the Partner Directory, so check them per interface ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/migration-to-sap-integratioin-suite-edge-integration-cell)). The [Edge Integration Cell topic](https://erpfde.com/topics/edge-integration-cell/) covers its setup and limits.
- **Commercial help.** The free migration assessment, transformation incentives, migration services and SAP Migration Factory partners on [SAP's migration page](https://www.sap.com/uk/products/technology-platform/integration-suite/migration.html). SAP Learning describes Migration Factory's assessment and planning as free, typically two to three weeks ([SAP Learning](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/understanding-migration-factory)).
- **Licensing note.** Both tools are part of the Integration Suite subscription per the [Architecture Center](https://architecture.learning.sap.com/docs/ref-arch/8566b4). Migrated flows count messages like any other flow; the [integration platform topic](https://erpfde.com/topics/integration-platform-and-clean-core/) covers editions.

### Build vs. SAP

| Need | SAP | Your own | Use which |
| --- | --- | --- | --- |
| Find what PO holds and how hard it is to move | Migration Assessment | Scripts over PO's directory APIs | SAP's: it knows the object model and you can't edit its rules, so results are comparable |
| Decide outcome per interface | Category and size only | Inventory with usage, owner, partner, prebuilt content | Yours on top of SAP's export |
| Sequence waves | Nothing prescribed | Wave rules like this lab's | Yours, agreed with partners and the business |
| Build flows | Migration tooling for supported ICOs | Manual flows | The tool first; manual for the rest |
| Regression test | Partner tools offered free for up to 12 months | A replay comparison like Step 8 | Partner tools for volume; your comparison rules either way |
| Ordered delivery (EOIO) | Not supported | Data store with sequence numbers | Yours, or redesign so order doesn't matter |

### Architecture view

**Where it sits.** During the migration both platforms exist. PO stays in the data center beside ECC; Integration Suite runs in a BTP subaccount and reaches ECC through a Cloud Connector pair; Edge Integration Cell, if used, runs on a Kubernetes cluster at the plant.

```mermaid
flowchart LR
  CRM[CRM] --> IS[Integration Suite<br/>BTP subaccount]
  BANK[Bank, distributors] --> PO[PO 7.5<br/>until switch-off]
  IS -->|Cloud Connector| ECC[ECC]
  PO --> ECC
  MES[Plant MES] --> EIC[Edge Integration Cell<br/>at the plant]
  EIC --> ECC
  IS -. design and monitor .- EIC
```

**Non-functional requirements.**

| Requirement | Typical target | What breaks if missed |
| --- | --- | --- |
| Switch-off date | Before end of 2027, or extended maintenance budgeted | Premium support costs, then no fixes after 2030 |
| Output equality | Every replayed message matches, excluding agreed fields | Receivers reject or misread messages after cutover |
| Way back | Old PO configuration kept until the hold period ends | One faulty flow forces a whole wave back |
| Ordering | Ordered interfaces keep order after redesign | Payments or status updates applied in the wrong order |
| On-site availability | Plant flows run during a cloud outage | Production confirmations pile up or are lost |
| Security | Certificates and credentials renewed for each partner | Partner connections fail at cutover |

**Integration and identity.** Senders change endpoints and credentials at cutover: certificates for HTTP and AS2 partners, SFTP keys for file partners, RFC destinations and IDoc partner profiles in ECC. Technical users for the new flows get the narrowest roles in ECC; don't reuse PO's service user with its accumulated authorizations. Released APIs only matter where S/4HANA is the target; against ECC, the IDocs and RFCs stay, which the [clean core topic](https://erpfde.com/topics/integration-platform-and-clean-core/) explains.

**The decision to record** (short ADR form from the [design-doc topic](https://erpfde.com/topics/writing-a-solution-design-doc/)):

- **Context.** Pelgrave's PO 7.5 runs 18 interfaces; mainstream maintenance ends 31 December 2027. Bank and EDI partners can test only in agreed windows.
- **Options.** A: one big-bang cutover in late 2027. B: waves through 2027, PO off before mainstream ends. C: move only the easy interfaces, buy extended maintenance, finish by 2030.
- **Decision.** B, with C as the fallback if wave 4 (the BPM redesigns) slips past October 2027.
- **Consequences.** PO and Integration Suite run side by side for about ten months. Every wave needs replay tests and owner sign-off. A slip of wave 4 triggers the extended maintenance decision, which the plan checks.

**What a design review will ask.**

1. Which interfaces did you retire, and who signed that the business doesn't need them?
2. How do you prove a migrated flow gives the same output as PO?
3. What happens to an interface that fails in production a week after its wave?
4. Which interfaces needed ordered delivery, and how does the new design keep the order?
5. What triggers extended maintenance, and who decides?

### Production concerns

- **Security and authorizations.** The assessment's technical user can read PO's whole design and configuration; give it the three PO roles and nothing more, and remove it after the migration. Recreate partner certificates and keys as security material; don't export private keys by email.
- **Evaluation.** Pick replay messages per interface that cover the edge cases functional owners name, not just the last hundred messages. Keep the comparison rules (`ignore_fields`) short and reviewed; every ignored field is a field nobody checks.
- **Cost.** Two platforms cost money each month. Count the extended maintenance premium against the cost of moving waves earlier. Check what the free assessment, incentives and partner test tools cover before buying tools.
- **Operations.** Monitor both platforms through the parallel run. Alerting moves with each wave; the [Cloud Integration flows topic](https://erpfde.com/topics/cloud-integration-flows-in-depth/) shows error routes. Freeze new interfaces on PO: SAP's tutorial advises building new scenarios in Cloud Integration rather than PO.
- **Clean core.** A migration is the moment to replace custom RFC function modules and Z reports behind interfaces with released interfaces, where the target system has them. Moving custom code unchanged keeps it.

### Where AI fits

AI changes three things for a PO migration, as of November 2026:

- **Reading old code.** A model can explain an old Java mapping or a user-defined function and draft a Groovy port. Treat its output as a draft: it goes through the same replay comparison as anything else. The P10 price difference in Step 8 is exactly the kind of slip a draft makes.
- **The target hosts agent traffic.** Integration Suite carries API Management and an MCP gateway that exposes APIs as tools for agents. SAP's API policy names its MCP Gateway among the endorsed paths for agents, which the [SAP API policy topic](https://erpfde.com/topics/sap-api-policy-and-third-party-agents/) explains. A company still on PO has no such path, which is one more reason the migration matters.
- **AI inside the target.** Integration Suite's own AI features (flow generation, mapping help) and calling models from flows are covered in [Calling AI from SAP Integration Suite](https://erpfde.com/topics/ai-in-sap-integration-suite/). They help with the redesign work, not with the assessment.

### Pitfalls

- **Migrating idle interfaces.** Every interface costs test effort. Check last-message dates before the assessment run, not after the build.
- **Trusting "Ready to migrate" as "done".** The category says the tool can build it. Addresses, certificates and tests are still yours.
- **Hiding differences in the comparison.** Adding a field to the ignore list to get a GO means the receiver will find the difference instead.
- **Splitting a partner.** The bank or an EDI partner changes its connection once per migration, not once per interface.
- **Leaving BPM to the end without an owner.** Approvals inside PO belong to a business team and a workflow tool. Find the owner in the first month.
- **Switching PO off the day after the last wave.** Keep the old configuration reachable for the hold period, then switch off.
- **Building new interfaces on PO during the migration.** Each one joins the backlog. Freeze PO for new work.
- **Forgetting EOIO.** Ordered queues don't exist in the target; find them in the inventory and design for them early.

### Exercise

Pelgrave adds an interface it forgot, and the BPM redesign slips.

1. Open `unit26/pomigration/inventory.json` and add a 19th interface at the end of the `interfaces` list (with a comma after the previous entry):

   ```json
   {"id": "P19", "name": "Quality notifications to the supplier portal", "sender": "ECC",
    "sender_adapter": "IDOC", "receiver": "PORTAL", "receiver_adapter": "JMS",
    "mappings": ["message"], "per_month": 350, "last_message": "2026-11-27", "owner": "Quality"}
   ```

2. Run `python unit26/po_migration_plan.py assess`. `P19` reads `MIGRATE + FIX`, `Adjustment required`, `M`, `4.0 d`, with the reason `JMS receiver: rework the external JMS connection`. The total is `116.5 days`.
3. Open `plan_config.json`, keep `"wave_overrides": {"P13": 2}`, and change wave 4's cutover from `2027-10-12` to `2027-12-07`.
4. Run `python unit26/po_migration_plan.py plan`. Wave 2 now lists `P04 P10 P13 P17 P19` and the last lines read:

   ```text
   PO PVP switched off 2028-01-21 (last cutover 2027-12-07 + 45 days on hold)
   WARN  switch-off 2028-01-21 is after mainstream maintenance ends 2027-12-31: budget extended maintenance or move waves earlier
   ```

5. Write a short decision record in `unit26/pomigration/decision.md` with the four ADR headings: either move wave 4 back before mid-November or accept extended maintenance for 2028, and say what each costs Pelgrave.

**Done when:** `assess` prints `Build effort: 116.5 days`, `plan` shows `P19` in wave 2 and the extended-maintenance `WARN`, and `decision.md` records one option with its consequences. The inventory and decision feed the [interface monitoring and error handling topic](https://erpfde.com/topics/interface-monitoring-and-error-handling/).

> **Note** The effort, dates and the switch-off result come from made-up data and course rules, not from a real SAP system.

### Check yourself

1. How does SAP's Migration Assessment pick a scenario's category?
   - A. The integration developer chooses a category after reading the report
   - B. It takes the most severe category among its triggered rules
   - C. The category follows the number of mappings the scenario contains
   - D. Customers write their own rules and the tool applies them in order

   Answer: B. SAP's tutorial says a scenario takes the most severe category of its triggered rules, and predefined rules can't be edited or extended. That is why one unsupported feature makes an otherwise simple scenario hard.

2. Which PO object does the migration tooling build flows from?
   - A. Communication channels, one flow per channel in the directory
   - B. Service interfaces from the Enterprise Services Repository alone
   - C. ICOs in Ready to migrate or Adjustment required
   - D. Any object, as long as Migration Assessment has evaluated it first

   Answer: C. SAP lists integrated configuration objects as the supported object, and the tutorial only allows those in Ready to migrate or Adjustment required. The assessment is recommended but not required to start.

3. A PO scenario uses exactly once in order (EOIO) through an ABAP proxy. What do you plan?
   - A. Nothing, because the XI adapter keeps EOIO and acknowledgments as they were
   - B. A regenerated proxy with SPROXY against Cloud Integration to restore order
   - C. An Edge Integration Cell deployment, which supports EOIO on site
   - D. Ordered delivery built in the flow, for example with a sequence number

   Answer: D. SAP Learning says EOIO isn't supported and suggests a custom solution that delivers in order from a data store with a timestamp or sequence ID. The XI adapter runs proxies but without acknowledgments, and SPROXY generation against Cloud Integration isn't supported.

4. In the lab, why does wave 2 come out NO-GO?
   - A. The plan puts wave 2 after mainstream maintenance ends
   - B. P10's prices differ and three interfaces lack test messages
   - C. The bank's interfaces were split across two waves by an override
   - D. P13 is a redesign, and redesigns are not allowed in wave 2

   Answer: B. `compare` says GO only when every interface in the wave was replayed and matched. P10's Groovy port prints fewer decimals, and P04, P13 and P17 have no test message.

5. What is the right fix for P10's price difference?
   - A. Add Price to ignore_fields so the comparison passes
   - B. Ask the CRM team to accept prices with any number of decimals
   - C. Change the Groovy script so it prints the price as PO did, then replay
   - D. Keep P10 on PO until extended maintenance ends in 2030

   Answer: C. The acceptance test is same input, same output. Ignoring the field hides the difference from the test but not from the receiver; the fix belongs in the flow.

6. Why does the planner fail when bank statements move to wave 2 alone?
   - A. The bank's file adapter can't run on Cloud Integration at all
   - B. Wave 2 then needs more days than the team has available
   - C. Bank statements depend on a BPM process that sits in wave 4
   - D. The bank would change its connection twice, once per wave

   Answer: D. The plan rule keeps a partner's interfaces in one wave so the partner switches and tests once. The override splits BANK across waves 2 and 3, so the plan fails.

7. What does SAP say happens to SAP NetWeaver AS Java 7.5, PO's platform, after 2030?
   - A. It moves to a follow-on release that SAP ships with extended support
   - B. It falls into customer-specific maintenance without a follow-on release
   - C. It keeps mainstream maintenance for customers on SAP HANA
   - D. It is covered by the Transition Option for SAP ERP until 2033

   Answer: B. SAP's October 2026 article says AS Java 7.5 falls into customer-specific maintenance from 2031 without a follow-on release, and SAP's Java support arrangements end at the end of 2030. The transition option covers SAP ERP, not Java-dependent capabilities.

8. Which interface should run on Edge Integration Cell rather than the cloud tenant?
   - A. The CRM price lookup, because it is synchronous and called often
   - B. The distributor EDI orders, because they use the AS2 adapter
   - C. The plant's production confirmations, which must run when the link is down
   - D. The bank payments, because their custom module can't move to the cloud

   Answer: C. Edge Integration Cell runs flows in your own environment for integrations that must stay on site. SAP Learning lists B2B scenarios among its restrictions, and it doesn't fix custom modules.

## Sources

- [Migrate SAP PI/PO to SAP Integration Suite (SAP Architecture Center, updated 28 October 2026, read 2026-11-30)](https://architecture.learning.sap.com/docs/ref-arch/8566b4): Customer contribution (Glencore); PI/PO standard maintenance ends 2027, extension to 2030; Migration Assessment a standalone capability, migration tooling part of Cloud Integration, both in the subscription; review known limitations before estimating; Edge Integration Cell for on-premise-only integrations, same runtime; Cloud Connector in high availability
- [SAP NetWeaver maintenance strategy (SAP Community topic page, read 2026-11-30)](https://pages.community.sap.com/topics/abap/netweaver-maintenance-strategy): SAP Process Integration and SAP Process Orchestration 7.5 follow SAP NetWeaver 7.5: mainstream maintenance until end of 2027, optional extended maintenance until end of 2030; extended maintenance at a premium of two percentage points on the maintenance basis
- [Beyond 2030: SAP Business Suite 7 and SAP NetWeaver customers, third-party databases and Java (SAP News, 7 October 2026, read 2026-11-30)](https://news.sap.com/2026/10/beyond-2030-sap-business-suite-7-sap-netweaver-customers-third-party-databases-java/): Dates announced in 2020 remain: mainstream to 31 December 2027, optional extended to 31 December 2030; Java support arrangements for NetWeaver AS Java 7.5 conclude end of 2030; AS Java 7.5 falls into customer-specific maintenance from 2031 without a follow-on release
- [Using Migration Assessment Tools (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/using-migration-assessment-tools): Extract, evaluate (migration status, showstoppers, workarounds), estimate T-shirt sizes for integrated configuration objects; supported PO releases 7.31 SP28+, 7.40 SP23+, 7.50 SP06+; connects to Integration Directory and Enterprise Services Repository
- [Migration Assessment tutorial (SAP Developers, read 2026-11-30)](https://developers.sap.com/tutorials/migration-assessment.html): Cloud Connector, technical user with SAP_XI_API_DISPLAY_J2EE, SAP_XI_API_DEVELOP_J2EE, SAP_XI_MONITOR_J2EE; Settings, Request > Data Extractions, Request > Scenario Evaluation; predefined rules can't be edited or added; categories Ready to migrate, Adjustment required, Evaluation required (most severe rule wins); sizes S, M, L, XL in days with a learning-curve factor; 2 GB extraction limit; PDF report and XLSX export
- [Automating Migration of Artifacts (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/automating-migration-of-artifacts): Migration tooling in Cloud Integration, pattern-based and semi-automated; only integrated configuration objects; channels HTTP, REST, SOAP, IDOC, FTP, XI, SFTP; flow steps message, Java and XSLT mapping and others; other components need manual effort; aims at 60 to 70% time savings
- [Use the Migration Tooling (SAP Developers, read 2026-11-30)](https://developers.sap.com/tutorials/migration-tool/): Migrate button on an integration package; patterns Point-to-Point Asynchronous, Point-to-Point Synchronous, Recipient List Asynchronous, Content-Based Routing, Default; Standard and Pipeline approaches; only ICOs in Ready to migrate or Adjustment required; configure addresses and security material before deploying
- [Adressing Special Technical/Functional Topics (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/adressing-special-technical-functional-topics): ABAP proxies run through the XI adapter but can't be regenerated with SPROXY; no acknowledgments; EOIO not supported, build ordered delivery from a data store; JMS resource limits; Java mappings to Groovy, wrapper limits (binary attachments, Office files, encryption, lookups); pipeline concept with few JMS queues
- [Testing your Migration (SAP Learning, read 2026-11-30)](https://learning.sap.com/courses/sap-process-orchestration-to-sap-integration-suite-migration/testing-your-migration): Run historical PO messages on Integration Suite and compare outputs; testing around 65% of migration effort; partner tools Int4 Shield Lite and Figaf free for up to 12 months during a migration project
- [Accelerate your move from SAP Process Orchestration to the cloud (sap.com, UK page, read 2026-11-30)](https://www.sap.com/uk/products/technology-platform/integration-suite/migration.html): Free migration assessment offer, financial transformation incentives (cloud credits, terms apply), migration services, assessment and migration tools included in SAP Integration Suite, SAP Migration Factory partners
