SAPFree calculatorPDF, Excel, Word exportSAP PI/POAll SAP PI/PO tools

SAP PI/PO Message Persistence Database Growth Calculator

This calculator estimates the steady-state size of the SAP PI/PO message persistence from message volume, payload, the number of message versions stored and how long successful and failed messages are kept. Use it to size the Java schema, set retention, and explain why the database keeps growing when deletion jobs stop.

Your numbers

200,000
KB

Depends on staging and logging settings, for example before and after mapping.

KB
7 days
%
days

Your results

Total message store
75.19
GB in steady state, before database overhead and indexes.
Volume written per day
10.2997
GB per day.
Steady-state store for successful messages
72.1
GB.
Store for error messages
3.09
GB.
Written per year
3.6713
TB written and deleted per year, which drives database redo and backup volume.

Estimate only. Actual size depends on staging and logging settings per interface, attachments, compression in the database and whether the deletion and archiving jobs run.

Save results:

Total message store vs retention days

Sweeps Retention for successful messages from 1 to 90, holding your other inputs fixed.

Get your PI/PO retention settings reviewed

Send message volumes by interface and your current staging, logging and deletion settings and we will suggest retention that fits your audit needs.

Optional. The tool and every export work without this. No spam.

Was this tool useful?

How to use it

Get messages per day and average payload size from Message Monitoring in the PI/PO monitoring home (pimon) or from your monitoring tool over a normal week. Persisted versions is the number of copies of each message the Adapter Engine stores: with staging or logging switched on at several processing steps, each message can be stored more than once. Overhead covers the audit log and message header data. Set retention for successful messages, the share that end in error and how long errors are kept for reprocessing. The primary output is the steady-state store, assuming deletion runs every day. The chart shows how it scales with retention.

  • Large payloads (PDFs, IDoc bundles) dominate: segment by interface if one is much bigger
  • Errors are kept longer and cost more per message than their share suggests
  • Annual TB written drives redo, log backups and replication load

Where messages are stored

In a Java-only PO (AAE or AEX), messages persist in the Java schema of the AS Java database; the main tables are BC_MSG for messages and BC_MSG_AUDIT for the audit log, with logged message versions in BC_MSG_LOG. Which versions are stored is controlled by the message staging and logging configuration: global settings in the NetWeaver Administrator for the XPI Service: Messaging System, and per-interface settings in the integrated configuration from 7.31 onward. Successful messages are removed by the Delete job and can be archived by the Archive job, both configured under Background Job Processing in the Adapter Engine configuration. In a dual-stack PI the ABAP Integration Server also stores messages (SXMSPMAST and related tables), deleted by RSXMB_DELETE_MESSAGES and archived per SXMB_ADM settings.

  • Java message tables: BC_MSG, BC_MSG_AUDIT, BC_MSG_LOG
  • Deletion and archiving: Background Job Processing in the Adapter Engine
  • ABAP stack (dual stack only): RSXMB_DELETE_MESSAGES, archiving via SXMB_ADM

Worked example

200,000 messages a day, 25 KB payload, 2 versions and 4 KB overhead give 200,000 x 54 KB = about 10.3 GB written a day. Kept 7 days, successful messages occupy about 72 GB. One percent errors kept 30 days add about 3.1 GB. Total about 75 GB. Raise retention to 30 days and it passes 300 GB. Switch logging on for every step of one high-volume interface, taking it to 4 versions, and daily volume almost doubles. About 3.7 TB is written and later deleted per year, which the database must log and back up.

Why the store keeps growing

When the store grows beyond the estimate, the usual cause is that the Delete job is not scheduled, not running, or cannot delete messages because they are still in a non-final status such as delivering, holding or system error. Messages in error are not deleted until they are resent or cancelled, so a backlog of errors grows forever. Archiving that is configured but whose archive store is unreachable can also block cleanup. Check job history in Background Job Processing, cancel or resend old errors, and review logging and staging settings for interfaces that store more versions than you need for support. Treat all numbers here as estimates.

Frequently Asked Questions

How do I reduce SAP PO message store size?

Shorten retention for successful messages, make sure the Delete job runs daily, cancel or resend old error messages so they reach a final status, and reduce logging and staging versions for high-volume interfaces. Archive only what audit requires. Then let the database reclaim space through its normal reorganisation.

Which table holds PI/PO messages?

On the Java stack, the Adapter Engine stores messages in BC_MSG with the audit log in BC_MSG_AUDIT and logged versions in BC_MSG_LOG. On a dual-stack PI, the ABAP Integration Server stores messages in SXMSPMAST and related SXMS tables. Avoid deleting rows with SQL: use the deletion jobs.

What does staging and logging mean in SAP PO?

Staging stores a message version at a processing step so it can be restarted from that point; logging stores a version for monitoring only. Each stored version takes space. They are configured globally in NWA and can be overridden per interface in the integrated configuration in 7.31 and later.

Is PI/PO still the right middleware?

SAP Process Orchestration 7.5 is in maintenance with an announced end of mainstream maintenance, and SAP's direction is Integration Suite. Many manufacturers still run PO on-prem for years. Sizing the message store correctly keeps it stable while a migration is planned.

If you want your integration team to ask PI/PO which interfaces fail and why, in plain English on your own servers, we can add a private AI layer over your monitoring data.

ArchRay builder
Design the on-prem AI stack for SAP PI/PO: model, GPUs, RAG pipeline, guardrails
See memory, speed and cost as you swap parts, then export the diagram. Free, in your browser.
Open the builder

Keep exploring