Statistical Sales Conditions are also relevant for Henry's first project in Margin Analysis.
Statistical sales conditions in SAP S/4HANA are price or cost items in sales orders that are used purely for information retrieval and analysis.
Statistical pricing conditions of customer invoices are transferred to financial accounting during sales order billing without affecting the financial ledger of the accounts (leading ledger 0L).
The statistical price condition is posted as a journal entry to an extension ledger of Financial Accounting and is therefore available in the financial statement version on extension ledger level.
Therefore, sales conditions are posted to an extension ledger, the line item relevant for margin analysis reporting is assigned to a profitability segment and therefore requires a cost element assignment to the underlying account. By default, the offsetting item does not have an account assignment object.
You can either use accounts without a cost element assignment for the offsetting item, or you must specify a default account assignment for the line item that is relevant for margin analysis reporting.
Use the following menu path in Customizing to specify a default account assignment for the line item, which is relevant for margin analysis reporting:
Controlling → Cost Center Accounting → Actual Postings → Manual Actual Postings → Manage Default Account Assignments.
They do not influence the final payment amount (net order value).
In Margin Analysis, they are used to optimize contribution margins for management reporting and to report them in more detail.
Typical Use Case: Cash Discounts and Discounts
Forecasted payment deadlines or conditional rebates that are not yet certain when an order is entered.
If statistical values such as warranties and cash discounts are to be displayed in margin analysis reports, statistical SD conditions must be included in the pricing procedure.
The indicator that flags a statistical condition as relevant for account determination must be set in the pricing procedure.
Afterwards, the configuration for prices and billing must be maintained so that the data is sent to Finance.
Similarly, SAP Best Practice Scope Item 34B must be activated.
After activation, the system transfers the values of statistical sales conditions from SD Sales and Distribution to Margin Analysis. The values are written to extension ledger 0C using G/L accounts.
Only statistical price conditions with status active can be transferred to Profitability Analysis.
When running margin analysis reports, extension ledger 0C must be selected accordingly.
Summary - statistical sales conditions are used as follows:
- True integration with Financial Accounting
Statistical conditions can be transferred from Sales and Distribution (SD) to Financial Accounting (FI) using the regular interface. When the billing document (invoice) is posted, these values are posted as journal entries to a so-called extension ledger in FI.
Examples of statistical price conditions that can be posted in Margin Analysis:
- Cash Discount
- Warranties
- Delivery costs
- Surcharges
- Discounts
- Commissions .
- Predictive Accounting
With predictive accounting enabled, forecasted values from orders are transferred directly to Margin Analysis, enabling real-time forward-looking management reporting.
Configuration Steps for Using Statistical Sales and Distribution Conditions

Define Condition Types
The condition type is used in pricing, for example: budget billing amounts. In the above example, the condition type DCD1 — Cash Discount Gross specifies whether the discounts are to be percentage or absolute.
Note that cash discount discounts, that is, discounts for payments that are made within a certain period, are only posted if the Cash Discount switch has been selected in the master record of the material to be sold.
Use the following menu path in customizing to define condition types:
Sales and Distribution → Basic Functions → Pricing → Pricing Control → Define Condition Types → Set Condition Types for Pricing in Sales.
Define Account Keys
The account key enables the system to post amounts to specific types of revenue accounts.
For example, Cash discounts calculated from the pricing condition for cash discounts are posted to the corresponding cash discount revenue account.
Use the following menu path in customizing to define the account keys:
Sales and Distribution → Basic Functions → Account Assignment/Costing → Revenue Account Determination → Account Keys → Define Account Keys for Revenue Account Determination.
Once the account key has been defined, it must be assigned to the corresponding condition types of the pricing procedures.
In the above figure, the account key YSC - Statistical Condition has been assigned to condition type DCD1 - Cash Discount Gross, which in turn is assigned to pricing procedure A10002 — Materials (Germany).
Use the following menu path in customizing to assign the account keys:
Sales and Distribution → Basic Functions → Account Assignment/Costing → Revenue Account Determination → Account Keys → Assign Account Keys for Revenue Account Determination.
Maintain Pricing Procedures

The figure above shows the pricing procedure A10002 — Materials (Germany) and the settings for condition type DCD1 - Cash Discount Gross in this pricing procedure.
This includes the following switches:
Statistics:
This indicator controls that a surcharge or discount is only set statistically (that is, without changing the value) in the document.
Relevant for Accounting Determination:
Determines whether a statistical price condition such as DCD1 — Cash Discount Gross is relevant for account determination.
The prerequisite for this is that the Statistics switch has been set for the pricing conditions.
If the Relevant for Accounting Determination switch is also set, the statistical price condition is posted as a journal entry to an extension ledger (0C — Management Accounting in our scenario) of Financial Accounting in Margin Analysis, which leads to a more detailed analysis in Management Accounting reporting.
Account Key:
Using the account key, the system can determine the revenue account that is assigned to the pricing condition and post the amount that is determined using the pricing condition to the corresponding revenue account.
Use the following menu path in customizing to maintain the pricing procedures:
Sales and Distribution - Basic Functions - Pricing - Pricing Control - Define and Assign Pricing Procedures - Set Pricing Procedures .
Account Determination

In the above example, the assignment of the G/L account for revenue account determination is performed according to the access sequence 005 — Account Key, in which a G/L account is specified depending on the following criteria:
- Application
- Condition type
- Chart of Accounts
- Sales Organization
- Account Key.
Use the following menu path in customizing for account determination:
Sales and Distribution → Basic Functions → Account Assignment/Costing → Revenue Account Determination → Assign G/L Accounts .
Define Extension Ledger, Ledger Group and Assign the Ledger Group

Extension ledger 0C — Management Accounting in the figure above is assigned to standard ledger 0L and inherits all journal entries of standard ledger 0L for reporting.
Postings that have been explicitly posted to the extension ledger are visible in this extension ledger, but not in the underlying standard ledger.
The Extension Ledger Type field specifies the type of journal entries that are allowed to be posted to the extension ledger. This depends on the business requirements and therefore on the purpose of the extension ledger.
You may need complete journal entries, that is, journal entries with real document numbers or only journal entries with purely technical document numbers.
In the case of extension ledger 0C — Management Accounting, the Extension Ledger Type P — Line items with technical numbers/no deletion possible is set, to record postings for Statistical Sales Conditions.
This type of journal entry is therefore only saved with technical numbers, that is, without document numbers.
They cannot be deleted and must be reversed if required.
In general, these journal entries can be used, for example, for commitments or predictive accounting purposes.
Use the following menu path in customizing to define the Extension Ledger:
Financial Accounting - Financial Accounting Global Settings - Ledgers - Ledger - Define Settings for Ledgers and Currency Types.
When you create a ledger, the system automatically creates a Ledger Group with the same name.
A ledger group is a grouping of any ledger for the purpose of joint processing in the functions and processes of General Ledger Accounting.
During posting, for example, you can restrict the update of the individual postings to a ledger group. This means that postings are only made to the ledgers that are assigned to the ledger group.
This means that all extension ledgers that the system is to use to enter postings for statistical sales conditions are also assigned to a ledger group.
In the example above, the Extension Ledger 0C — Management Accounting has been assigned exclusively to ledger group 0C.
The Representative Ledger in Group switch can be set for a ledger within a ledger group.
The representative ledger of a ledger group controls the following during posting:
- The posting period is determined
- The system checks whether the posting period is open.
After determining and checking the posting period, the system posts to all assigned ledgers of the ledger group according to the respective fiscal year variant of the individual ledgers.
Note
Use the following menu path in Customizing to define the Extension Ledger Group:
Financial Accounting → Financial Accounting → Global Settings → Ledgers → Ledger → Define Ledger Group.
Finally, the Ledger Group (0C in the example above), which contains all ledgers that the system should use to record postings for statistical sales conditions, must be assigned to Margin Analysis.
Use the following menu path in customizing to execute the assignment of the ledger group to Margin Analysis:
Controlling Profitability Analysis → Flows of Actual Values → Transfer of Billing Documents → Assign Ledger Group (Margin Analysis) .