I_RESERVATIONITEM

CDS View

Reservation Item

I_RESERVATIONITEM is a CDS View in S/4HANA. Reservation Item. It contains 113 fields. 27 CDS views read from this table.

CDS Views using this table (27)

ViewTypeJoinVDMDescription
C_SSPResvnCnsldtdStatusForBPF view from CONSUMPTION SSP PR : Consolidated Reservation Status
C_SubcontrgPurchasingDocVH view from CONSUMPTION Purchasing Document Value Help
I_AssldReltdCompInstceSrlNmbr view inner COMPOSITE Assembled Related Component Instance and/or Serial Number
I_BulkShipmentDocument view left_outer COMPOSITE Bulk Shipment Document
I_DepdntResvnQuickView view from COMPOSITE Dependent Requirement and Order Reservation Details
I_OrderComponent view from BASIC Order Component
I_OrderComponentBasic view_entity from BASIC Order Component Basic
I_ReservationDocumentItem view from BASIC Reservation Document Item
P_FcstDmndWithdrawals view from COMPOSITE
P_MaintOrdDepdntRqmtStatus view from COMPOSITE
P_MaintOrdNmbrOfReservations view from CONSUMPTION
P_MfgOrderCompInstceAssyQty view inner COMPOSITE
P_MfgOrderCompProductPlant view from BASIC
P_MfgOrderOriglComponentAssy view inner COMPOSITE
P_OpActyBackflushByOrigComp view inner COMPOSITE
P_OpActyInstceWithMissingComp view inner COMPOSITE
P_OpActyNrOfMandComponents view inner CONSUMPTION
P_PendingQuantity view from COMPOSITE
P_ProcmtDocSubcontrg view from COMPOSITE
P_ProcmtDocSubcontrg view union_all COMPOSITE
P_ReservationItem view from CONSUMPTION Reservation Item
P_ResvnDocClosedItem view from COMPOSITE
P_ResvnDocHdrItemTotals view inner COMPOSITE
P_ResvnDocItemState view inner COMPOSITE
P_SFIAssembledMaterial view inner COMPOSITE
P_SFIAtOpActyBckflshByOrigComp view inner COMPOSITE
P_ShopFloorItemComponent view inner CONSUMPTION

Fields (113)

KeyField CDS FieldsUsed in Views
KEY Material Material,MaterialComponent 7
KEY Plant Plant 8
KEY RecordType RecordType 4
KEY Reservation Reservation 6
KEY ReservationItem ReservationItem 6
KEY rsnum Reservation 1
KEY ScheduleLine ScheduleLine 2
KEY Supplier Subcontractor 3
_BaseUnit _MaterialBaseUnit 1
_DebitCreditCode _DebitCreditCode 1
_GoodsMovementType _GoodsMovementType 1
_RecipientLocationCode _RecipientLocationCode 1
_ServiceDocumentItem _ServiceDocumentItem 1
_WBSElementBasicData _WBSElementBasicData 1
ablad UnloadingPointName 1
aennr ChangeNumber 1
afpos OrderItem 1
alpos MaterialCompIsAlternativeItem 1
aufnr OrderID 1
aufst OrderLevelValue 1
aufwg OrderPathValue 1
ausch ComponentScrapInPercent 1
avoau OperationScrapInPercent 1
BaseUnit BaseUnit,MaterialBaseUnit 6
Batch Batch 1
baugr Assembly 1
baust AssemblyOrderLevelValue 1
bauwg AssemblyOrderPathValue 1
bdmng RequiredQuantity 1
berkz MaterialStaging 1
bom_versn BillOfMaterialVersion 1
bwart GoodsMovementType 1
charg Batch 1
chobj BatchClassification 1
clakz MaterialComponentIsClassified 1
ConfdQtyForATPInBaseUoM CommittedQuantity 1
cuobj ProductConfiguration 1
DebitCreditCode DebitCreditCode 2
enwrt WithdrawnQuantityAmount 1
esmng MaterialComponentUsageQuantity 1
ewahr UsageProbabilityPercent 1
fipex CommitmentItem 1
fkber FunctionalArea 1
fmeng QuantityIsFixed 1
fsh_critical_comp CriticalComponentType 1
fsh_critical_level CriticalComponentLevel 1
geber Fund 1
GoodsMovementIsAllowed GoodsMovementIsAllowed 1
GoodsMovementType GoodsMovementType 2
GoodsRecipientName GoodsRecipientName 1
gsber BusinessArea 1
inpos MaterialCompIsIntraMaterial 1
IssuingOrReceivingPlant IssuingOrReceivingPlant 1
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc 1
kblnr EarmarkedFundsDocument 1
kblpos EarmarkedFundsDocumentItem 1
kfpos MatlCompIsConfigurable 1
kzaus MatlCompDiscontinuationType 1
kzear ReservationIsFinallyIssued 1
kzkup MaterialIsCoProduct 1
lgnum Warehouse 1
lgpla StorageBin 1
lgtyp StorageType 1
lifnr Supplier 1
MaterialCompIsProcuredDirectly MaterialCompIsProcuredDirectly 1
matkl MaterialGroup 1
MatlCompIsMarkedForBackflush MatlCompIsMarkedForBackflush 1
MatlCompRequirementDate RequirementDate 3
matnr Material 1
netau IsNetScrap 1
objnr ObjectInternalID 1
PlannedOrder PlannedOrder 1
plnfl Sequence 1
potx1 BOMItemDescription,MaterialComponentText 1
potx2 BOMItemText2,MaterialComponentSecondText 1
RecipientLocationCode RecipientLocationCode 1
ReferenceOrder ManufacturingOrder 2
RequirementType RequirementType 2
ReservationItemIsFinallyIssued ReservationItemIsFinallyIssued 1
ReservationItemText ReservationItemText 1
ResvnItmSrvcDocAsAcctAsgt ResvnItmSrvcDocAsAcctAsgt 1
ResvnItmSrvcDocItmAsAcctAsgt ResvnItmSrvcDocItmAsAcctAsgt 1
ResvnItmSrvcDocTypeAsAcctAsgt ResvnItmSrvcDocTypeAsAcctAsgt 1
ResvnItmWithdrawnQtyInBaseUnit WithdrawnQuantity 1
rform VariableSizeCompFormulaKey 1
rgekz MatlCompIsMarkedForBackflush 1
rohps MaterialCompIsVariableSized 1
roms1 VariableSizeDimension1 1
roms2 VariableSizeDimension2 1
roms3 VariableSizeDimension3 1
saknr GLAccount 1
sanka MaterialCompCostingRelevancy 1
schgt IsBulkMaterialComponent 1
ServiceDocument ServiceDocument 1
ServiceDocumentItem ServiceDocumentItem 1
ServiceObjectType ServiceObjectType 1
sgt_rcat RequirementSegment 1
sgt_scat StockSegment 1
sortf MaterialComponentSortText 1
splkz BatchSplitType 1
stlal BillOfMaterialVariant 1
StorageLocation StorageLocation 1
stpoz BOMItemInternalChangeCount 1
stvkn InheritedBOMItemNode 1
techs EffectivityParameterVariant 1
txtps MatlCompIsTextItem 1
umren MaterialQtyToBaseQtyDnmntr 1
umrez MaterialQtyToBaseQtyNmrtr 1
UnloadingPointName UnloadingPointName 1
waers Currency 1
werks Plant 1
xfehl MaterialComponentIsMissing 1
xwaok GoodsMovementIsAllowed 1
@AbapCatalog.sqlViewName: 'IRESERVATIONIT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Reservation Item'

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC

define view I_ReservationItem
  as select from resb

  association [0..1] to I_DebitCreditCode           as _DebitCreditCode              on  $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
  association [0..1] to I_Plant                     as _IssuingOrReceivingPlant      on  $projection.IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant
  association [0..1] to I_Plant                     as _Plant                        on  $projection.Plant = _Plant.Plant
  association [0..1] to I_StorageLocation           as _StorageLocation              on  $projection.StorageLocation = _StorageLocation.StorageLocation
                                                                                     and $projection.Plant           = _StorageLocation.Plant
  association [0..1] to I_StorageLocation           as _IssuingOrReceivingStorageLoc on  $projection.IssuingOrReceivingStorageLoc = _IssuingOrReceivingStorageLoc.StorageLocation
                                                                                     and $projection.IssuingOrReceivingPlant      = _IssuingOrReceivingStorageLoc.Plant
  association [0..1] to I_Material                  as _Material                     on  $projection.Material = _Material.Material
  association [0..1] to I_GoodsMovementType         as _GoodsMovementType            on  $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
  association [0..1] to I_Currency                  as _Currency                     on  $projection.CompanyCodeCurrency = _Currency.Currency
  association [0..1] to I_PurchasingDocument        as _PurchasingDocument           on  $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
  association [0..1] to I_PurchasingDocumentItem    as _PurchasingDocumentItem       on  $projection.PurchasingDocument     = _PurchasingDocumentItem.PurchasingDocument
                                                                                     and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem
  association [0..1] to I_UnitOfMeasure             as _BaseUnit                     on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [0..1] to I_UnitOfMeasure             as _EntryUnit                    on  $projection.EntryUnit = _EntryUnit.UnitOfMeasure

  //RESB is a shared table and not every reservation item has a reservation header, hence 0..1 cardinality

  association [0..1] to I_ReservationHeader         as _ReservationHeader            on  $projection.Reservation = _ReservationHeader.Reservation

  association [0..1] to I_Supplier                  as _Supplier                     on  $projection.Supplier = _Supplier.Supplier
  association [1..1] to I_SupplierCompanyByPlant    as _SupplierCompanyByPlant       on  $projection.Supplier = _SupplierCompanyByPlant.Supplier
                                                                                     and $projection.Plant    = _SupplierCompanyByPlant.Plant
  association [0..1] to I_InventorySpecialStockType as _InventorySpecialStockType    on  $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
  association [0..1] to I_WBSElementBasicData       as _WBSElementBasicData          on  $projection.SpecialStockIdfgWBSElement = _WBSElementBasicData.WBSElementInternalID
  association [0..1] to I_Batch                     as _Batch                        on  $projection.Material = _Batch.Material
                                                                                     and $projection.Plant    = _Batch.Plant
                                                                                     and $projection.Batch    = _Batch.Batch
  association [0..1] to I_RecipientLocationCode    as _RecipientLocationCode         on  $projection.RecipientLocationCode = _RecipientLocationCode.RecipientLocationCode
  association [0..1] to I_ServiceDocumentItem       as _ServiceDocumentItem          on  $projection.ServiceObjectType   = _ServiceDocumentItem.ServiceObjectType
                                                                                     and $projection.ServiceDocument     = _ServiceDocumentItem.ServiceDocument
                                                                                     and $projection.ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem

{
  key  rsnum                   as Reservation,
  key  rspos                   as ReservationItem,
  key  rsart                   as RecordType,

       @ObjectModel.foreignKey.association: '_Material'
       matnr                   as Material,

       bdart                   as RequirementType,
       rssta                   as ReservationItemCreationCode,

       bdter                   as MatlCompRequirementDate,

       @ObjectModel.foreignKey.association: '_Plant'
       werks                   as Plant,

       vornr                   as ManufacturingOrderOperation,

       xwaok                   as GoodsMovementIsAllowed,

       @ObjectModel.foreignKey.association: '_StorageLocation'
       lgort                   as StorageLocation,

       @ObjectModel.foreignKey.association: '_Batch'
       charg                   as Batch,

       @ObjectModel.foreignKey.association: '_DebitCreditCode'
       shkzg                   as DebitCreditCode,

       @ObjectModel.foreignKey.association: '_BaseUnit'
       @Semantics.unitOfMeasure:true
       meins                   as BaseUnit,

       saknr                   as GLAccount,

       @Semantics.booleanIndicator: true
       ktoma                   as ResvnAccountIsEnteredManually,

       @ObjectModel.foreignKey.association: '_GoodsMovementType'
       bwart                   as GoodsMovementType,

       rgekz                   as MatlCompIsMarkedForBackflush,

       @Semantics.unitOfMeasure: true
       @ObjectModel.foreignKey.association: '_EntryUnit'
       erfme                   as EntryUnit,

       fmeng                   as QuantityIsFixed,

       @Semantics.currencyCode: true
       @ObjectModel.foreignKey.association: '_Currency'
       waers                   as CompanyCodeCurrency,

       @ObjectModel.foreignKey.association: '_IssuingOrReceivingPlant'
       umwrk                   as IssuingOrReceivingPlant,

       @ObjectModel.foreignKey.association: '_IssuingOrReceivingStorageLoc'
       umlgo                   as IssuingOrReceivingStorageLoc,

       @ObjectModel.foreignKey.association: '_PurchasingDocument'
       ebeln                   as PurchasingDocument,

       @ObjectModel.foreignKey.association: '_PurchasingDocumentItem'
       ebelp                   as PurchasingDocumentItem,

       @ObjectModel.foreignKey.association: '_BaseUnit'
       @Semantics.quantity.unitOfMeasure: 'BaseUnit'
       bdmng                   as ResvnItmRequiredQtyInBaseUnit,

       kzear                   as ReservationItemIsFinallyIssued,

       xloek                   as ReservationItmIsMarkedForDeltn,

       @Semantics.quantity.unitOfMeasure: 'EntryUnit'
       erfmg                   as ResvnItmRequiredQtyInEntryUnit,
       @ObjectModel.foreignKey.association: '_BaseUnit'
       enmng                   as ResvnItmWithdrawnQtyInBaseUnit,
       @ObjectModel.foreignKey.association: '_BaseUnit'
       vmeng                   as ConfdQtyForATPInBaseUoM,
       @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
       enwrt                   as ResvnItmWithdrawnAmtInCCCrcy,

       @ObjectModel.foreignKey.association: '_Supplier'
       lifnr                   as Supplier,

       @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
       sobkz                   as InventorySpecialStockType,
       
       cast ( pspel as ps_s4_pspnr preserving type ) as SpecialStockIdfgWBSElement,

       dumps                   as MaterialComponentIsPhantomItem,

       schgt                   as IsBulkMaterialComponent,

       txtps                   as MatlCompIsTextItem,

       banfn                   as PurchaseRequisition,

       bnfpo                   as PurchaseRequisitionItem,

       aufnr                   as ReferenceOrder,

       -- for compatibility and performance reason - would be  empty in RAP object otherwise
       matkl                   as MaterialGroup,

       bdztp                   as ReservationQuantityRqmtTime,

       xfehl                   as MaterialComponentIsMissing,

       plnum                   as PlannedOrder,

       ebele                   as ScheduleLine,

       prvbe                   as ProductionSupplyArea,

       fmeng                   as IsComponentQuantityFixed,

       beikz                   as IsMaterialProvision,

       wempf                   as GoodsRecipientName,
       ablad                   as UnloadingPointName,
       sgtxt                   as ReservationItemText,

       dbskz                   as MaterialCompIsProcuredDirectly,

       umsok                   as IssgOrRcvgSpclStockInd,
       @ObjectModel.foreignKey.association: '_RecipientLocationCode'  
       recipient_location_code as RecipientLocationCode,

       header_bus_type         as ServiceObjectType,
       crm_header_id           as ServiceDocument,
       crms4_item_id           as ServiceDocumentItem,
       service_doc_type        as ResvnItmSrvcDocTypeAsAcctAsgt,
       service_doc_id          as ResvnItmSrvcDocAsAcctAsgt,
       service_doc_item_id     as ResvnItmSrvcDocItmAsAcctAsgt,



       _DebitCreditCode,
       _Plant,
       _IssuingOrReceivingPlant,
       _Material,
       _StorageLocation,
       _IssuingOrReceivingStorageLoc,
       _GoodsMovementType,
       _Currency,
       _PurchasingDocument,
       _PurchasingDocumentItem,
       _BaseUnit,
       _EntryUnit,
       _Supplier,
       _InventorySpecialStockType,
       _WBSElementBasicData,
       _Batch,

       @Consumption.hidden: true
       _SupplierCompanyByPlant,

       _ReservationHeader,
       _RecipientLocationCode,
       
       _ServiceDocumentItem
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"RESB"
],
"ASSOCIATED":
[
"I_BATCH",
"I_CURRENCY",
"I_DEBITCREDITCODE",
"I_GOODSMOVEMENTTYPE",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_MATERIAL",
"I_PLANT",
"I_PURCHASINGDOCUMENT",
"I_PURCHASINGDOCUMENTITEM",
"I_RECIPIENTLOCATIONCODE",
"I_RESERVATIONHEADER",
"I_SERVICEDOCUMENTITEM",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT",
"I_UNITOFMEASURE",
"I_WBSELEMENTBASICDATA"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/