C_ContractPrdTypeVH
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)
| Source | Alias | Join Type |
|---|---|---|
| cmd_prdtype | product_type | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | cmd_prdtype_t | _Text | $projection.ProductType = _Text.prod_type_code |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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