Predictive Accounting

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Normally the books learn about a sale late. A customer places an order in March, the goods leave the warehouse in June and the invoice is sent in July, and revenue and cost of sales appear in the general ledger only at the last two steps. Until then, anyone asking "what will this quarter look like?" has to guess outside the books. Predictive accounting is the SAP S/4HANA capability that closes that gap: when the sales order is created, the system already writes the journal entries it expects the goods issue and the billing document to create, into a special ledger kept apart from the real one, and it removes them again as the real entries arrive. This page explains how that works, how it is set up, how the predictions are read and checked, and what happens to the numbers along the way, using the fictitious company code EX01. It is written against SAP S/4HANA 2025 FPS02 (on premise and Private Edition), where the setup is documented step by step. SAP S/4HANA Cloud Public Edition 2608 is covered only where a page says so (see In the two editions).

Before you read

Key terms

  • Predictive accounting: using the newest data from outside Finance, such as Sales, to predict accounting results before the actual postings exist.

  • Prediction ledger: the extension ledger in which the predicted entries are written, structured like the actual data.

  • Predictive journal entry: an entry in the prediction ledger that shows what a future actual entry is expected to look like.

  • Source document: the business document, here a sales order, from which predictions are derived.

  • Extension ledger: a ledger that reads through to an underlying ledger and stores only what is posted directly to it.

  • Reduction posting: a predictive entry that cancels the amount of an earlier prediction once the actual entry exists.

The idea

SAP’s help states the purpose in one sentence: predictive accounting takes the most up-to-date data from areas outside Finance, such as Sales, from other integrated products such as SAP Concur, or from external systems, and uses it to predict future results at any time. You get a better understanding of what your accounting results at the end of the current period or quarter might look like, and why.

The sales example in the help runs like this. When a sales order is created, predictive accounting creates predictive journal entries for the corresponding future goods issue and billing document in a special extension ledger, the prediction ledger. This ledger structures the predicted results just as the actual data is structured in the underlying ledger. The entries are built from the data currently available, to predict what the actual entries of the follow-on processes will look like. As the process continues and actual entries are created in the underlying ledger, predictive accounting updates the prediction ledger by reducing or reversing the amounts of the predictive entries.

Two source documents are named on the overview page: sales orders (predictive accounting for sales processes) and travel requests in Travel and Expense Management. A separate page covers service contracts, described below. SAP also says that the web service Predictive Journal Entry - Manage (Synchronous) can create predictive entries from sales orders held in an external system, and that a restriction note, SAP Note 3653948, lists what predictive accounting does not support. Reading that note needs an SAP login, so its list is not repeated here.

Because predictions and actual postings sit in the same universal journal, a financial statement can show both, and you can drill from a profit and loss line down to the individual entries and their line items.

The prediction ledger

The prediction ledger is an extension ledger. The ledgers page showed that an extension ledger sits on an underlying ledger and that postings to the underlying ledger also apply to it without being stored twice. Predictive accounting uses the same device in a different way: the underlying ledger is the leading ledger whose structure and values the predictions are based on, and the predictive entries are what is stored in the extension ledger.

For the running example, the underlying ledger is the leading ledger 0L of EX01. SAP reserves the ID 0E for the prediction ledger and 0L for the underlying ledger in implementations that use SAP Best Practices content; without Best Practices you choose IDs in your own namespace. The fiscal year variant of an extension ledger has to equal that of its underlying ledger (see Fiscal Year Variants and Posting Periods), and the ledgers page notes that the currency settings are inherited too.

How the entries are told apart from real ones:

  • In the Balance Sheet/Income Statement app, a predictive entry has a prefix in front of the journal entry ID. SAP’s example shows entry numbers beginning with PA.

  • In the table ACDOCA, a predictive entry has the document status Predicted Document (P) in the field BSTAT, and the ledger field RLDNR holds the prediction ledger.

  • The source document, here the sales order, is recorded in SRC_AWREF.

The life of a prediction in a sales process

sequenceDiagram participant S as Sales order participant P as Prediction ledger participant A as Underlying ledger S->>P: Order created: predicted goods issue and billing entries S->>P: Quantity or price changed: old predictions made obsolete, new ones created S->>A: Goods issue posted: actual entry A->>P: Reduction posting cancels the predicted goods issue S->>A: Billing document created: actual entry A->>P: Reduction posting cancels the predicted billing entry

SAP’s description of the steps, in order:

  1. A sales order is created. The system checks whether delivery and invoicing are possible and creates the predictive entries for the goods issue and the billing document in the prediction ledger. Follow-on processes, such as the split of costs of goods sold, are triggered as well. The predicted entries show up in analytical apps and reports as if they were real data.

  2. The goods issue is posted and creates the real entry in the underlying ledger. The system creates a new predictive entry that reduces the predicted goods issue. In the simple case where the predicted goods issue was USD 100 and the actual one is also USD 100, the reduction is USD -100.

  3. The invoice is created and posts to the underlying ledger. The system compares the actual invoice amount with the predictive entry and reduces that entry as needed.

Partial delivery, partial invoicing and price changes in the sales order are taken into account. SAP says accurate reduced figures come from a value-based approach: the invoice amount in transaction currency, or the goods issue value of the invoice, is posted with a reversed sign, and for partial invoices or goods issues the proportions are determined by comparing the actual posting with the forecast values.

A prediction can also be made obsolete without an actual posting. When a user changes the quantity of the order item, the old predictions are flagged as outdated and canceled, and new ones are created. The apps show this in an Obsolete Reason column: SAP’s examples show the value 3 with the text Reduction posting for a reducing entry, and the video on the page names the reason codes 1 for outdated, 2 for canceled and 3 for completed. SAP’s examples with an added, a changed and a deleted order item follow the same pattern.

Two details from the help matter in practice:

  • For a material with split valuation, the material costs of a predicted goods issue are calculated on the basis of the parent segment, the average of all valuation types. The cost can therefore differ from the cost of the actual goods issue.

  • If the system decides that a source document is not in scope, for example a sales order item category that is not supported, it writes a row to the table FINS_PR_ACCNOTIF with status 4 (Not in scope) and creates no predictive entries for that document in ACDOCA.

A worked example for EX01

The example below follows the structure of SAP’s own example, with EX01 numbers instead of SAP’s. It is constructed for this page: it shows how the amounts move, not the output of a system. Account names are descriptive, because the account numbers in SAP’s example belong to the Best Practices content.

A customer of EX01 orders 1,000 pieces. The net price is EUR 100 a piece, the output tax is 19 percent, and the valuation price of the material, which gives the cost of goods sold, is EUR 17.92 a piece. The totals:

When the order is saved, predictive accounting writes two predictive entries to the prediction ledger, one for the future goods issue and one for the future billing document. In the sign convention of SAP’s example, a debit is positive.

Predicted entry Account Debit (EUR) Credit (EUR)

Goods issue

Consumption of trading goods (cost of goods sold)

17,920

Inventory of trading goods

17,920

Billing document

Domestic receivables

119,000

Domestic revenue

100,000

Output tax

19,000

Each entry balances: 17,920 against 17,920, and 119,000 against 100,000 plus 19,000. The predicted margin that an app can now show for this order, before anything has shipped, is:

Now the goods leave the warehouse. The real goods issue posts the same EUR 17,920 to the underlying ledger 0L, and predictive accounting posts a reduction to the prediction ledger with the signs reversed: inventory is debited and the consumption account credited, each for EUR 17,920, with the Obsolete Reason 3. The net of the predicted goods issue in the ledger is now

and the real cost of EUR 17,920 sits in 0L, so the margin on the screen did not change: the amount moved from the predicted column to the actual one. The billing document does the same for the three billing lines. SAP’s example adds that the reduction of the billing entry keeps the posting date of the original predictive entry and that, if the invoice had an extra discount, the reduction would carry the original information and a new predictive entry would add a line for the discount.

If only 400 of the 1,000 pieces were delivered first, the cost of that partial goods issue is euros, and by the value-based approach the part of the prediction still open is euros. This is arithmetic on the principle SAP states, not a figure taken from a SAP page.

At the end of the order, SAP expects the sum of all predictive lines for the completed order to be zero. A rounding or exchange rate difference can leave a remainder, and the final reduction report described under Monitoring and background jobs clears it.

Setting up predictive accounting for sales

All of the following requires an SAP system; not run here. The steps are SAP’s, from the help page for sales processes. For a new implementation with SAP Best Practices, SAP says to include scope item 2FD. On top of the normal settings for sales orders, goods issues, billing documents and G/L posting, three groups of settings belong to predictive accounting.

  1. Create and assign an extension ledger. In the Implementation Guide choose Financial Accounting, Financial Accounting Global Settings, Ledgers, Ledger, Define Settings for Ledgers and Currency Types, and open the Ledger view. Create an entry with the ledger ID, the ledger type Extension Ledger, the extension ledger type "Line items with technical numbers / no deletion possible" and, as the underlying ledger, the leading ledger that predictive accounting should use as its basis. Assign the company codes of the controlling areas to be activated later in the Company Code Settings for the Ledger view, and save. Next choose Financial Accounting, Predictive Accounting, Check Prediction Ledger and enter the new ledger there. A checkbox lets you also use commitment management, which activates budget availability control for the predictive entries of this ledger (see Planning and Budgeting).

  2. Activate predictive accounting. Choose Financial Accounting, Predictive Accounting, Activate Predictive Accounting and select Active with date of entry in the Sales Processes column for each controlling area. If you use profitability analysis, the same activity is also under Controlling, Profitability Analysis, Flows of Actual Values, Transfer of Incoming Sales Orders. For EX01 the controlling area is EX00.

  3. Activate the item categories. Choose Financial Accounting, Predictive Accounting, Activate Predictive Accounting for Sales Order Item Categories, enter the categories to be processed and select the checkbox for each.

A rule that surprises beginners: after activation, the system creates predictions only for sales orders created after the activation date, and older orders and their follow-on documents are not supported by default. SAP describes a workaround for older orders. It needs an activation year early enough to include the order’s delivery and billing dates and an order configured to allow actual delivery, goods movement and billing; then the report FINS_PRED_REPOST is run in transaction SE38 with the Repost predictive documents, Expand existing documents option and, optionally, first as a test run. To check the result, filter ACDOCA for the prediction ledger (for example RLDNR = 0E) and the order number in SRC_AWREF.

Reading the predictions

Analytical apps read the predictive entries together with the actual ones.

App What SAP says it does

Incoming Sales Orders - Predictive Accounting

Evaluates predicted revenue, cost of sales, margins and sales deductions based on incoming sales orders. You filter by time period and by organizational, customer, product and accounting attributes, drill down, and navigate to journal entries, sales orders, customers and products.

Gross Margin - Presumed/Actual

Shows predicted, actual and planned revenue, cost of sales, margins and sales deductions based on incoming sales orders, with filters such as period, customer, product and profit center.

Balance Sheet/Income Statement

Shows predictive entries together with actual ones; the prefix on the entry ID identifies the predictive ones.

The first app calculates its key figures from semantic tags assigned to nodes of a financial statement version. The tags it requires are RECO_COS (Recognized COS), RECO_REV (Recognized Revenue), REC_MARGIN (Recognized Margin), SALES_DED (Sales Deductions) and BILL_REV (Billed Revenue). The help page for the app also describes a Display Predictive Accounting Document app reached by navigation from a journal entry, which needs the business catalog of its target app in the user role.

Monitoring and background jobs

A prediction is only as good as the data behind it. A sales order with missing data, such as a customer without a company assignment, or an account that is blocked for posting can stop predictive entries from being created, and the forecast then misses that order. The Monitor Predictive Accounting - Predictive Quality app finds these errors. Its tile shows the quality of the predictions over the last 7 days as the share of source documents in scope that were processed successfully, computed in the group currency (GBP for the running example):

where is the group-currency amount of all successfully processed source documents in the last 7 days and the group-currency amount of all source documents in that period, rounded if needed. The app lists the source documents with errors, groups the top errors by type, status, process step and age, opens the long text and details of an error, and lets you exclude documents from reprocessing or reprocess them manually after a fix. A situation template and, on SAP S/4HANA Cloud Private Edition only, an AI-assisted Analyze Error button (business role SAP_BR_SALES_ACCOUNTANT required, extra entitlement possible) are also described.

Two reports run as technical jobs while predictive accounting is active, and SAP says not to start them manually. You can watch them in the Technical Job Repository (transaction SJOBREPO).

Report Purpose

FINS_PRED_AIF_REPROCESS

Early in the process: picks up source documents with the status New and rechecks those Processed with errors, so that fixed ones enter the creation process again.

FINS_PRED_FIN_REDUCTION

At the end: for sales orders with overall status completed, checks that all predictive lines add up to zero. If an amount remains, for example from exchange rate fluctuations, it posts a final reduction and sets REDUCTION_STATUS to 01 in FINS_PR_ACCNOTIF. Rejected items are excluded.

Predictive entries for sales orders that are no longer needed online are archived with the archiving object FINS_PRED (programs FINS_PRED_ARCH_WRITE, FINS_PRED_ARCH_DELETE and FINS_PRED_ARCH_RELOAD). An entry can only be archived if its document status is Predicted Document (P), the sales order no longer exists in VBAK or has the overall status Completely processed (C). Archived predictive entries can no longer be displayed.

Service contracts

Predictive accounting also covers service contract items. SAP says it predicts their financial impact as soon as they are released and creates predictive entries for deferred and accrued revenue in the prediction ledger, before event-based revenue recognition recognizes revenue at closing or before invoices are entered.

  • Scope item 4V7 must be requested; it is not activated by default. After activation, only contracts that start after the activation date are supported, and a contract item must not be part of a financial service hierarchy.

  • Predicted invoices are simulated only when billing document requests exist. SAP recommends scheduling the job that creates them (transaction CRMS4_BIL_BDR_GEN or report CRMS4_BILLING_BDR_GENERATE) at a regular recurrence, with the creation horizon left empty and an asterisk in the service contract field.

  • Predicted revenue uses the valuation logic of event-based revenue recognition and is supported when the method assigned to the underlying ledger is a time-based one. When a period-end closing run recognizes revenue for a period, matching reduction postings are made in the prediction ledger.

In the two editions

The pages read for this topic are in the Controlling documentation for SAP S/4HANA on premise, and their instructions use Implementation Guide paths. The video on the sales page speaks of predictive accounting in SAP S/4HANA Cloud and uses the Fiori apps named above, and SAP’s service contract page refers to scope item 4V7. A separate Public Edition help page for predictive accounting was not found when this page was written, so the Customizing steps above are described for on premise only. For Public Edition 2608, expect scope-item-driven activation instead of Implementation Guide steps, and check the Public Edition Product Assistance for the current settings. The Public Edition page on Planning and Budgeting mentions the related scope item 2I3 (Predictive Commitments Management) for commitments in the budget check.

Predictive accounting is not the same as the other ledger features on this site. Parallel ledgers such as 2L hold actual postings under another accounting principle (see Ledgers, Currencies and Exchange Rates and Universal Parallel Accounting); the prediction ledger holds only expectations, and its entries are removed as the real ones arrive.

Summary

  • Predictive accounting writes the entries that a sales order is expected to cause, for the goods issue and the billing document, into a prediction ledger, which is an extension ledger on the leading ledger, as soon as the order exists.

  • Predictive entries live in the universal journal with document status P, are marked by a prefix in the apps, and are read together with actual data in apps such as Incoming Sales Orders - Predictive Accounting.

  • When the real goods issue and invoice post, reduction postings cancel the predictions, and a final reduction report clears any remainder. Quantity or price changes make predictions obsolete and create new ones.

  • Setup needs an extension ledger, its assignment under Check Prediction Ledger, activation per controlling area and activation of the order item categories. Only orders created after activation are predicted.

  • The Monitor Predictive Accounting - Predictive Quality app shows which source documents failed and why.