R_ReservationDocumentItemDraft

DDL: R_RESERVATIONDOCUMENTITEMDRAFT Type: view_entity BASIC

Reservation Item - Draft

R_ReservationDocumentItemDraft is a Basic CDS View that provides data about "Reservation Item - Draft" in SAP S/4HANA. It reads from 1 data source (imrs_d_doc_item) and exposes 52 fields with key fields Reservation, ReservationItem, RecordType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
imrs_d_doc_item item from

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_ReservationDocumentItemDraft _Extension $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.RecordType = _Extension.RecordType

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Reservation Item - Draft view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix RES view
AbapCatalog.extensibility.quota.maximumFields 404 view
AbapCatalog.extensibility.quota.maximumBytes 24080 view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY Reservation reservation Reservation
KEY ReservationItem reservationitem Reservation Item
KEY RecordType recordtype Reservation Record Type
Plant plant Valuation Area
StorageLocation storagelocation StorageLocation
Product product Product Sold
Batch batch Lot No.
ValuationType valuationtype Valuation Type
InventorySpecialStockType inventoryspecialstocktype Special Stock Type
SpecialStockIdfgWBSElement specialstockidfgwbselement WBS Internal ID
GoodsMovementType imrs_d_doc_item goodsmovementtype Movement Type
RequirementType requirementtype RequirementType
ReservationItemCreationCode reservationitemcreationcode Reserv. status
MatlCompRequirementDate matlcomprequirementdate Reqmts date
ManufacturingOrderOperation Activity
GoodsMovementIsAllowed goodsmovementisallowed Mvt Allowed
DebitCreditCode debitcreditcode Single-Character Flag
BaseUnit baseunit Unit of Measure
GLAccount glaccount General Ledger
EntryUnit entryunit Unit of Entry
QuantityIsFixed quantityisfixed Qty. is fixed
CompanyCodeCurrency companycodecurrency Local Currency
IssuingOrReceivingPlant issuingorreceivingplant Transfer Plant
IssuingOrReceivingStorageLoc issuingorreceivingstorageloc Receiving SLoc.
PurchasingDocument purchasingdocument Purchasing Document
PurchasingDocumentItem purchasingdocumentitem Purchasing Doc. Item
ResvnItmRequiredQtyInBaseUnit resvnitmrequiredqtyinbaseunit Requirement qty
ConfdQtyForATPInBaseUoM confdqtyforatpinbaseuom Qty.f.avail.chk
ReservationItemIsFinallyIssued reservationitemisfinallyissued Final Issue
ReservationItmIsMarkedForDeltn reservationitmismarkedfordeltn Deleted
ResvnItmRequiredQtyInEntryUnit resvnitmrequiredqtyinentryunit Quantity in UnE
ResvnItmWithdrawnQtyInBaseUnit resvnitmwithdrawnqtyinbaseunit Withdrawal Qty
ResvnItmWithdrawnAmtInCCCrcy resvnitmwithdrawnamtincccrcy Withdr. Value
Supplier supplier Supplier
MaterialGroup materialgroup Product Group
GoodsRecipientName goodsrecipientname Recipient Name
UnloadingPointName unloadingpointname Unloading Point Name
ReservationItemText reservationitemtext Text
ResvnAccountIsEnteredManually resvnaccountisenteredmanually Acct manually
ServiceObjectType serviceobjecttype Object Type
ServiceDocument servicedocument Transaction ID
ServiceDocumentItem servicedocumentitem Service Document
ResvnItmSrvcDocTypeAsAcctAsgt resvnitmsrvcdoctypeasacctasgt Service Doc. Type
ResvnItmSrvcDocAsAcctAsgt resvnitmsrvcdocasacctasgt Service Document
ResvnItmSrvcDocItmAsAcctAsgt resvnitmsrvcdocitmasacctasgt Service Doc. Item
RecipientLocationCode recipientlocationcode Recipient Loc.
DraftEntityCreationDateTime draftentitycreationdatetime Draft Created On
DraftEntityLastChangeDateTime draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID draftadministrativedatauuid UUID
DraftEntityOperationCode draftentityoperationcode Draft - Operation Code
HasActiveEntity hasactiveentity TRUE
DraftFieldChanges draftfieldchanges Field Changes

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view R_ReservationDocumentItemDraft.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW R_ReservationDocumentItemDraft AS
SELECT
  Reservation,
  ReservationItem,
  RecordType,
  Plant,
  StorageLocation,
  Product,
  Batch,
  ValuationType,
  InventorySpecialStockType,
  SpecialStockIdfgWBSElement,
  item.goodsmovementtype AS GoodsMovementType,
  RequirementType,
  ReservationItemCreationCode,
  MatlCompRequirementDate,
  cast( manufacturingorderoperation as vdm_vornr preserving type) AS ManufacturingOrderOperation,
  GoodsMovementIsAllowed,
  DebitCreditCode,
  BaseUnit,
  GLAccount,
  EntryUnit,
  QuantityIsFixed,
  CompanyCodeCurrency,
  IssuingOrReceivingPlant,
  IssuingOrReceivingStorageLoc,
  PurchasingDocument,
  PurchasingDocumentItem,
  ResvnItmRequiredQtyInBaseUnit,
  ConfdQtyForATPInBaseUoM,
  ReservationItemIsFinallyIssued,
  ReservationItmIsMarkedForDeltn,
  ResvnItmRequiredQtyInEntryUnit,
  ResvnItmWithdrawnQtyInBaseUnit,
  ResvnItmWithdrawnAmtInCCCrcy,
  Supplier,
  MaterialGroup,
  GoodsRecipientName,
  UnloadingPointName,
  ReservationItemText,
  ResvnAccountIsEnteredManually,
  ServiceObjectType,
  ServiceDocument,
  ServiceDocumentItem,
  ResvnItmSrvcDocTypeAsAcctAsgt,
  ResvnItmSrvcDocAsAcctAsgt,
  ResvnItmSrvcDocItmAsAcctAsgt,
  RecipientLocationCode,
  DraftEntityCreationDateTime,
  DraftEntityLastChangeDateTime,
  DraftAdministrativeDataUUID,
  DraftEntityOperationCode,
  HasActiveEntity,
  DraftFieldChanges
FROM imrs_d_doc_item AS item
LEFT OUTER JOIN E_ReservationDocumentItemDraft AS _Extension ON Reservation = _Extension.Reservation AND ReservationItem = _Extension.ReservationItem AND RecordType = _Extension.RecordType  -- association [1..1]
;