P_ReservationItem
Reservation Item
P_ReservationItem is a Consumption CDS View that provides data about "Reservation Item" in SAP S/4HANA. It reads from 1 data source (I_ReservationItem) and exposes 68 fields with key fields Reservation, ReservationItem, RecordType. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ReservationItem | I_ReservationItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_MRPAreaSubcontractor | _MRPAreaSubcontractor | _MRPAreaSubcontractor.MRPAreaPlant = $projection.Plant and _MRPAreaSubcontractor.MRPAreaSubcontractor = $projection.Supplier |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRESERVITM | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | Reservation Item | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | P_ProcmtDocSubcontrg | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | Reservation | ||
| KEY | ReservationItem | ReservationItem | ||
| KEY | RecordType | RecordType | ||
| Material | Material | |||
| MRPArea | _MRPAreaSubcontractor | MRPArea | ||
| RequirementType | RequirementType | |||
| MatlCompRequirementDate | MatlCompRequirementDate | |||
| Plant | Plant | |||
| ManufacturingOrderOperation | ManufacturingOrderOperation | |||
| GoodsMovementIsAllowed | GoodsMovementIsAllowed | |||
| StorageLocation | StorageLocation | |||
| Batch | Batch | |||
| DebitCreditCode | DebitCreditCode | |||
| BaseUnit | BaseUnit | |||
| GLAccount | GLAccount | |||
| GoodsMovementType | GoodsMovementType | |||
| EntryUnit | EntryUnit | |||
| QuantityIsFixed | QuantityIsFixed | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| IssuingOrReceivingPlant | IssuingOrReceivingPlant | |||
| IssuingOrReceivingStorageLoc | IssuingOrReceivingStorageLoc | |||
| PurchasingDocument | PurchasingDocument | |||
| PurchasingDocumentItem | PurchasingDocumentItem | |||
| ResvnItmRequiredQtyInBaseUnit | ResvnItmRequiredQtyInBaseUnit | |||
| ReservationItemIsFinallyIssued | ReservationItemIsFinallyIssued | |||
| ReservationItmIsMarkedForDeltn | ReservationItmIsMarkedForDeltn | |||
| ResvnItmRequiredQtyInEntryUnit | ResvnItmRequiredQtyInEntryUnit | |||
| ResvnItmWithdrawnQtyInBaseUnit | ResvnItmWithdrawnQtyInBaseUnit | |||
| ResvnItmWithdrawnAmtInCCCrcy | ResvnItmWithdrawnAmtInCCCrcy | |||
| Supplier | Supplier | |||
| InventorySpecialStockType | InventorySpecialStockType | |||
| MaterialComponentIsPhantomItem | MaterialComponentIsPhantomItem | |||
| IsBulkMaterialComponent | IsBulkMaterialComponent | |||
| MatlCompIsTextItem | MatlCompIsTextItem | |||
| PurchaseRequisition | PurchaseRequisition | |||
| PurchaseRequisitionItem | PurchaseRequisitionItem | |||
| ReferenceOrder | ReferenceOrder | |||
| MaterialGroup | MaterialGroup | |||
| ReservationQuantityRqmtTime | ReservationQuantityRqmtTime | |||
| MaterialComponentIsMissing | MaterialComponentIsMissing | |||
| PlannedOrder | PlannedOrder | |||
| ScheduleLine | ScheduleLine | |||
| ProductionSupplyArea | ProductionSupplyArea | |||
| IsComponentQuantityFixed | IsComponentQuantityFixed | |||
| IsMaterialProvision | IsMaterialProvision | |||
| GoodsRecipientName | GoodsRecipientName | |||
| UnloadingPointName | UnloadingPointName | |||
| ReservationItemText | ReservationItemText | |||
| MaterialCompIsProcuredDirectly | MaterialCompIsProcuredDirectly | |||
| IssgOrRcvgSpclStockInd | IssgOrRcvgSpclStockInd | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _Plant | _Plant | |||
| _IssuingOrReceivingPlant | _IssuingOrReceivingPlant | |||
| _Material | _Material | |||
| _StorageLocation | _StorageLocation | |||
| _IssuingOrReceivingStorageLoc | _IssuingOrReceivingStorageLoc | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _Currency | _Currency | |||
| _PurchasingDocument | _PurchasingDocument | |||
| _PurchasingDocumentItem | _PurchasingDocumentItem | |||
| _BaseUnit | _BaseUnit | |||
| _EntryUnit | _EntryUnit | |||
| _Supplier | _Supplier | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _Batch | _Batch | |||
| _MRPAreaSubcontractor | _MRPAreaSubcontractor | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _ReservationHeader | _ReservationHeader |
@AbapCatalog.sqlViewName: 'PRESERVITM'
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
--@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'Reservation Item'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@Metadata.ignorePropagatedAnnotations: true
@VDM.lifecycle.status:#DEPRECATED
@VDM.lifecycle.successor: 'P_ProcmtDocSubcontrg'
define view P_ReservationItem
as select from I_ReservationItem
association [0..*] to I_MRPAreaSubcontractor as _MRPAreaSubcontractor on _MRPAreaSubcontractor.MRPAreaPlant = $projection.Plant
and _MRPAreaSubcontractor.MRPAreaSubcontractor = $projection.Supplier
{
key Reservation,
key ReservationItem,
key RecordType,
@ObjectModel.foreignKey.association: '_Material'
Material,
_MRPAreaSubcontractor.MRPArea,
RequirementType,
MatlCompRequirementDate,
@ObjectModel.foreignKey.association: '_Plant'
Plant,
ManufacturingOrderOperation,
GoodsMovementIsAllowed,
@ObjectModel.foreignKey.association: '_StorageLocation'
StorageLocation,
@ObjectModel.foreignKey.association: '_Batch'
Batch,
@ObjectModel.foreignKey.association: '_DebitCreditCode'
DebitCreditCode,
@ObjectModel.foreignKey.association: '_BaseUnit'
@Semantics.unitOfMeasure:true
BaseUnit,
GLAccount,
@ObjectModel.foreignKey.association: '_GoodsMovementType'
GoodsMovementType,
@Semantics.unitOfMeasure: true
@ObjectModel.foreignKey.association: '_EntryUnit'
EntryUnit,
QuantityIsFixed,
@Semantics.currencyCode: true
@ObjectModel.foreignKey.association: '_Currency'
CompanyCodeCurrency,
@ObjectModel.foreignKey.association: '_IssuingOrReceivingPlant'
IssuingOrReceivingPlant,
@ObjectModel.foreignKey.association: '_IssuingOrReceivingStorageLoc'
IssuingOrReceivingStorageLoc,
@ObjectModel.foreignKey.association: '_PurchasingDocument'
PurchasingDocument,
@ObjectModel.foreignKey.association: '_PurchasingDocumentItem'
PurchasingDocumentItem,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
ResvnItmRequiredQtyInBaseUnit,
ReservationItemIsFinallyIssued,
ReservationItmIsMarkedForDeltn,
@Semantics.quantity.unitOfMeasure: 'EntryUnit'
ResvnItmRequiredQtyInEntryUnit,
ResvnItmWithdrawnQtyInBaseUnit,
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
ResvnItmWithdrawnAmtInCCCrcy,
@ObjectModel.foreignKey.association: '_Supplier'
Supplier,
@ObjectModel.foreignKey.association: '_InventorySpecialStockType'
InventorySpecialStockType,
MaterialComponentIsPhantomItem,
IsBulkMaterialComponent,
MatlCompIsTextItem,
PurchaseRequisition,
PurchaseRequisitionItem,
ReferenceOrder,
MaterialGroup,
ReservationQuantityRqmtTime,
MaterialComponentIsMissing,
PlannedOrder,
ScheduleLine,
ProductionSupplyArea,
IsComponentQuantityFixed,
IsMaterialProvision,
// PriceUnit,
GoodsRecipientName,
UnloadingPointName,
ReservationItemText,
MaterialCompIsProcuredDirectly,
IssgOrRcvgSpclStockInd,
_DebitCreditCode,
_Plant,
_IssuingOrReceivingPlant,
_Material,
_StorageLocation,
_IssuingOrReceivingStorageLoc,
_GoodsMovementType,
_Currency,
_PurchasingDocument,
_PurchasingDocumentItem,
_BaseUnit,
_EntryUnit,
_Supplier,
_InventorySpecialStockType,
_Batch,
_MRPAreaSubcontractor,
@Consumption.hidden: true
_SupplierCompanyByPlant,
_ReservationHeader
}
where
I_ReservationItem.Supplier <> ''
and I_ReservationItem.Material <> ''
and I_ReservationItem.Plant <> ''
and PurchaseRequisition = ''
and ResvnItmWithdrawnQtyInBaseUnit < ResvnItmRequiredQtyInEntryUnit
and ReservationItemIsFinallyIssued = ''
and ReservationItmIsMarkedForDeltn = ''
and MaterialComponentIsPhantomItem = ' '
and DebitCreditCode = 'H'
and IsBulkMaterialComponent = ' '
and MatlCompIsTextItem = ' '
and InventorySpecialStockType = ' '
and(
(
(
//Subcontracting PO and SA - adopted from I_SubcontractingComponent
RecordType = ' '
and RequirementType = 'BB'
and I_ReservationItem.PurchasingDocument <> ''
//Removing Blocked supplier
and _PurchasingDocumentItem.PurchasingDocumentDeletionCode = ''
and _PurchasingDocumentItem.IsCompletelyDelivered = ''
and _PurchasingDocument.PurchasingDocumentDeletionCode = ''
)
or(
// Subcontracting Stock Transfer Reservations
IssgOrRcvgSpclStockInd = 'O'
)
)
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MRPAREASUBCONTRACTOR",
"I_PURCHASINGDOCUMENT",
"I_PURCHASINGDOCUMENTITEM",
"I_RESERVATIONITEM"
],
"ASSOCIATED":
[
"I_BATCH",
"I_CURRENCY",
"I_DEBITCREDITCODE",
"I_GOODSMOVEMENTTYPE",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_MATERIAL",
"I_MRPAREASUBCONTRACTOR",
"I_PLANT",
"I_PURCHASINGDOCUMENT",
"I_PURCHASINGDOCUMENTITEM",
"I_RESERVATIONHEADER",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_RESERVATIONITEM"
],
"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