I_ChmlCmpstnUnitOfMeasureVH

DDL: I_CHMLCMPSTNUNITOFMEASUREVH Type: view COMPOSITE

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)

SourceAliasJoin Type
I_UnitOfMeasure I_UnitOfMeasure from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_UnitOfMeasureText _Text $projection.UnitOfMeasure = _Text.UnitOfMeasure

Annotations (14)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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'