C_RO_MatlDocHeader
View for material document header
C_RO_MatlDocHeader is a Consumption CDS View that provides data about "View for material document header" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 13 fields with key fields MaterialDocumentYear, MaterialDocument. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaterialDocumentYear | _MaterialDocumentYear | $projection.MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear |
| [1..*] | I_RO_MatlDocItem | _MaterialDocumentItem | $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocumentItem.MaterialDocument |
| [0..1] | I_DeliveryDocument | _DeliveryDocument | $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMATDOCHEADER | view | |
| EndUserText.label | View for material document header | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | MaterialDocument | view | |
| Search.searchable | true | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentYear | MaterialDocumentYear | ||
| KEY | MaterialDocument | MaterialDocument | ||
| DocumentDate | DocumentDate | |||
| MaterialDocumentHeaderText | MaterialDocumentHeaderText | |||
| Plant | Plant | |||
| StorageLocation | StorageLocation | |||
| IssuingOrReceivingPlant | IssuingOrReceivingPlant | |||
| IssuingOrReceivingStorageLoc | IssuingOrReceivingStorageLoc | |||
| DeliveryDocument | DeliveryInMatlDocumentHeader | |||
| ReferenceDocument | ReferenceDocument | |||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _MaterialDocumentItem | _MaterialDocumentItem | |||
| _DeliveryDocument | _DeliveryDocument |
@AbapCatalog.sqlViewName: 'CMATDOCHEADER'
@EndUserText.label: 'View for material document header'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking:#REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
usageType: {
sizeCategory: #XXL,
serviceQuality: #B,
dataClass:#TRANSACTIONAL
},
representativeKey: 'MaterialDocument'
}
@Search.searchable: true
@VDM.private: false
@VDM.viewType: #CONSUMPTION
@Metadata: {
ignorePropagatedAnnotations: true,
allowExtensions: true
}
define view C_RO_MatlDocHeader
as select from I_MaterialDocumentRecord
association [1..1] to I_MaterialDocumentYear as _MaterialDocumentYear on $projection.MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear
association [1..*] to I_RO_MatlDocItem as _MaterialDocumentItem on $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear
and $projection.MaterialDocument = _MaterialDocumentItem.MaterialDocument
association [0..1] to I_DeliveryDocument as _DeliveryDocument on $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument
{
@ObjectModel.foreignKey.association: '_MaterialDocumentYear'
key MaterialDocumentYear,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.9
@Search.ranking: #HIGH
key MaterialDocument,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.9
@Search.ranking: #MEDIUM
@Semantics.businessDate.at: true
DocumentDate,
MaterialDocumentHeaderText,
Plant,
StorageLocation,
IssuingOrReceivingPlant,
IssuingOrReceivingStorageLoc,
DeliveryInMatlDocumentHeader as DeliveryDocument,
ReferenceDocument,
_MaterialDocumentYear,
@ObjectModel.association.type:#TO_COMPOSITION_CHILD
_MaterialDocumentItem,
_DeliveryDocument
}
where
MaterialDocumentRecordType = 'MDOC'
and IsMaterialDocumentHeader = 1
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALDOCUMENTRECORD"
],
"ASSOCIATED":
[
"I_DELIVERYDOCUMENT",
"I_MATERIALDOCUMENTYEAR",
"I_RO_MATLDOCITEM"
],
"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