R_MaterialDocumentTP
RAP MATDOC Header
R_MaterialDocumentTP is a Transactional CDS View that provides data about "RAP MATDOC Header" in SAP S/4HANA. It reads from 1 data source (P_MaterialDocumentHeader) and exposes 18 fields with key fields MaterialDocumentYear, MaterialDocument. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MaterialDocumentHeader | P_MaterialDocumentHeader | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | R_MaterialDocumentItemTP | _MaterialDocumentItem | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | RAP MATDOC Header | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | MaterialDocument | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentYear | MaterialDocumentYear | ||
| KEY | MaterialDocument | MaterialDocument | ||
| MaterialDocumentHeaderText | MaterialDocumentHeaderText | |||
| PostingDate | PostingDate | |||
| DocumentDate | DocumentDate | |||
| TransactionCode | TransactionCode | |||
| GoodsMovementCode | GoodsMovementCode | |||
| AccountingDocumentType | AccountingDocumentType | |||
| InventoryTransactionType | InventoryTransactionType | |||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| CtrlPostgForExtWhseMgmtSyst | CtrlPostgForExtWhseMgmtSyst | |||
| ManualPrintIsTriggered | ManualPrintIsTriggered | |||
| VersionForPrintingSlip | VersionForPrintingSlip | |||
| _MaterialDocumentItem | _MaterialDocumentItem | |||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _User | _User |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@EndUserText.label: 'RAP MATDOC Header'
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #NOT_REQUIRED,
privilegedAssociations: ['_User']
}
@ObjectModel: {
usageType: {
sizeCategory: #XXL,
serviceQuality: #B,
dataClass:#TRANSACTIONAL
},
sapObjectNodeType.name: 'MaterialDocument'
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type: #SAP_INTERNAL_API
}
define root view entity R_MaterialDocumentTP
as select from P_MaterialDocumentHeader
composition [1..*] of R_MaterialDocumentItemTP as _MaterialDocumentItem
{
key MaterialDocumentYear,
key MaterialDocument,
MaterialDocumentHeaderText,
PostingDate,
DocumentDate,
TransactionCode,
GoodsMovementCode,
AccountingDocumentType,
InventoryTransactionType,
CreatedByUser,
CreationDate,
CreationTime,
// ReferenceDocument,
CtrlPostgForExtWhseMgmtSyst,
ManualPrintIsTriggered,
VersionForPrintingSlip,
//associations
_MaterialDocumentItem,
_MaterialDocumentYear,
_User
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_MATERIALDOCUMENTHEADER"
],
"ASSOCIATED":
[
"I_MATERIALDOCUMENTYEAR",
"I_USER",
"R_MATERIALDOCUMENTITEMTP"
],
"BASE":
[
"P_MATERIALDOCUMENTHEADER"
],
"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