Ansicht
Dokumentation

BSCL_CLASS_VIEW_GENERATION_PD - Generate CDS Views for Configuration Predefined Scenarios

BSCL_CLASS_VIEW_GENERATION_PD - Generate CDS Views for Configuration Predefined Scenarios

ABAP Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You use this report to create your own CDS views for classification or variant configuration data. You can join these generated views either with CDS views of the Virtual Data Model (VDM), or with data tables used in business object-specific analytics. The resulting views contain the business objects and their characteristics in a format suitable for analytic means.

Integration

You need to execute this report as part of the process of exposing Classification/Variant Configuration data for consumption. You can find a detailed description of all the process steps in SAP Note 2330518.

Prerequisites

Usage of Class Type 399 is mandatory for generating CDS Views within the context of variant configuration.

Features

Note that if you change the classification configuration (for example add a characteristic to a class), the views are not updated automatically. You need to generate them again manually.

Selection

You need to specify for which of the following business data you want to generate views:

  • Class Type (mandatory)
The specified class type determines whether a classification view or a variant configuration view is generated.
The statuses assigned to this class type must notbe marked for classification, such as class type 399 as this type has customizing settings for variant configuration.
  • Object Type (optional)
For variant configuration, we recommend that you leave the Object Type field empty.
  • Class (optional)
Both for classification and variant configuration, we recommend that you enter one of your classes.

The following option is available:

  • Include Characteristic Value Description

If you select this option, the (system) generated CDS view includes a column with the characteristic value description (in the logon language). If you do not select this option, you will only see the characteristic values and not their descriptive text.

  • Show list before generation
To preview the list of views you are generating, check Show list before generation. Note that the difference between a classification and a variant configuration view is the following:
  • The classification view selects data from the classification persistency (that is, tables AUSPand others).

  • The variant configuration view selects data from the configuration persistency (that is, IBase).

Standard Variants

Output

The report creates CDS views that have all characteristics of a class as columns.

The following concatenation order applies for the naming of CDS Views:

  • Leading 'Z'
  • Client number
  • Class type identification (a 3 digit number)
  • Class external identification
  • Object type identification (abbreviated to 4 characters)
  • Organizational area (1 character)

The total length is restricted to 30 characters. Therefore, there are no underscores between the parts and the object type is abbreviated to four characters (only for table names that are longer than four characters).

Example (1): Z002001VEHICLEMA01F

In this case MA01 is the abbreviation for object type MARATand Fis the organizational area.

Example (2): Z002399MYCLASSMARA_

In this case the object type is "MARA" and the organizational area is represented by an underscore.

For the list of object type abbreviations used see database table BSCL_ABBR.

The system creates columns of characteristics from the data that you enter. To avoid naming conflicts with object type columns in the class view, all columns of characteristics start with an underscore followed by the characteristic's name. If the characteristic's name has more than 22 characters, it is shortened automatically to its first 19 characters. Then a two digit counter is added, separated from the radical by the symbol %. The counter of these long characteristics is generated with respect to the sequence of the corresponding internal number (CABN-ATINN).

If there are more than 99 characteristics with identical radical, the view cannot be generated.

For numeric characteristics with units of measure or currencies, the view gets an additional column with a special suffix.

This is the list of suffixes for additional columns for characteristics that have more than a plain column for the value:

  • _Unit: The column holding the unit of measure of the characteristic.
  • _From and _To: Indicates the start and end values of an interval type characteristic.
  • _Descr: The column for characteristic value description.

Activities

Example

Class CAR_EXTRAS contains two single-value characteristics COLORand SPEED_RANGE.

The corresponding SAP HANA entities are class views, one for each object type. For reasons of simplicity, assume that the characteristics are not assigned to any organizational area. The focus is on the class view for one object type, such as material. This view has the following columns:

  • One column for the material ID that contains the identification for the business object MATERIAL.
  • One column for the color that contains the identification for the business object _COLOR.
  • Two columns for speed range that contain the identification for the business objects _SPEED_RANGE_From and _SPEED_RANGE_To.





ROGBILLS - Synchronize billing plans   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 7998 Date: 20240520 Time: 081544     sap01-206 ( 105 ms )