C_MatlPriceDocTypeVH

DDL: C_MATLPRICEDOCTYPEVH SQL: CMATLDOCTYPEVH Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Material Price Document Type VH

C_MatlPriceDocTypeVH is a Consumption CDS View that provides data about "Material Price Document Type VH" in SAP S/4HANA. It reads from 1 data source (I_MatlPriceVarcDocCategoryText) and exposes 4 fields with key fields Name, Language, PurchasingDocumentType. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
I_MatlPriceVarcDocCategoryText I_MatlPriceVarcDocCategoryText from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CMATLDOCTYPEVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material Price Document Type VH view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.resultSet.sizeCategory #XS view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Name Name
KEY Language Language
KEY PurchasingDocumentType
PurchasingDocumentTypeName
@AbapCatalog.sqlViewName: 'CMATLDOCTYPEVH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Material Price Document Type VH'
@VDM.viewType: #CONSUMPTION
//@Search.searchable: true

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.resultSet.sizeCategory: #XS

define view C_MatlPriceDocTypeVH

  as select from I_MatlPriceVarcDocCategoryText

{
       @UI.hidden: true
  key  Name,

       @UI.hidden: true
  key  Language,

       @ObjectModel.text: {
         element: [ 'PurchasingDocumentTypeName' ]
       }
  key  cast( DocumentCategory as mm_a_doctype )     as PurchasingDocumentType,

       //@Search: { defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8 }

       @UI.lineItem.position: 10
       cast( PurchasingDocumentTypeName as mm_a_doctype_name ) as PurchasingDocumentTypeName
}

where
      Language = $session.system_language
  and Name     = 'DOCUMENTTYPE'