I_ChmlCmpstnUnitOfMeasureVH
Unit of measure value help for compositions
I_ChmlCmpstnUnitOfMeasureVH is a Composite CDS View that provides data about "Unit of measure value help for compositions" in SAP S/4HANA. It reads from 1 data source (I_UnitOfMeasure) and exposes 3 fields with key field UnitOfMeasure. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_UnitOfMeasure | I_UnitOfMeasure | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_UnitOfMeasureText | _Text | $projection.UnitOfMeasure = _Text.UnitOfMeasure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Unit of measure value help for compositions | view | |
| Search.searchable | true | view | |
| AbapCatalog.sqlViewName | ICCMPNUOMVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.resultSet.sizeCategory | #XS | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UnitOfMeasure | |||
| UnitOfMeasureName | ||||
| SIUnitCnvrsnRateExponent | SIUnitCnvrsnRateExponent |
--Label of view
@EndUserText.label: 'Unit of measure value help for compositions'
@Search.searchable: true
@AbapCatalog:
{
-- SQL view name (16 characters)
sqlViewName: 'ICCMPNUOMVH',
--If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
compiler.compareFilter: true,
preserveKey: true
}
--Access Control: Authorizations Checks
@AccessControl:
{
// authorization check not required as view only reads domain values
authorizationCheck: #NOT_REQUIRED
}
--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@ObjectModel:
{
dataCategory: #VALUE_HELP,
--Value help as DropDown
resultSet.sizeCategory: #XS,
--Performance Annotations
usageType:
{
dataClass: #CUSTOMIZING,
sizeCategory: #S,
serviceQuality: #B
}
}
@Metadata.ignorePropagatedAnnotations: true
-- SortOrder: largest unit first, smallest as last
@UI.presentationVariant: [{ sortOrder: [{by: 'SIUnitCnvrsnRateExponent', direction: #DESC}] }]
define view I_ChmlCmpstnUnitOfMeasureVH
as select from I_UnitOfMeasure
association [0..*] to I_UnitOfMeasureText as _Text on $projection.UnitOfMeasure = _Text.UnitOfMeasure
{
@ObjectModel.text.element: [ 'UnitOfMeasureName' ]
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key cast ( I_UnitOfMeasure.UnitOfMeasure as ehfnd_unit_code_meins preserving type ) as UnitOfMeasure,
--Description of Status
@UI.hidden: true
@Semantics.text: true
_Text[1: Language = $session.system_language ].UnitOfMeasureName,
SIUnitCnvrsnRateExponent
}
where
UnitOfMeasure = '%'
or UnitOfMeasure = 'PPM'
or UnitOfMeasure = 'PPB'
or UnitOfMeasure = 'PPT'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA