Configuring Characteristic Derivation

Objective

After completing this lesson, you will be able to getting into Characteristic Derivation using the Table Lookup Rule Type

Configuring Characteristic Derivation using the Table Lookup Derivaton Rule Type

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 figure above focuses on the Table Lookup Derivation Rule in the Set of Derivation Rules

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.

The figure above shows the Material Group Maintenance and the Assignment to the Material Master

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.

The figure above shows the creation of a Customer-specific Characteristic and the Manual Maintenance of Characteristic Values

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 figure shows the Activation of the CDS View and the Odata Service and the Publishing of the Dimension in order to Assign the new dimension to Table ACDOCA and ACDOCP

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.

The figure above shows how to check if the Custom Field Product_Line can be selected in the Display Line Items Margin Analysis App

Step 3: Transfer of the new characteristic in the operating concern

Next, include the new characteristic in the desired operating concern.

The figure above shows the assignment of the customer-specific Characteristic to the 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.

The figure above shows the adding of the new characteristic to the reporting views in Margin Analysis

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.

The figure above shows that the new characteristic Product_Line is available in the app Markt Segments – Actual

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.

The figure above shows the Characteristic Derivation Table Lookup for the First Derivation Scenario

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.

The figure above shows how to test the First Derivation Scenario

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.

Summary

  • Create customer-specific characteristics using the Custom Fields app, selecting Business Context Accounting: Market Segment (FINS_MARKET_SEGMENT) and maintaining characteristic values as code lists.
  • Include the customer-specific characteristic in universal journal tables ACDOCA and ACDOCP by activating the consumption view C_JournalEntryItemBrowser and the corresponding OdataService FAC_GLV_ACCOUNT_LINE_ITEMS_SRV.
  • Transfer the new characteristic to the operating concern using Customizing menu path: Controlling - Profitability Analysis – Structures – Maintain Operating Concern, then activate the operating concern and generate the environment.
  • Include the new characteristic in reporting views of Margin Analysis by activating CDS views in the Custom Fields app, ensuring the characteristic is available in reporting apps like Market Segments – Actuals.
  • Maintain characteristic derivation type Table Lookup to define how the Product_Line field is populated during postings, using Customizing menu path: Controlling - Profitability Analysis – Master Data – Define Characteristic Deviation.
  • Test the characteristic derivation directly in Customizing by entering characteristic values and verifying the system correctly derives the Product_Line value based on the material group.