For the Margin Analysis project of the SAP Bike Company, Henry needs to make himself familiar with the concept of Characteristic Derivation. The first rule type he wants to understand is the Table Lookup.
To enable a differentiated contribution margin analysis of the bicycle trailer (material F2-00), a characteristic derivation of the type Table Lookup will be created in the first step. This rule will be used to derive the characteristic value of dimension Product_Line based on the material number. As a consequence, when a Margin Analysis relevant posting is executed, the profitability segment will also contain the Product_Line. This dimension is therefore available for a profit analysis.

The following figure shows the possible characteristic values of the material group for the bicycle trailer scenario and the actual material group assigned to the bicycle trailer F2-00.

Regarding the possible material groups for the different types of bicycle trailers, the following applies:
- BASIC (Simple, light pendant for everyday use)
- FAMILY (standard model for 1-2 children with large luggage compartment)
- SPORT (feather-light jogger and bicycle trailer, suitable for off-road use)
- CARGO (cargo trailer / transport variant).
These characteristic values of the Material Group field should be passed on to the Product_Line field according to their assignment in the respective material master.
To be able to use the Product_Line for evaluations in Margin Analysis, several configuration steps must be carried out.
Step 1: Create a customer-specific field using the Custom Fields app
You use the Custom Fields app to create the characteristic Product_Line.
Business Context Accounting: Market Segment (FINS_MARKET_SEGMENT) must be selected for field creation.

Choose Code List as the type and maintain the characteristic values accordingly. In our example, according to the above figure, Code Value 101 to 104, were created.
Step 2: Include the customer-specific characteristic in the universal journal tables ACDOCA and ACDOCP
In the Custom Fields app, you must activate the consumption view C_JournalEntryItemBrowser, including the corresponding OdataService FAC_GLV_ACCOUNT_LINE_ITEMS_SRV, when you create characteristics on the User Interfaces tab.
Then save and publish the created characteristic. This includes the characteristic in the universal journal tables ACDOCA and ACDOCP.
The figure below shows that the technical name of a new characteristic created via the Custom Fields app starts with ZZ1_ and has the ending _MSE.

The selected CDS view C_JOURNALENTRYITEMBROWSER is the reporting basis of the Display Line Items — Margin Analysis app. It reads the CO-PA specific posting data from the universal journal tables at runtime.
If you open this app after you activated the new characteristic and use the Settings button to select the new characteristic Product_Line, you will find that this characteristic actually is displayed.

Step 3: Transfer of the new characteristic in the operating concern
Next, include the new characteristic in the desired operating concern.

Use the following menu path in Customizing to transfer the new characteristic from the field list into the operating concern of your choice:
Controlling → Profitability Analysis → Structures → Maintain Operating Concern.
Then activate the operating concern and select Yes when asked "Do you wish to generate the operating concern environment".
Step 4: Include the new characteristic in the most important reporting views of Margin Analysis
Only after the characteristic has been added to the operating concern the CDS views of the desired margin analysis reporting apps have to be activated in the Custom Fields app so that the new characteristic is offered in these apps.

Finally, you must save and publish the new characteristic again.
If you then open, for example, the Market Segments – Actuals app, which reads data from the table ACDOCA using the view C_MarketSegmentQ2501, you can see that the new characteristic is offered in the Available Fields area in the Navigation Panel.
As a result, the activation activities in step 4 ensure that the views on which the reporting apps are based, are extended with the new characteristic as a result of the activation.

Step 8: Maintain characteristic derivation type Table Lookup for characteristic Product_Line
To explain to the system how the Product_Line field is filled when a posting is executed, a characteristic derivation must be created. In this scenario, the characteristic derivation type Table Lookup has to be used because the system has to transfer the material group entered during posting to the Product_Line.

Use the following menu path in Customizing to set up the table lookup logic:
Controlling → Profitability Analysis → Master Data → Define Characteristic Deviation.
The figure above shows that if the material was specified during postings, the system identifies the material group in the material master and then writes this value to the document as the characteristic value of the Product_Line.
Characteristic derivation can be tested directly in the Customizing activity mentioned above. This is described in the figure below.

After defining the characteristic derivation, execute the Test button.
Then, on the selection screen, enter characteristic values for the customer, the material, and so on, and then choose the Derivation button.
As a result, the correct characteristic value — here BASIC — should be found by the system for the characteristic Product_Line.