I_PMTimeUnitVH
Units of Time
I_PMTimeUnitVH is a Basic CDS View that provides data about "Units of Time" in SAP S/4HANA. It reads from 2 data sources (I_UnitOfMeasure, t006d) and exposes 3 fields with key field UnitOfMeasure.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_UnitOfMeasure | I_UnitOfMeasure | left_outer |
| t006d | t006d | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPMTIMEUNITVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Units of Time | view | |
| ObjectModel.representativeKey | UnitOfMeasure | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.resultSet.sizeCategory | #XS | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UnitOfMeasure | I_UnitOfMeasure | UnitOfMeasure | |
| UnitOfMeasureNumberOfDecimals | I_UnitOfMeasure | UnitOfMeasureNumberOfDecimals | ||
| _Text | I_UnitOfMeasure | _Text |
@AbapCatalog.sqlViewName: 'IPMTIMEUNITVH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Units of Time'
@ObjectModel.representativeKey: 'UnitOfMeasure'
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #META
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.resultSet.sizeCategory: #XS
define view I_PMTimeUnitVH
as select from t006d
left outer join I_UnitOfMeasure on I_UnitOfMeasure.UnitOfMeasureDimension = t006d.dimid
{
@Semantics.unitOfMeasure: true
@ObjectModel.text.association: '_Text'
key I_UnitOfMeasure.UnitOfMeasure,
@UI.hidden: true
unit_conversion(
quantity => t006d.timex,
source_unit => I_UnitOfMeasure.UnitOfMeasure,
target_unit => cast( 'S' as abap.unit(3) ),
error_handling => 'SET_TO_NULL'
) as TimeUnitDurationInSeconds,
@UI.hidden: true
case when I_UnitOfMeasure.UnitOfMeasure = '10 '
or I_UnitOfMeasure.UnitOfMeasure = 'TST'
or I_UnitOfMeasure.UnitOfMeasure = 'STD'
or I_UnitOfMeasure.UnitOfMeasure_E = '' then ''
else 'X' end as UnitOfMeasureIsPreferred,
@UI.hidden: true
I_UnitOfMeasure.UnitOfMeasureNumberOfDecimals,
I_UnitOfMeasure._Text
}
where
t006d.timex = 1
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_UNITOFMEASURE",
"T006D"
],
"ASSOCIATED":
[
"I_UNITOFMEASURETEXT"
],
"BASE":
[
"I_UNITOFMEASURE"
],
"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