SEPMRA_I_QuantityUnit

DDL: SEPMRA_I_QUANTITYUNIT Type: view

Quantity Unit

SEPMRA_I_QuantityUnit is a CDS View that provides data about "Quantity Unit" in SAP S/4HANA. It reads from 1 data source (t006) and exposes 3 fields with key field UnitOfMeasure. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
t006 UnitOfMeasure from

Associations (1)

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

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName SEPMRAIQUANU view
AbapCatalog.compiler.compareFilter true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey UnitOfMeasure view
ObjectModel.resultSet.sizeCategory #XS view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Search.searchable true view
AccessControl.authorizationCheck #NOT_REQUIRED view
UI.headerInfo.typeName Quantity Unit view
UI.headerInfo.typeNamePlural Quantity Units view
UI.headerInfo.typeImageUrl sap-icon: title: { value: view
EndUserText.label Quantity Unit view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY UnitOfMeasure
UnitOfMeasureISOCode t006 isocode
_Text _Text
@AbapCatalog: {
  sqlViewName: 'SEPMRAIQUANU',
  compiler.compareFilter: true
}

@ClientHandling: {
   type:      #CLIENT_DEPENDENT,
   algorithm: #SESSION_VARIABLE
}

@ObjectModel: {
  representativeKey: 'UnitOfMeasure',
  resultSet: {
    sizeCategory:   #XS       -- display as drop-down list 
  },
  usageType: {
    serviceQuality: #A,
    sizeCategory:   #S,
    dataClass:      #CUSTOMIZING
  }
}

@Search.searchable: true


@AccessControl.authorizationCheck: #NOT_REQUIRED  -- no data access restriction needed: this is a simple code list


@UI.headerInfo: {
  typeName:       'Quantity Unit',
  typeNamePlural: 'Quantity Units',
  typeImageUrl:   'sap-icon://compare',

  title:          { value: 'UnitOfMeasure' }
}

@EndUserText.label: 'Quantity Unit'
define view SEPMRA_I_QuantityUnit
  as select from t006 as UnitOfMeasure

  association [0..*] to SEPMRA_I_UnitOfMeasureText as _Text on $projection.UnitOfMeasure = _Text.UnitOfMeasure

{
      @Search:      { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #HIGH }
      @ObjectModel: { text.association: '_Text' }
      @UI.lineItem: [
        { position: 1, importance: #HIGH, type: #STANDARD }
      ]
      @UI.identification: [
        { position: 1, importance: #HIGH, type: #STANDARD }
      ]
  key cast( UnitOfMeasure.msehi as sepmra_quantityunit preserving type ) as UnitOfMeasure,

      @Consumption: {
        filter.hidden: true
      }
      UnitOfMeasure.isocode                                              as UnitOfMeasureISOCode,

      /* associations */
      _Text
}
where
      UnitOfMeasure.dimid      =  'AAAADL'
  and UnitOfMeasure.isocode    <> ''
  and UnitOfMeasure.temp_unit  =  ''
  and UnitOfMeasure.press_unit =  ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"T006"
],
"ASSOCIATED":
[
"SEPMRA_I_UNITOFMEASURETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/