Very important for Henry is the set up of customer-specific fields and all related activities so that the field can be used as a dimension in Margin Analysis.
Characteristics are criteria according to which the results are analyzed.
Typical characteristics are:
- Who? (customer group, sales channel, specific customer)
- What? (Product, Product Group, Article)
- Where? (sales region, country).
Characteristics are valid for all clients and are available for all operating concerns.
Characteristics are saved in a field catalog.
If postings exist for characteristics, they cannot be deleted.
In general, there are different ways of creating characteristics for margin analysis, including them in the desired operating concern, and, if necessary, maintaining the characteristic values.
Depending on the procedure you choose, you may have to use the system administrator and an application developer in addition to the business expert or implementation consultant.
One reason for this is that the characteristics created must also be included in the tables ACDOCA and ACDOCP.
A second reason is that the created characteristic is not automatically available in Margin Analysis reporting because it is not automatically included in the CDS views of Margin Analysis when characteristics are created and included in the operating concern.
SAP recommends to use the Custom Fields app to define characteristics for margin analysis if possible.
The procedure described as an example in the next lessons shows the technique recommended by SAP to create a characteristic for margin analysis, to include it in the operating concern, as well as in the tables ACDOCA and ACDOCP, and in the desired reporting CDS views of margin analysis.
Characteristics are added in the Custom Fields app using the Accounting: Market Segment business context and can be assigned to all delivered CDS views that are relevant for profitability analysis. And also to the CDS view for the universal journal.
Accordingly, they can then be used in all UIs and apps for Profitability Analysis.
The figure below shows an overview of the most important reporting apps in Margin Analysis, their app ID, and the CDS view assigned to the app:

Note the following restrictions when using the Custom Fields app:
- Instead of including the example characteristics provided by SAP, the so-called predefined characteristics, into the operating concern using the Customizing of the operating concern, you should create the field manually using the app mentioned above and also to manually maintain the corresponding characteristic values in the app. This is initially more time-consuming, but has the advantage that you can perform the assignment of the field to the universal journal and the reporting CDS views of margin analysis as a business user.
- Scenarios such as "The customer characteristic of the sales region is to be logically linked to the characteristic sales employee because each employee is permanently assigned to a specific region" are technically not mapped using the Custom Fields app because the Custom Fields app does not include the functionality of characteristic compounding.
Maintenance of Derivation Rules
Characteristic derivation is the attempt to determine values for all CO-PA characteristics for all business transactions that are relevant to profitability analysis. The values of other, logically dependent characteristics are determined from the automatically transferred characteristic values. The derivation process can use information within and outside the source document.
The profitability segment to which the account assignment is made is created from the set of characteristic values that were created from the characteristic derivation.
Each derivation step describes how a set of target fields can be filled from a set of source fields. One or more values are derived from the combination of values in the source fields and set in the target fields.
Use the following menu path in Customizing to check and create derivation rules:
Controlling → Profitability Analysis → Master Data → Define Characteristic Derivation.
If you select View — Display all Steps, you can see all existing characteristic derivations.
You can use Create Step to define your own characteristic derivations.
The figure below shows the available characteristic derivation types and gives an example for each one.
Characteristic Derivation Type Derivation Rule
A derivation rule is an IF-THEN condition that determines which source characteristic values (or value combinations) result in which target characteristic values.
In the following example, the strategic business unit (ZZ1_STRAT_BUS_UN_MSE) is derived from the material group (MATKL):
- Material group 100 to 101 → Strategic business unit electronics
- Product Group 102 to 103 → Strategic Business Unit Multimedia.

The derivation rule is most used in Profitability Analysis because it allows you to derive characteristic values based on different combinations of characteristics.
Derivation Rule Category Table Access
In the following example, the characteristic derivation rule type Table Lookup is used to derive the characteristic "Country" using an automatically generated derivation step (table access in customer master table KNA1) that uses the characteristic "Customer" (KNDNR) as a source field.

This means that in table KNA1, field KUNNR is the key field. This field is contained as a fixed field in the operating concern.
If a posting is made to a customer (KUNNR), the system checks table KNA1 for this customer to see which country (country/region key) is assigned to this customer in the customer master record.
This information derived from the table is transferred in the form of a mapping to field LAND1, which is also contained as a fixed field in the operating concern.
As a result, the field LAND1 will be posted to in the posting document of CO-PA.
Derivation Rule Category Assignment
You can use the characteristic derivation rule type Assignment to assign a constant value to a characteristic or copy the content of a source field to a target field.
For example, you can copy the value of a characteristic to another field if certain conditions are met.
The following figure shows an example of the logic that the system uses to copy the value of the Customer field to the value of the Ship-to Party field.

Derivation Rule Type Clear
The characteristic derivation of type Delete cleans up data by removing specific characteristics or values in certain product constellations. This is particularly useful to automatically prevent inconsistencies (for example, conflicting material specifications).
The figure below shows an example of characteristic derivation of type Clear.

Since spare parts (division 10 — Spare Parts) — for example, for the bicycle trailer — are only sold online, that is, without a representative, the characteristic Representative (VRTNR) is not relevant for the analysis of this division. Therefore, the Substitute field should not be filled according to the derivation rule for the specified condition.
Derivation Rule Category Enhancements
If the standard derivation types do not meet the requirements, complex characteristic derivations can be created using enhancements.
For characteristic derivations, you can use the customer enhancement COPA0001, component 003.
Use the following menu path in customizing to define a customer enhancement:
Controlling → Profitability Analysis → Tools → SAP Enhancements.
Sequence of Characteristic Derivations
There is no restriction in the system as to how many characteristic derivation rules can be created. Some characteristic derivation rules are delivered by SAP.
The figure below shows a series of standard derivations.

The number of characteristic derivations created by default can change based on the characteristics assigned to the operating concern and the business functions that are activated or configured.
Note
The sequence of characteristic derivations plays a very important role. The system derives the characteristics from top to bottom. It must therefore be ensured that the characteristic derivations are arranged in the correct sequence.
Use the following menu path in customizing to check and if necessary, arrange the derivation rules in a different order:
Controlling → Profitability Analysis → Master Data → Define Characteristic Derivation.
When you open the transaction, choose View → Display All Steps to show all derivation rules.
If you need to change the order of the derivation rules, first highlight the derivation rule you want to move.
Then, click with your cursor into the Step Number field after which you want to position your derivation rule.
Then click the Move button shown in the above figure. As a consequence, the position of your derivation rule has changed.
For a bicycle trailer (material F2-00) in the SAP Margin Analysis environment, a derivation strategy is created step by step in the following lessons to be able to analyze the contribution margins in a more differentiated way by product characteristics.
This derivation strategy comprises 3 derivation rules, which are shown in the following figure:

For each of the three derivation rules, the steps shown in the following slide are to be carried out in order to be able to use a new characteristic created, in Margin Analysis:
