C_Weightuom
Unit of measure for weight
C_Weightuom is a Consumption CDS View that provides data about "Unit of measure for weight" in SAP S/4HANA. It reads from 1 data source (I_UnitOfMeasure) and exposes 4 fields with key field WeightUnit. 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.WeightUnit = _Text.UnitOfMeasure |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CWEIGHTUOM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Unit of measure for weight | view | |
| ObjectModel.representativeKey | WeightUnit | view | |
| Search.searchable | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WeightUnit | |||
| UnitOfMeasure_E | I_UnitOfMeasure | UnitOfMeasure_E | ||
| UnitOfMeasureLongName | ||||
| _Text | _Text |
@AbapCatalog:{
sqlViewName: 'CWEIGHTUOM',
compiler.compareFilter: true,
preserveKey: true
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Unit of measure for weight'
@ObjectModel.representativeKey : 'WeightUnit'
@Search.searchable: true
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory : #S
@ObjectModel.usageType.dataClass: #CUSTOMIZING
define view C_Weightuom
as select from I_UnitOfMeasure
association [0..*] to I_UnitOfMeasureText as _Text on $projection.WeightUnit = _Text.UnitOfMeasure
{
@Semantics.unitOfMeasure: true
@ObjectModel.text.association: '_Text'
@Search:{ //required. Else search set as false as other searchable fields are hidden
defaultSearchElement: true,
fuzzinessThreshold: 0.6
}
key cast ( I_UnitOfMeasure.UnitOfMeasure as gewei preserving type ) as WeightUnit,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
@Consumption.hidden: true
I_UnitOfMeasure.UnitOfMeasure_E,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
@Consumption.hidden: true
_Text[1: Language = $session.system_language ].UnitOfMeasureLongName as UnitOfMeasureLongName,
_Text
}
where
UnitOfMeasureDimension = 'MASS'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_UNITOFMEASURE",
"I_UNITOFMEASURETEXT"
],
"ASSOCIATED":
[
"I_UNITOFMEASURETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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