Defining a Derivation Strategy

Objective

After completing this lesson, you will be able to define a derivation strategy

Characteristic Derivation Concept

Image displaying an input-output derivation process with customer number (K1), district (B1), area (A1), material group (PG), and product category (F) mapped to sales group (CGr1). Input SD transforms to output CO/PA.

For each Profitability Analysis (CO-PA) relevant transaction, if the derivation strategy is complete, the system attempts to derive a characteristic value for each characteristic in the operating concern.

Note that derivation is not always successful. If the system cannot determine a characteristic value for a characteristic, it posts a blank, null, or unassigned characteristic value.

The definition of the profitability segment consists of the total combination of (segment-level) characteristic values for a given transaction. The profitability segment is the account assignment object for CO-PA.

How to Display Master Data in CO-PA

Derivation Techniques

Image showing derivation strategy with steps: SAP table lookups (Customer to customer group and Product to product group) and Customer derivation rules (Product category + industry to strategic business unit and District to state). Inputs lead to outputs.

A derivation strategy consists of a number of different steps, which derive different characteristic values. Each derivation step defines the logical interrelationship between the known source characteristics and the characteristics to be derived.

The system automatically creates a standard derivation strategy for each operating concern. This strategy contains derivation steps for all dependencies between characteristics that are already known. You can modify this strategy to meet the requirements of your company. If you define your own characteristics that need to be derived from other characteristics, add your own derivation steps to the standard strategy to define the derivation.

Options for Derivation Steps

Image showing Options for Derivation Steps. SAP steps: fixed characteristics, table lookups, customer hierarchy, product hierarchy, region. Customer steps: SAP enhancements, units of measure. Both: derivation rules, move and clear.

When attempting to locate a characteristic value for each characteristic for transactions relevant to CO-PA, the system goes through a sequence of steps. This sequence of steps is known as the derivation strategy.

The system performs the steps in order from the first to the last derivation. If a derivation needs another derivation, the source derivation must be positioned before the dependent derivation. The very last derivation is usually the dummy profit center.

The following instructions can be configured for each step:

  • Conditions under which the step should be executed.

  • Whether initial values are allowed for the source fields in a step.

  • Whether the step should overwrite an existing characteristic value.

  • Whether an error message should generate if the step is unsuccessful.

Each step represents one of the customizable derivation techniques, such as table lookups, derivation rules, regions, product hierarchies, customer hierarchies, moves, clears, and enhancements. The values of one or more characteristics can be determined in a single step.

Derivation occurs for all transactions relevant to CO-PA, including direct entry into CO-PA and external data uploads into CO-PA.

Standard Derivation of Organizational Units

Diagram showing business icons for SD, CO, FI modules linking to characteristic values: Controlling Area, represented by a person; Company Code, represented by a building; Plant, represented by a factory.

Characteristics such as division and profit center have fixed derivation steps. This means that the system automatically generates non-modifiable steps that may be used to determine their values. These steps may be in the form of a standard derivation technique or function call.

You can use other derivation steps to overwrite the values determined through fixed derivation steps. This overwriting of values can be achieved with all characteristics, except controlling area, company code, product, and customer. These characteristics have fixed and non-modifiable derivation.

The system incorporates fixed derivation to ensure that many organizational elements are populated. This enhances the possibility of reconciliation with other data modules in the SAP system.

Derivation Through Table Lookup

Diagram showing the relationship between databases and groups. The Customer Master database links customer data to Customer Group, and the Material Master database connects product data to Material Group.

A table lookup is a derivation method that CO-PA uses to access the characteristic values from SAP master data tables when this information is not available in the originating transaction. For example, an invoice might not contain the purchasing group for a material being sold. CO-PA can capture this information for the invoice item using a table lookup.

Table lookups can be performed when the key of the table to be accessed is filled with the characteristic values that are already known to CO-PA for the transaction. For example, a country value can be determined when the customer identity is known. This is because the customer is the only key to the KNA1 table, which contains general customer information, such as addresses.

The ability to customize table lookup derivation allows you, as the configurator, to control the types of characteristic values that are used to access other characteristic values. For example, you can configure the table lookup for the characteristic country to find the country value for the ship-to field instead of the country value for the sold-to field.

Using table lookups, you can access entire or parts of field values in the tables in which keys are filled with the known characteristic values of transactions. For example, you can configure the derivation lookup for the product hierarchy to import the entire product hierarchy value or only the first few characters of the hierarchy into CO-PA.

The SAP system generates some table lookups automatically, based on the definition of a characteristic. The SAP system generates these table lookups when the operating concern environment is generated. You can modify the non-fixed lookups. Other table lookups, such as those for user-defined characteristics, must be created from the beginning.

Derivation Rule

Diagram illustrating the derivation rule converting material group to product category. Material groups L002, L003 to R (Replacement), L004 to F (Product), P001 to S (Service), L001 to T (Trading Goods).

Derivation rules are used to determine characteristic values through user-defined logic. They are frequently used with user-defined characteristics, although their use is not limited to user-defined characteristics.

With derivation rules, characteristic values, known as target values, are directly determined based on the values of other characteristic values, known as source values.

Similar to other derivation steps, you can configure derivation rules either to apply to all situations or to apply only when certain conditions are met. For example, they can be configured to apply for sales organization 1000 only. You can also configure derivation rules to produce an error message when a characteristic value cannot be determined using the rule entries. You can also ignore the error and proceed.

In contrast to other derivation steps, you can configure derivation rule entries to be either related to a specific interval or time (time-dependent) or applicable at all times (time-independent). Derivation rules can be set up in sequence with other derivation steps and methods to produce complex derivation logic.

Derivation with Move and Clear

Diagram illustrating two conditions: 1) If ship-to party is #, move Sold-to Party T-C00 to Ship-to Party T-C00. 2) If sales order reason is Trade Fair Sales Activity, clear Sales Office 500 to Sales Office #.

With a move, you can directly transfer a characteristic value or part of the characteristic value to another characteristic. Under specific conditions, you can also move a constant to a characteristic.

In the figure, Derivation with Move and Clear, the value in the Sold-to field is copied to the Ship-to field with the Move function. This occurs if the Ship-to field is originally not populated by any previous derivation step.

When specific conditions arise, the Clear function is available to clear a value from a characteristic. In addition, the employee value is cleared to not assigned when the product is a specific value. This is because the employees should not get sales credit for certain items.

The system automatically generates a move derivation step to move the dummy profit center value from Profit Center Accounting (PCA) to CO-PA, if other steps cannot determine a profit center.

Derivation for Items Without Profitability Segment into the Universal Journal

In this step, you activate the derivation of profitability characteristics for general ledger line items into the universal journal posting. These do not carry an account assignment to a profitability segment.

The requirements are as follows:

  • Margin Analysis must be active.

  • The corresponding general ledger account must be one of the following account types:

    • Primary cost or revenue

    • Secondary cost

Selection Criteria for Objects

The activation is possible for the following object types:

Object TypeSelection Criteria for Relevant Objects
Cost CenterCost Center Type
Internal OrderOrder Type
WBSProject Profile
Sales—Order—ItemPosition Type
Production OrderOrder Type

Customizing Monitor: Derivation Analysis

Screenshot showing SAP GUI 'Characteristic Derivation: Overview.' It lists target fields, source fields, methods, parameters, and conditions. Highlighted entry is Step 28, with detail for CO-PA, Ship-to party.

The Customizing Monitor provides an overview of all derivation steps. Additional functions are available when you use the SAP List Viewer to display the derivation analysis. You can search for specific value fields and determine their use in derivation.

Derivation for Items without Profitability Segment into Universal Journal

In SAP S4/HANA, it is possible to use the derivation of CO-PA characteristics in the line items and post therefore in the universal journal, although the accounting object in the posting is not CO-PA, but another CO-Object. Using this option, the CO-PA characteristics could be added to the line item of a cost object available for reporting in the universal journal, before the cost object has been allocated to CO-PA.

Steps

  1. Display the activation of derivation without profitability segment in the customizing of CO-PA.

    1. In the SAP Easy Access Menu, go to Transaction: "SPRO"SAP IMGControllingProfitability AnalysisMaster DataActivate Derivation for Items without Profitability Segment.

    2. In the Change View Item Assigned to Internal Orders screen, show that the Profit and Loss Accounts and Balance Sheet Accounts have been marked. An internal order might be assigned to revenue and costs as well. An internal order might also settle its cost to an asset under construction.

Result

With this function, it is possible to report revenues and expenses of profitability segments in Financial Accounting and Margin Analysis before the internal order has been settled to CO-PA.

Evaluate the Derivation Configuration

Business Example

The system requires country and region information from either the ship-to party (if there is one) or the sold-to party.

Product groups are to be categorized into strategic business units for reporting.

Your sales manager requires reports for the customer group and sales district, and would like to know whether the values for these fields can be read directly from the customer master and sales document tables.

Note

The term characteristic value refers to an individual value defined for a particular characteristic (such as product id = iphone14). All data transferred to CO-PA are checked against the valid characteristic values, which are stored in check tables. These check tables already exist in the original component of the characteristic. The values are maintained manually in CO-PA if the characteristic is customer-defined (ww___ namespace). Characteristic derivation describes the determination of characteristic values for each business transaction that is relevant for CO-PA.

Evaluate the derivation techniques and view the sequence to obtain characteristic values from the desired sources for all CO-PA-relevant transactions.

Task 1: Display Check Tables and Define Valid Characteristic Values

Task 2: Display the Derivation Strategy

Display the derivation strategy in the Customizing settings of CO-PA. Determine why some derivation steps can be modified and others are not changeable.

Simulate a Line Item and Check the Characteristic Derivation

Business Example

Your sales manager requires reports by customer group and sales district. They would like to know whether the values for these fields can be read directly from the customer master and sales document tables. For this purpose, you want to test and analyze the derivation strategy settings.

Note

If you enter an actual line item manually in CO-PA Costing Based, the line item is only saved in the corresponding table CE1.… and CE3. It is not saved in the universal journal ACDOCA and therefore not in the Margin Analysis. To avoid un-reconciled results in CO-PA costing based, the Simulate CO-PA Valuation - Profitability Analysis App should be used only to simulate a posting for characteristic simulation and / or valuation. This simulation of an actual posting is only available in COPA Costing Based.

Simulate a line item for your sample customer to test the derivation strategy.

Summary

  • A derivation strategy consists of steps to derive characteristic values.

  • Derivation steps can be modified to meet company requirements.

  • Standard derivation steps exist for characteristics like division and profit center.

  • Table lookups access characteristic values from SAP master data tables.

  • Derivation rules use user-defined logic to determine characteristic values.