I_ReservationHeader
Reservation Header
I_ReservationHeader is a Basic CDS View (Dimension) that provides data about "Reservation Header" in SAP S/4HANA. It reads from 1 data source (rkpf) and exposes 43 fields with key field Reservation. It has 16 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| rkpf | rkpf | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
| [0..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter |
| [0..*] | I_ProfitCenter | _ProfitCenter | $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ReservationDate >= _ProfitCenter.ValidityStartDate and $projection.ReservationDate <= _ProfitCenter.ValidityEndDate |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [1..*] | I_ReservationItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation |
| [0..1] | I_WBSElementByInternalKey | _WBSElementByInternalKey | $projection.WBSElementInternalID = _WBSElementByInternalKey.WBSElementInternalID |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem and $projection.SalesOrder = _SalesOrderItem.SalesOrder |
| [0..1] | I_SalesOrderScheduleLine | _SalesOrderScheduleLine | $projection.SalesOrderScheduleLine = _SalesOrderScheduleLine.ScheduleLine and $projection.SalesOrder = _SalesOrderScheduleLine.SalesOrder and $projection.SalesOrderItem = _SalesOrderScheduleLine.SalesOrderItem |
| [0..*] | I_MasterFixedAsset | _MasterFixedAsset | $projection.AssetNumber = _MasterFixedAsset.MasterFixedAsset |
| [0..*] | I_FixedAsset | _FixedAsset | $projection.AssetSubNumber = _FixedAsset.FixedAsset |
| [0..1] | I_Plant | _Plant | $projection.IssuingOrReceivingPlant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.IssuingOrReceivingStorageLoc = _StorageLocation.StorageLocation and $projection.IssuingOrReceivingPlant = _StorageLocation.Plant |
| [0..1] | I_CompanyCode | _VerificationCompanyCode | $projection.ResvnVerificationCompanyCode = _VerificationCompanyCode.CompanyCode |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRESERVATIONHD | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Reservation Header | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | Reservation | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | rsnum | Reservation | |
| ReservationCreationCode | creationcode | Resv. Creation Code | ||
| ReservationOrigin | kzver | Origin | ||
| UserID | usnam | User Name | ||
| OrderID | aufnr | SettlementOrder | ||
| GoodsMovementType | bwart | Valuation Type | ||
| CostCenter | kostl | Substitute CC | ||
| ProfitCenter | prctr | Profit Centers | ||
| ControllingArea | kokrs | Org. Value | ||
| ProfitabilitySegment_2 | Profit. segment | |||
| GoodsRecipientName | wempf | Recipient | ||
| ReservationDate | rsdat | Reservation | ||
| IsCheckedAgainstFactoryCal | xcale | Calendar | ||
| Customer | kunnr | Stock customer | ||
| WBSElementInternalID | ps_psp_pnr | WBS Element | ||
| SalesOrder | kdauf | SD Document | ||
| SalesOrderItem | kdpos | Sales Ord. Item | ||
| SalesOrderScheduleLine | kdein | SOrder schedule | ||
| AssetNumber | anln1 | Asset | ||
| AssetSubNumber | anln2 | Sub-number | ||
| NetworkNumberForAcctAssgmt | nplnr | Network | ||
| IssuingOrReceivingPlant | umwrk | Receiving plant | ||
| IssuingOrReceivingStorageLoc | umlgo | Receiving SLoc. | ||
| ResvnVerificationCompanyCode | parbu | Clearing CoCode | ||
| CreationDateTime | creationdatetime | Timestamp | ||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| LastChangeDateTime | lastchangedatetime | Timestamp | ||
| _CostCenter | _CostCenter | |||
| _ProfitCenter | _ProfitCenter | |||
| _ControllingArea | _ControllingArea | |||
| _Order | _Order | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _Customer | _Customer | |||
| _WBSElementByInternalKey | _WBSElementByInternalKey | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrderScheduleLine | _SalesOrderScheduleLine | |||
| _MasterFixedAsset | _MasterFixedAsset | |||
| _FixedAsset | _FixedAsset | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _VerificationCompanyCode | _VerificationCompanyCode | |||
| _ReservationItem | _ReservationItem |
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 I_ReservationHeader.
-- 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 I_ReservationHeader AS
SELECT
rsnum AS Reservation,
creationcode AS ReservationCreationCode,
kzver AS ReservationOrigin,
usnam AS UserID,
aufnr AS OrderID,
bwart AS GoodsMovementType,
kostl AS CostCenter,
prctr AS ProfitCenter,
kokrs AS ControllingArea,
cast(paobjnr as rkeobjnr_char) AS ProfitabilitySegment_2,
wempf AS GoodsRecipientName,
rsdat AS ReservationDate,
xcale AS IsCheckedAgainstFactoryCal,
kunnr AS Customer,
ps_psp_pnr AS WBSElementInternalID,
kdauf AS SalesOrder,
kdpos AS SalesOrderItem,
kdein AS SalesOrderScheduleLine,
anln1 AS AssetNumber,
anln2 AS AssetSubNumber,
nplnr AS NetworkNumberForAcctAssgmt,
umwrk AS IssuingOrReceivingPlant,
umlgo AS IssuingOrReceivingStorageLoc,
parbu AS ResvnVerificationCompanyCode,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime
FROM rkpf
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter -- association [0..*]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter AND ReservationDate >= _ProfitCenter.ValidityStartDate AND ReservationDate <= _ProfitCenter.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_ReservationItem AS _ReservationItem ON Reservation = _ReservationItem.Reservation -- association [1..*]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElementByInternalKey ON WBSElementInternalID = _WBSElementByInternalKey.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrderItem = _SalesOrderItem.SalesOrderItem AND SalesOrder = _SalesOrderItem.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderScheduleLine AS _SalesOrderScheduleLine ON SalesOrderScheduleLine = _SalesOrderScheduleLine.ScheduleLine AND SalesOrder = _SalesOrderScheduleLine.SalesOrder AND SalesOrderItem = _SalesOrderScheduleLine.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON AssetNumber = _MasterFixedAsset.MasterFixedAsset -- association [0..*]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON AssetSubNumber = _FixedAsset.FixedAsset -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON IssuingOrReceivingPlant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON IssuingOrReceivingStorageLoc = _StorageLocation.StorageLocation AND IssuingOrReceivingPlant = _StorageLocation.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _VerificationCompanyCode ON ResvnVerificationCompanyCode = _VerificationCompanyCode.CompanyCode -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA