Getting into Derivation Analysis

Objective

After completing this lesson, you will be able to outlining Derivation Analysis

Getting into Derivation Analysis

Since the Derivation Analysis tool helps a lot in a project, Henry also needs to get into this functionality.

You can use derivation analyses to test derivation rules before they are used in production in Margin Analysis. This helps to facilitate the understanding and analysis of derivations.

If you run the characteristic derivation test as described in the following figure, you can choose the Analyze Derivation button.

With the help of this function you can further analyze the derivation results.

The figure above shows how to navigate in order to execute the Derivation Analysis

You can see step-by-step why characteristic derivations have derived a characteristic or not.

The figure below gives an impression of all derivations that exist in the respective operating concern, including the standard derivations created by SAP and the custom derivations.

The focus is on the three characteristic derivations created previously.

The figure above shows the Derivation Steps with focus on the self-created derivation rules

Click Expand at the beginning of the row, for example, for rule 0016 – Table Lookup.

The system checks whether the product number is filled or not. If the product number is filled, the material group is read from the master record of the product, in table MARA according to the defined derivation rule, and its value is assigned to the Product_Line.

The figure above shows the checking self-created derivation rules 0016 and 0017

For rule 0017, you can see that the system derives the Price_Category from the Product_Line found in step 0016.

Finally, rule 0018 shows that according to the Price_Category found in step 0017, this value is assigned to the dimension SALES_CAMP_SEG by copying.

The figure above shows the checking result of the self-created derivation rule 0018

The analysis of characteristic derivation is helpful to test previously created characteristic derivations or to analyze characteristic derivations to better understand the results.

It also helps troubleshoot why characteristics were derived or not derived.

Check a Derivation Rule using Profitability Characteristics

Prerequisites

Since the SAP Bike Company plans to add further dimensions to the operating concern A000, Henry was to get familiar with the custom fields topic and test a derivation rule before the project starts.

Steps

  1. Log on to the SAP Fiori Launchpad.

    1. Choose (Start) to the lower left of your screen.

    2. In the alphabetical list which opens, scroll down to S4HANA T45 Fiori Launchpad and click on it.

    3. Enter your user and password and choose Log on.

      Result

      The SAP Fiori Launchpad Home page opens.
  2. Check the Custom Fields app in the SAP Fiori Launchpad for the following settings of the Market Segment dimension:

    Field NameField Setting
    Field Component Name 
    Code Value

    Note: Only note the code value for group 000
    Description for group 000 

    Note

    The field Market Segment is already a dimension in operating concernA000.

    Don't close the app.

    1. In the SAP Fiori Launchpad, choose the Custom Fields app in the Extensibility space and the Key User Extensibility page.

    2. In the Custom Fields list, select Market Segment and then select >(Navigation) right to the selected field.

      Result

      You should get the following result:
      Field NameField Setting
      Field Component NameZZ1_MarketSegment_MSE
      Code Value

      MS000

      Note: Only note the code value for group 000
      Description for group 000

      Market Segment Bicycle Trailer 000

      Note: Only note the code value for group 000
      Don't close the app.
  3. Check for the consumption view which makes sure that the Market Segment field is included in the universal journal tables ACDOCA and ACDOCP, the Data source of type OData Entity and of type OData Service are enabled? Note the technical names of the consumption view and of the two Data Sources:

    Consumption View: _________________________________________________________________________

    OData Entity: ______________________________________________________________________________

    OData Service: _____________________________________________________________________________

    Don't close the app.

    1. Open theUser Interfaces tab.

    2. Make sure, that the All sub-tab is open.

    3. In the Search field to the right of your screen enter consumption view C_JournalEntryItemBrowser.

    4. Choose .

      Result

      You will find that for consumption view C_JournalEntryItemBrowser:
      • OData Entity: C_JournalEntryItemBrowserResult and
      • OData Service: FAC_GLV_GL_ACCOUNT_LINE_ITEMS_SRV
      are both enabled for the Market Segment field.
    5. Don't close the app.

  4. Check and note, if the following CDS Views are also enabled for the Market Segment field and therefore allow Fiori Reporting in Margin Analysis based on these consumption views:

    • C_MarketSegmentQ2501
    • C_MarketSegmentPlanActQ2501
    • C_ProfitAndLossQ2901 .

    _____________________________________________________________________________

    1. In the Search field choose X to remove the consumption view of step 2.

    2. Enter consumption view C_MarketSegmentQ2501 in the Search field.

    3. Choose .

      Result

      You will find that consumption view C_MarketSegmentQ2501 has the status Enabled.
    4. Follow a. - c. for the other two consumption views in the exercise.

      Result

      You will find that consumption view C_MarketSegmentPlanActQ2501 and consumption view C_ProfitAndLossQ2901 also have the status Enabled.
    5. Choose the (Logo) icon to return to the SAP Fiori Launchpad Home page.

  5. Check the derivation rule CC -> Market Segment - 000 which makes sure that if you post costs on production cost center 10105000 - Bike Trailer Prod000, the correct market segment MS000 - Market Segment Bicycle Trailer 000 is derived.

    Don't close the transaction.

    1. In Customizing, choose Controlling→Profitability Analysis→Master Data→Define Characteristic Derivation.

    2. Choose (IMG - Activity).

    3. Choose Strategy→Display < - > Change.

    4. Choose View→Display all Steps.

    5. Select the Step Number which refers to derivation rule CC -> Market Segment - 000 .

    6. Choose (Details).

    7. Check the settings of the derivation rule.

    8. Choose Maintain Rule Values and get familiar with the rule values .

    9. Choose (Back).

    10. Don't close the transaction.

  6. Test the Characteristic Derivation for cost center 10105000 and in addition use the Analyze Derivation tool, to get more detailed information about how your derivation rule works.

    1. Select your derivation rule on the Characteristic Derivation: Change Strategy page.

    2. Choose (Test) .

    3. In the Test: Characteristic Derivation dialog scroll down to the Cost Center dimension.

    4. Enter cost center 10105000 .

    5. Choose the Derivation button.

    6. Scroll down to the Market Segment dimension.

      Result

      MS000 should be automatically in the Market Segment field.
    7. Choose Analyze Derivation.

    8. On the Characteristic Derivation: Analyze Derivation Steps page expand the step number of your derivation rule.

      Result

      You should get a similar result:
      Derivation carried out.  
         
      Source Fields  
      Field NameDescriptionContent
      KOKRSControlling AreaA000
      COPA_KOSTLCost Center0010105000
         
      Access date xx.yy.zzzz  
         
      Target Fields  
      Field NameDescriptionContent after
      ZZ1_MARKETSEGMENT_MSEMarket SegmentMS000
    9. Choose (Exit) .

    10. Choose Cancel.

    11. Choose (Exit) .

      Note

      If you execute a posting on cost center 10105000 using the Post General Journal Entries app, the dimension Market Segment will only automatically be filled with MS000 if also the Real-time Derivation was activated for cost centers.

Summary

  • Derivation analyses enable testing of derivation rules before production use in Margin Analysis, facilitating understanding and analysis of derivations.
  • The characteristic derivation test allows selection of the Analyze Derivation button to further analyze derivation results and see step-by-step why characteristics were derived or not.
  • The derivation analysis displays all derivations in the operating concern, including standard SAP-created derivations and custom derivations, with focus on characteristic derivations.
  • Rule 0016 – Table Lookup checks if the product number is filled, then reads the material group from the product master record in table MARA and assigns its value to Product_Line.
  • Rule 0017 derives the Price_Category from the Product_Line found in step 0016.
  • Rule 0018 assigns the Price_Category value found in step 0017 to the dimension SALES_CAMP_SEG by copying.
  • The analysis of characteristic derivation helps test previously created characteristic derivations, better understand results, and troubleshoot why characteristics were derived or not derived.