SAP Knowledge Base Article - Public

3830037 - Analytics for variant configuration/classification in solution orders - SAP S/4HANA Cloud Public Edition

Symptom

Advanced Variant Configuration (AVC) characteristics for configurable items in solution orders cannot be exposed in Embedded Analytics because no data source/object type for Solution Orders is available in the Classification/Configuration CDS views.

Environment

SAP S/4HANA Cloud Public Edition

Cause

Core Data Service (CDS) views are SAP's strategic modeling approach for business entities. When doing analytics, pre-delivered CDS cube and query views can be used to analyze solution order data. However, in case to analyze classification/configuration data, SAP cannot deliver this upfront. The classes and characteristics for Classification/Configuration originate in the customer system. The data is saved as data that is out of the box ready to be consumed as columns in the analytics Report. It needs to take additional steps to enable such a consumption of data with other applications. These steps are explained in the 'Resolution' section.

Resolution

Create a Custom CDS View for a Custom Analytical Query.

Step 1: Generate the base CDS view based on Variant Configuration Characteristics. 

  1. Click on tile 'Create Classes' under 'Variant Configuration Modelling' business catalog (role: SAP_BR_PRODUCT_CONFIG_MODELER). Using the tile, create a 399-class containing the characteristics that are needed for analytics.
  2. Click on the tile 'Classification/Configuration CDS views: Generate Analytical Views' under 'Variant Configuration Modelling' business catalog (role: SAP_BR_PRODUCT_CONFIG_MODELER) to generate the Base Classification CDS view.
  3. Provide the class name and the CDS name and click on execute. Note: CDS view name is mandatory. The field takes an input of size 16 characters. The inputted name along with the prefix Z and suffix MARA makes up the CDS view name. For Class Type '399', object type 'MARA' is always fixed.

Step 2: Once the base view is ready, to construct solution order specific analytics, create a cube view in Custom CDS view app. Role: SAP_BR_ADMINISTRATOR OR SAP_BR_ANALYTICS_SPECIALIST.

  1. Log in to the system with an Extensibility User and navigate to Custom CDS Views.
  2. Select the scenario as Standard CDS View.
  3. Set the Primary Data Source to I_ServiceDocumentItemEnhcd and the Associated Data Source to the base CDS view generated in Step 1-3.
  4. Define the Join Condition as:
    • ConfigurationNumber (Primary Data Source) → ProductConfiguration (Associated Data Source)
  5. Create the required Parameters — KeyDate and Language — as defined in the base view from Step 1-3.
  6. Navigate to the Elements tab and select the fields wish to display.
  7. Go to the Filters tab and add a filter:
    • Field: ServiceObjectType (from I_ServiceDocumentItemEnhcd)
    • Value: BUS2000172

    Note: This filter is required because I_ServiceDocumentItemEnhcd is a generic view covering all service document types. The filter ensures only Solution Order data is retrieved.

  8. Click Check, then Publish the view.
  9. After publishing, validate the data using the Preview option.

Step 3: Create a Custom Analytical query in the "Custom Analytical Queries" app on the Custom CDS view created in Step 2-8. Note: This app which supports only cube views for analytics and is accessible with SAP_BR_ANALYTICS_SPECIALIST Role.

  1. Provide a name for the query. Data source is the view created from Custom CDS view application in Step 2-8.
  2. Provide a label for the query view in general tab.
  3. Select the fields which needs to be exposed as part of the query view. Numeric measures are selected as column by default.
  4. Under display tab, change the axis of free fields to row. Also, additionally an overriding label can be provided for better depiction on the graph.
  5. Filters can also be added to a specific field. 
  6. On clicking preview, a bar chart representation is seen which displays the analytics.

See Also

2953142 - Analytics for Variant Configuration/Classification in SAP S/4HANA

Keywords

SAP Fiori, OData, OData service, Characteristic value assignment, Language-dependent characteristics, Configuration model, Characteristic exposure, Data exposure, Attribute mapping, In-app analytics, CDS consumption, Association mapping, Public API, Key figure, Analytical cube , KBA , CRM-S4-ANA-CDS-2CL , S4CRM: Analytics Data Service (Public Cloud) , CA-CL-HBA-2CL , Classification HANA based Analytics (Public Cloud) , CRM-S4-ANA-BI-2CL , S4CRM: Business Intelligence (Public Cloud) , CRM-S4-SOL-SLO , S4CRM: Solution Order , How To

Product

SAP S/4HANA Cloud Public Edition all versions