C_ContractPrdTypeVH

DDL: C_CONTRACTPRDTYPEVH SQL: CCONTVHPRDTYP Type: view CONSUMPTION

Value help for Product Type Group

C_ContractPrdTypeVH is a Consumption CDS View that provides data about "Value help for Product Type Group" in SAP S/4HANA. It reads from 1 data source (cmd_prdtype) and exposes 2 fields with key field ProductType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
cmd_prdtype product_type from

Associations (1)

CardinalityTargetAliasCondition
[0..1] cmd_prdtype_t _Text $projection.ProductType = _Text.prod_type_code

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCONTVHPRDTYP view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Value help for Product Type Group view
ObjectModel.representativeKey ProductType view
ObjectModel.resultSet.sizeCategory #XS view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
Search.searchable true view
ObjectModel.dataCategory #VALUE_HELP view
Consumption.ranked true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ProductType cmd_prdtype prod_type_code
ProductTypeName _Text description
@AbapCatalog.sqlViewName: 'CCONTVHPRDTYP'
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Value help for Product Type Group'
@ObjectModel.representativeKey: 'ProductType'
@ObjectModel.resultSet.sizeCategory: #XS
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #MASTER
@Search.searchable: true
@ObjectModel.dataCategory: #VALUE_HELP
@Consumption.ranked: true
//@ObjectModel.resultSet.sizeCategory: #XS 


//----------------------------------------------------------------------------------------------

// Remark:

// Only the following Product Types shall be displayed in the value help:

//   -> '1': Material

//   -> '2': Service

//----------------------------------------------------------------------------------------------


define view C_ContractPrdTypeVH

  as select from cmd_prdtype as product_type
 

  association [0..1] to cmd_prdtype_t as _Text on $projection.ProductType = _Text.prod_type_code
{
//searchbar//

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


//searchbar//




      @ObjectModel.text.element : 'ProductTypeName'
  key product_type.prod_type_code as ProductType,

      @Search.defaultSearchElement: true
      @Search.ranking: #LOW
      @Semantics.text: true
      _Text.description           as ProductTypeName

}
where
  (
       product_type.prod_type_code = '1'
    or product_type.prod_type_code = '2'
  )
  and  _Text.spras                 = $session.system_language       
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"CMD_PRDTYPE",
"CMD_PRDTYPE_T"
],
"ASSOCIATED":
[
"CMD_PRDTYPE_T"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/