P_MatlDocItemCmptblty_F4674
Material Document Item with negative qty for cancellations
P_MatlDocItemCmptblty_F4674 is a Composite CDS View that provides data about "Material Document Item with negative qty for cancellations" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 5 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem. Part of development package RFM_STORE_MY_STORE_OVERVIEW.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATDOCITMCF4674 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentYear | MaterialDocumentYear | ||
| KEY | MaterialDocument | MaterialDocument | ||
| KEY | MaterialDocumentItem | MaterialDocumentItem | ||
| Material | Material | |||
| PostedQuantity | MatlStkChangeQtyInBaseUnit |
@AbapCatalog.sqlViewName: 'PMATDOCITMCF4674'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_MatlDocItemCmptblty_F4674
as select from I_MaterialDocumentRecord
{
key MaterialDocumentYear,
key MaterialDocument,
key MaterialDocumentItem,
Material,
// DebitCreditCode,
// QuantityInBaseUnit,
// MaterialBaseUnit,
// QuantityInEntryUnit,
// EntryUnit,
MatlStkChangeQtyInBaseUnit as PostedQuantity
// case when DebitCreditCode = 'H' then (-1 * QuantityInBaseUnit)
// else QuantityInBaseUnit end as PostedQuantityInBaseUnit
}
where
MaterialDocumentRecordType = 'MDOC'
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