I_ResvnMatlDocumentDraftState
Reservatio Material Document State
I_ResvnMatlDocumentDraftState is a Composite CDS View that provides data about "Reservatio Material Document State" in SAP S/4HANA. It reads from 2 data sources (I_DraftAdministrativeData, R_MaterialDocumentItemDraft) and exposes 2 fields with key fields Reservation, ReservationItem. Part of development package MM_IM_RAP_RES.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_DraftAdministrativeData | _draftadmindata | inner |
| R_MaterialDocumentItemDraft | _MaterialDocumentItemDraft | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRESMATLDOCSTATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | R_MaterialDocumentItemDraft | Reservation | |
| KEY | ReservationItem | R_MaterialDocumentItemDraft | ReservationItem |
@AbapCatalog.sqlViewName: 'IRESMATLDOCSTATE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
usageType: {
serviceQuality: #D,
sizeCategory: #L,
dataClass: #TRANSACTIONAL }
}
@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view I_ResvnMatlDocumentDraftState
as select from R_MaterialDocumentItemDraft as _MaterialDocumentItemDraft
inner join I_DraftAdministrativeData as _draftadmindata on _draftadmindata.DraftEntityType = 'R_MATERIALDOCUMENTTP'
and _draftadmindata.DraftUUID = _MaterialDocumentItemDraft.DraftAdministrativeDataUUID
{
key _MaterialDocumentItemDraft.Reservation,
key _MaterialDocumentItemDraft.ReservationItem,
cast ( case when _MaterialDocumentItemDraft.ParentDraftUUID is not null
then 'X'
else ''
end as boole_d ) as ResvnDocItmHasMatlDocDrft
}
where
_MaterialDocumentItemDraft.DraftEntityOperationCode = 'C'
and _draftadmindata.CreatedByUser = $session.user
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