I_PlannedOrderComponent
Planned Order Component
I_PlannedOrderComponent (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PlannedOrderComponent · Manufacturing
I_PlannedOrderComponent is a Basic CDS View (Dimension) that provides data about "Planned Order Component" in SAP S/4HANA. It reads from 2 data sources (I_PlannedOrder, resb) and exposes 84 fields with key fields Reservation, ReservationItem, RecordType. It has 62 associations to related views.
SAP Help Documentation
| Category | CDS Views for Material Requirements Planning |
|---|---|
| Data Category | Dimension |
With this CDS view you can retrieve data of components that are assigned to a planned order. This CDS view provides the data to answer the following business questions: Which components are assigned to a planned order? What is the reference bill of material (BOM) of a planned order component? Which components are already finally issued?
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: F_LFA1_BEK (Vendor: Account Authorization) M_PLAF_ORG (Organization Levels for Planned Order Processing)
Structure
Important Fields Important fields in this view include the following: Field Name Description Reservation Reservation ReservationItem Reservation Item RecordType Reservation Record Type PlannedOrder Planned Order PlannedOrderType Planned Order Type MatlCompRequirementDate Requirement Date MatlCompRequirementTime Requirement Time MaterialComponentIsMissing Missing Part RequirementType Requirement Type Material Material Plant Plant SalesOrder Sales Order SalesOrderItem Sales Order Item WBSElementInternalID_2 WBS Internal ID ChangeNumber Change Number MaterialRevisionLevel Revision Level BillOfMaterialCategory BOM Category BillOfMaterialInternalID_2 Bill Of Material BillOfMaterialVariant Alternative BOM BillOfMaterialItemNumber_2 Bill Of Material Item Number BOMItemDescription Item Text PurchasingGroup Purchasing Group PurchaseRequisition Purchase Requisition PurchaseRequisitionItem Requisition Item PurchaseOrder Purchase Order PurchaseOrderItem Purchase Order Item Supplier Supplier DeliveryDurationInDays Delivery Duration StorageLocation Storage Location Batch Batch GoodsMovementType Movement Type InventorySpecialStockType Special Stock Type SupplyArea Production Supply Area BusinessArea Business Area GLAccount G/L Account BaseUnit Base Unit of Measure RequiredQuantity Requirement Quantity WithdrawnQuantity Withdrawn Quantity ConfirmedAvailableQuantity Available Quantity EntryUnit Unit of Entry GoodsMovementEntryQty Quantity in Unit of Entry
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction, Analytical Dimension, Association Target for Defining CDS Entities |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>With this CDS view you can retrieve data of components that are assigned to a planned order.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which components are assigned to a planned order?</p></li> <li><p>What is the reference bill of material (BOM) of a planned order component?</p></li> <li><p>Which components are already finally issued?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PlannedOrder | plaf | inner |
| resb | resb | from |
Associations (62)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [1..1] | I_ReservationDocumentItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ReservationItem = _ReservationItem.ReservationItem and $projection.RecordType = _ReservationItem.RecordType |
| [0..1] | I_ReservationDocRecordType | _ReservationDocRecordType | $projection.RecordType = _ReservationDocRecordType.RecordType |
| [1..1] | I_PlannedOrderType | _PlannedOrderType | $projection.PlannedOrderType = _PlannedOrderType.PlannedOrderType |
| [1..1] | I_MaterialRequirementType | _RequirementType | $projection.RequirementType = _RequirementType.RequirementType |
| [1..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..*] | I_ProductUnitsOfMeasure | _ProductUnitsOfMeasure | $projection.Material = _ProductUnitsOfMeasure.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductPlant | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [1..1] | I_ProductPlantBasic | _ProductPlant2 | $projection.Material = _ProductPlant2.Product and $projection.Plant = _ProductPlant2.Plant |
| [1..1] | I_ProductSupplyPlanning | _ProductSupplyPlanning | $projection.Material = _ProductSupplyPlanning.Product and $projection.Plant = _ProductSupplyPlanning.Plant |
| [0..1] | I_ProductStorageLocation | _ProductStorageLocation | $projection.Material = _ProductStorageLocation.Product and $projection.Plant = _ProductStorageLocation.Plant and $projection.StorageLocation = _ProductStorageLocation.StorageLocation |
| [0..1] | I_ProductStorageLocationBasic | _ProductStorageLocation2 | $projection.Material = _ProductStorageLocation2.Product and $projection.Plant = _ProductStorageLocation2.Plant and $projection.StorageLocation = _ProductStorageLocation2.StorageLocation |
| [0..1] | I_ProductPlantMRP | _ProductPlantMRPArea | $projection.Material = _ProductPlantMRPArea.Product and $projection.Plant = _ProductPlantMRPArea.Plant and $projection.MRPArea = _ProductPlantMRPArea.MRPArea |
| [0..1] | I_MRPController | _MRPController | $projection.Plant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController |
| [0..1] | I_MRPArea | _MRPArea | $projection.MRPArea = _MRPArea.MRPArea |
| [0..1] | I_ProductionSupervisor | _ProductionSupervisor | $projection.Plant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor |
| [0..1] | I_ProductionVersion | _ProductionVersion | $projection.Material = _ProductionVersion.Material and $projection.Plant = _ProductionVersion.Plant and $projection.ProductionVersion = _ProductionVersion.ProductionVersion |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem |
| [0..1] | I_WBSElementBasicData | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID |
| [0..1] | I_WBSElementBasicData | _WBSElementBasic | $projection.WBSElementInternalID_2 = _WBSElementBasic.WBSElementInternalID |
| [0..1] | I_BOMExplosionDate | _BOMExplosion | $projection.BOMExplosion = _BOMExplosion.BOMExplosionDateID |
| [0..1] | I_BillOfMaterialItemBasic | _BillOfMaterialItem | $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory and $projection.BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial and $projection.BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber and $projection.BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount |
| [0..1] | I_BillOfMaterialItemBasic | _BillOfMaterialItemBasic | $projection.BillOfMaterialCategory = _BillOfMaterialItemBasic.BillOfMaterialCategory and $projection.BillOfMaterialInternalID_2 = _BillOfMaterialItemBasic.BillOfMaterial and $projection.BOMItem = _BillOfMaterialItemBasic.BillOfMaterialItemNodeNumber and $projection.BOMItemInternalChangeCount = _BillOfMaterialItemBasic.BOMItemInternalChangeCount |
| [0..1] | I_BillOfMaterialItemCategory | _BOMItemCategory | $projection.BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory |
| [0..1] | I_PurchasingInfoRecordApi01 | _PurchasingInfoRecord | $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_PurchaseOrderAPI01 | _PurchaseOrder | $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder |
| [0..1] | I_PurchaseOrderItemAPI01 | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem |
| [0..1] | I_Purchaserequisition | _PurchaseRequisition | $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition |
| [0..1] | I_PurchaseRequisition_Api01 | _PurchaseRequisitionItem | $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem |
| [0..1] | I_PurchaseRequisitionItemAPI01 | _PurchaseRequisitionItem2 | $projection.PurchaseRequisition = _PurchaseRequisitionItem2.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem2.PurchaseRequisitionItem |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_SupplierCompanyByPlant | _SupplierCompanyByPlant | $projection.Plant = _SupplierCompanyByPlant.Plant and $projection.Supplier = _SupplierCompanyByPlant.Supplier |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..*] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Batch = _Batch.Batch |
| [0..1] | I_Batch | _Batch_2 | $projection.Material = _Batch_2.Material and $projection.Plant = _Batch_2.Plant and $projection.Batch = _Batch_2.Batch |
| [1..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
| [1..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
| [1..1] | I_InventorySpecialStockType | _InventorySpecialStockType | $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType |
| [0..1] | I_InvtrySpecialStockValnType | _InventorySpecialStockValnType | $projection.InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType |
| [0..1] | I_ConsumptionPosting | _ConsumptionPosting | $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting |
| [0..1] | I_ProductionSupplyArea | _SupplyArea | $projection.Plant = _SupplyArea.Plant and $projection.SupplyArea = _SupplyArea.ProductionSupplyArea |
| [0..1] | I_Warehouse | _Warehouse | $projection.Warehouse = _Warehouse.Warehouse |
| [0..1] | I_MatlCompDiscontinuationType | _MatlCompDiscontinuationType | $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType |
| [0..1] | I_MatlCompProvisionType | _ProvisionType | $projection.MaterialProvisionType = _ProvisionType.MaterialProvisionType |
| [0..1] | I_MatlCompSparePartType | _SparePartType | $projection.MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_AccountAssignmentCategory | _AccountAssignmentCategory | $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory |
| [0..1] | I_CommitmentItemShortID | _CommitmentItemShortID | $projection.CommitmentItemShortID = _CommitmentItemShortID.CommitmentItemShortID |
| [0..1] | I_Product | _Assembly | $projection.Assembly = _Assembly.Product |
| [0..1] | I_Product | _FollowUpMaterial | $projection.FollowUpMaterial = _FollowUpMaterial.Product |
| [1..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [1..1] | I_UnitOfMeasure | _EntryUnit | $projection.EntryUnit = _EntryUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _OpLeadTimeOffsetUnit | $projection.OperationLeadTimeOffsetUnit = _OpLeadTimeOffsetUnit.UnitOfMeasure |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber -- to root |
| [1..1] | I_PlannedOrder | _PlannedOrder | $projection.PlannedOrder = _PlannedOrder.PlannedOrder -- to extension |
| [1..1] | E_ReservationDocumentItem | _Extension | $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.RecordType = _Extension.RecordType |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPPLNDORDCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.representativeKey | ReservationItem | view | |
| ObjectModel.sapObjectNodeType.name | PlannedOrderComponent | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Planned Order Component | view |
Fields (84)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | resb | rsnum | Number of reservation/dependent requirements |
| KEY | ReservationItem | Reservation Item | ||
| KEY | RecordType | Reservation Record Type | ||
| PlannedOrder | I_PlannedOrder | PlannedOrder | Planned Order | |
| PlannedOrderType | I_PlannedOrder | PlannedOrderType | Planned Order Type | |
| MatlCompRequirementDate | Material Component Requirement Date | |||
| MatlCompRequirementTime | Material Component Requirement Time | |||
| ReservationIsFinallyIssued | resb | kzear | Final Issue for Reservation | |
| MatlCompIsMarkedForDeletion | Item is Deleted | |||
| MaterialComponentIsMissing | resb | xfehl | Missing Part | |
| IsBulkMaterialComponent | resb | schgt | Indicator: bulk material | |
| MatlCompIsMarkedForBackflush | resb | rgekz | Indicator: Backflush | |
| MatlCompIsTextItem | resb | txtps | Item is Text indicator | |
| MatlCompIsConfigurable | resb | kfpos | Indicator: Configurable Item | |
| RequirementType | Requirement Type | |||
| MaterialGroup | resb | matkl | Product Sold Group | |
| Material | resb | matnr | Material Number | |
| Plant | resb | werks | Receiving Plant | |
| MRPArea | I_PlannedOrder | MRPArea | MRP Area | |
| MRPController | I_PlannedOrder | MRPController | MRP Controller | |
| ProductionSupervisor | I_PlannedOrder | ProductionSupervisor | Production Supervisor | |
| ProductionVersion | I_PlannedOrder | ProductionVersion | Production Version | |
| pbdnrasRequirementPlan | ||||
| SalesOrder | Sales Order | |||
| SalesOrderItem | Sales Order Item | |||
| WBSElementInternalID | Work Breakdown Structure Element Internal ID | |||
| WBSElementInternalID_2 | WBS Element | |||
| ProductConfiguration | resb | cuobj | Internal Object Number | |
| ChangeNumber | Change Number | |||
| SortField | resb | sortf | Sort string | |
| MatlCompFreeDefinedAttribute | resb | sortf | Sort string | |
| MaterialRevisionLevel | Revision Level | |||
| MaterialPlanningRelevance | Code: Relevant for Materials Planning | |||
| BillOfMaterialCategory | Bill of Material Category Code | |||
| BillOfMaterialInternalID | resb | stlnr | Bill of Material | |
| BillOfMaterialInternalID_2 | Bill Of Material | |||
| BillOfMaterialVariant | resb | stlal | Alternative BOM | |
| BOMItem | Bill of Material Item | |||
| BOMItemInternalChangeCount | resb | stpoz | Internal counter | |
| BOMItemCategory | Bill of Material Item Category | |||
| BillOfMaterialItemNumber | resb | posnr | BOM item number | |
| BillOfMaterialItemNumber_2 | Bill Of Material Item Number | |||
| BOMItemDescription | resb | potx1 | BOM Item Text (Line 1) | |
| BOMItemText2 | resb | potx2 | BOM Item Text (Line 2) | |
| BOMExplosion | Bill of Material Explosion Date ID | |||
| PurchasingGroup | Purchasing Group | |||
| Supplier | resb | lifnr | Account Number of Supplier | |
| DeliveryDurationInDays | Delivery Duration In Days | |||
| GoodsMovementIsAllowed | resb | xwaok | Goods Movement for Reservation Allowed | |
| StorageLocation | Storage Location | |||
| Batch | resb | charg | Chargeable Proc. | |
| DebitCreditCode | Debit/Credit Code | |||
| GoodsMovementType | resb | bwart | Movement Type (Inventory Management) | |
| InventorySpecialStockType | Inventory Special Stock Type | |||
| InventorySpecialStockValnType | Inventory Special Stock Valuation Type | |||
| ConsumptionPosting | Consumption Posting | |||
| SupplyArea | Production Supply Area | |||
| MaterialStaging | resb | berkz | Material Staging Indicator for Production Supply | |
| Warehouse | resb | lgnum | Warehouse Number / Warehouse Complex | |
| StorageType | resb | lgtyp | Storage Type | |
| StorageBin | resb | lgpla | Storage Bin | |
| BusinessArea | resb | gsber | Business Area | |
| GLAccount | resb | saknr | G/L Account Number | |
| AccountAssignmentCategory | Account Assignment Category | |||
| CommitmentItem | Commitment Item | |||
| CommitmentItemShortID | Commitment Item Short ID | |||
| FundsCenter | Funds Center | |||
| MaterialCompIsVariableSized | resb | rohps | Variable-Sized Item Indicator | |
| NumberOfVariableSizeComponents | Number of Variable-Size Items | |||
| VariableSizeComponentUnit | Unit of Measure for Variable-Size Components | |||
| VariableSizeComponentQuantity | Variable-Size Item Quantity per PC | |||
| VariableSizeDimensionUnit | resb | romei | Unit of measure for sizes 1 to 3 | |
| VariableSizeDimension1 | resb | roms1 | Size 1 | |
| VariableSizeDimension2 | resb | roms2 | Size 2 | |
| VariableSizeDimension3 | resb | roms3 | Size 3 | |
| FormulaKey | resb | rform | Formula Key for Variable-Size Items | |
| MaterialCompIsAlternativeItem | resb | alpos | Alternative Item Indicator | |
| AlternativeItemGroup | Alternative Item Group | |||
| AlternativeItemStrategy | Alternative Item Strategy | |||
| AlternativeItemPriority | Alternative Item Priority | |||
| UsageProbabilityPercent | resb | ewahr | Usage Probability in % (Alternative Item) | |
| MaterialComponentIsPhantomItem | Phantom Item Indicator | |||
| OrderPathValue | resb | aufwg | Order path | |
| OrderLevelValue | resb | aufst | Order level |
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_PlannedOrderComponent.
-- 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.
-- SQL view name: IPPPLNDORDCOMP
CREATE VIEW I_PlannedOrderComponent AS
SELECT
resb.rsnum AS Reservation,
cast(resb.rspos as pph_rspos preserving type) AS ReservationItem,
cast(resb.rsart as pph_rsart preserving type) AS RecordType,
plaf.PlannedOrder AS PlannedOrder,
plaf.PlannedOrderType AS PlannedOrderType,
cast(resb.bdter as pph_bdter preserving type) AS MatlCompRequirementDate,
cast(resb.bdztp as pph_bdztp preserving type) AS MatlCompRequirementTime,
resb.kzear AS ReservationIsFinallyIssued,
cast(resb.xloek as pph_xloek preserving type) AS MatlCompIsMarkedForDeletion,
resb.xfehl AS MaterialComponentIsMissing,
resb.schgt AS IsBulkMaterialComponent,
resb.rgekz AS MatlCompIsMarkedForBackflush,
resb.txtps AS MatlCompIsTextItem,
resb.kfpos AS MatlCompIsConfigurable,
cast(resb.bdart as pph_bdart preserving type) AS RequirementType,
resb.matkl AS MaterialGroup,
resb.matnr AS Material,
resb.werks AS Plant,
plaf.MRPArea AS MRPArea,
plaf.MRPController AS MRPController,
plaf.ProductionSupervisor AS ProductionSupervisor,
plaf.ProductionVersion AS ProductionVersion,
cast(resb.kdauf as co_kdauf preserving type) AS SalesOrder,
cast(resb.kdpos as co_kdpos preserving type) AS SalesOrderItem,
cast(resb.pspel as pph_pspel preserving type) AS WBSElementInternalID,
cast(resb.pspel as ps_s4_pspnr preserving type) AS WBSElementInternalID_2,
resb.cuobj AS ProductConfiguration,
cast(resb.aennr as changenumber preserving type) AS ChangeNumber,
resb.sortf AS SortField,
resb.sortf AS MatlCompFreeDefinedAttribute,
cast(resb.revlv as vdm_qm_revlv preserving type) AS MaterialRevisionLevel,
cast(resb.no_disp as vdm_no_disp preserving type) AS MaterialPlanningRelevance,
cast(resb.stlty as pph_stlty preserving type) AS BillOfMaterialCategory,
resb.stlnr AS BillOfMaterialInternalID,
cast(resb.stlnr as pph_stnum preserving type) AS BillOfMaterialInternalID_2,
resb.stlal AS BillOfMaterialVariant,
cast(resb.stlkn as pph_stlkn preserving type) AS BOMItem,
resb.stpoz AS BOMItemInternalChangeCount,
cast(resb.postp as pph_postp preserving type) AS BOMItemCategory,
resb.posnr AS BillOfMaterialItemNumber,
cast(resb.posnr as vdm_sposn preserving type) AS BillOfMaterialItemNumber_2,
resb.potx1 AS BOMItemDescription,
resb.potx2 AS BOMItemText2,
cast(resb.sernr as pph_sernr preserving type) AS BOMExplosion,
cast(resb.ekgrp as pph_ekgrp preserving type) AS PurchasingGroup,
resb.lifnr AS Supplier,
cast(resb.lifzt as pph_lifzt preserving type) AS DeliveryDurationInDays,
resb.xwaok AS GoodsMovementIsAllowed,
cast(resb.lgort as pph_lgort preserving type) AS StorageLocation,
resb.charg AS Batch,
cast(resb.shkzg as pph_shkzg preserving type) AS DebitCreditCode,
resb.bwart AS GoodsMovementType,
cast(resb.sobkz as inventoryspecialstocktype preserving type) AS InventorySpecialStockType,
cast(resb.kzbws as pph_kzbws preserving type) AS InventorySpecialStockValnType,
cast(resb.kzvbr as pph_kzvbr preserving type) AS ConsumptionPosting,
cast(resb.prvbe as pph_prvbe preserving type) AS SupplyArea,
resb.berkz AS MaterialStaging,
resb.lgnum AS Warehouse,
resb.lgtyp AS StorageType,
resb.lgpla AS StorageBin,
resb.gsber AS BusinessArea,
resb.saknr AS GLAccount,
cast(resb.knttp as pph_knttp preserving type) AS AccountAssignmentCategory,
cast(resb.fipos as bbpfipos preserving type) AS CommitmentItem,
cast(resb.fipos as fmis_ci_internalname preserving type) AS CommitmentItemShortID,
cast(resb.fistl as bbpfistl preserving type) AS FundsCenter,
resb.rohps AS MaterialCompIsVariableSized,
cast(resb.roanz as vdm_roanz) AS NumberOfVariableSizeComponents,
cast(resb.rokme as pph_rokme preserving type) AS VariableSizeComponentUnit,
cast(resb.romen as pph_romen preserving type) AS VariableSizeComponentQuantity,
resb.romei AS VariableSizeDimensionUnit,
resb.roms1 AS VariableSizeDimension1,
resb.roms2 AS VariableSizeDimension2,
resb.roms3 AS VariableSizeDimension3,
resb.rform AS FormulaKey,
resb.alpos AS MaterialCompIsAlternativeItem,
cast(resb.alpgr as pph_alpgr preserving type) AS AlternativeItemGroup,
cast(resb.alpst as pph_alpst preserving type) AS AlternativeItemStrategy,
cast(resb.alprf as pph_alprf preserving type) AS AlternativeItemPriority,
resb.ewahr AS UsageProbabilityPercent,
cast(resb.dumps as pph_dumps preserving type) AS MaterialComponentIsPhantomItem,
resb.aufwg AS OrderPathValue,
resb.aufst AS OrderLevelValue
FROM resb
INNER JOIN I_PlannedOrder AS plaf ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ReservationDocumentHeader AS _Reservation ON Reservation = _Reservation.Reservation -- association [1..1]
LEFT OUTER JOIN I_ReservationDocumentItem AS _ReservationItem ON Reservation = _ReservationItem.Reservation AND ReservationItem = _ReservationItem.ReservationItem AND RecordType = _ReservationItem.RecordType -- association [1..1]
LEFT OUTER JOIN I_ReservationDocRecordType AS _ReservationDocRecordType ON RecordType = _ReservationDocRecordType.RecordType -- association [0..1]
LEFT OUTER JOIN I_PlannedOrderType AS _PlannedOrderType ON PlannedOrderType = _PlannedOrderType.PlannedOrderType -- association [1..1]
LEFT OUTER JOIN I_MaterialRequirementType AS _RequirementType ON RequirementType = _RequirementType.RequirementType -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ProductUnitsOfMeasure AS _ProductUnitsOfMeasure ON Material = _ProductUnitsOfMeasure.Product -- association [1..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant2 ON Material = _ProductPlant2.Product AND Plant = _ProductPlant2.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProductSupplyPlanning ON Material = _ProductSupplyPlanning.Product AND Plant = _ProductSupplyPlanning.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductStorageLocation AS _ProductStorageLocation ON Material = _ProductStorageLocation.Product AND Plant = _ProductStorageLocation.Plant AND StorageLocation = _ProductStorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_ProductStorageLocationBasic AS _ProductStorageLocation2 ON Material = _ProductStorageLocation2.Product AND Plant = _ProductStorageLocation2.Plant AND StorageLocation = _ProductStorageLocation2.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_ProductPlantMRP AS _ProductPlantMRPArea ON Material = _ProductPlantMRPArea.Product AND Plant = _ProductPlantMRPArea.Plant AND MRPArea = _ProductPlantMRPArea.MRPArea -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND MRPController = _MRPController.MRPController -- association [0..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea -- association [0..1]
LEFT OUTER JOIN I_ProductionSupervisor AS _ProductionSupervisor ON Plant = _ProductionSupervisor.Plant AND ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor -- association [0..1]
LEFT OUTER JOIN I_ProductionVersion AS _ProductionVersion ON Material = _ProductionVersion.Material AND Plant = _ProductionVersion.Plant AND ProductionVersion = _ProductionVersion.ProductionVersion -- 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 SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasic ON WBSElementInternalID_2 = _WBSElementBasic.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_BOMExplosionDate AS _BOMExplosion ON BOMExplosion = _BOMExplosion.BOMExplosionDateID -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialItemBasic AS _BillOfMaterialItem ON BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory AND BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial AND BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber AND BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialItemBasic AS _BillOfMaterialItemBasic ON BillOfMaterialCategory = _BillOfMaterialItemBasic.BillOfMaterialCategory AND BillOfMaterialInternalID_2 = _BillOfMaterialItemBasic.BillOfMaterial AND BOMItem = _BillOfMaterialItemBasic.BillOfMaterialItemNodeNumber AND BOMItemInternalChangeCount = _BillOfMaterialItemBasic.BOMItemInternalChangeCount -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialItemCategory AS _BOMItemCategory ON BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecordApi01 AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderAPI01 AS _PurchaseOrder ON PurchaseOrder = _PurchaseOrder.PurchaseOrder -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItemAPI01 AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN I_Purchaserequisition AS _PurchaseRequisition ON PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition -- association [0..1]
LEFT OUTER JOIN I_PurchaseRequisition_Api01 AS _PurchaseRequisitionItem ON PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem -- association [0..1]
LEFT OUTER JOIN I_PurchaseRequisitionItemAPI01 AS _PurchaseRequisitionItem2 ON PurchaseRequisition = _PurchaseRequisitionItem2.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem2.PurchaseRequisitionItem -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON Plant = _SupplierCompanyByPlant.Plant AND Supplier = _SupplierCompanyByPlant.Supplier -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Batch = _Batch.Batch -- association [0..*]
LEFT OUTER JOIN I_Batch AS _Batch_2 ON Material = _Batch_2.Material AND Plant = _Batch_2.Plant AND Batch = _Batch_2.Batch -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode -- association [1..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType -- association [1..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType -- association [1..1]
LEFT OUTER JOIN I_InvtrySpecialStockValnType AS _InventorySpecialStockValnType ON InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType -- association [0..1]
LEFT OUTER JOIN I_ConsumptionPosting AS _ConsumptionPosting ON ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting -- association [0..1]
LEFT OUTER JOIN I_ProductionSupplyArea AS _SupplyArea ON Plant = _SupplyArea.Plant AND SupplyArea = _SupplyArea.ProductionSupplyArea -- association [0..1]
LEFT OUTER JOIN I_Warehouse AS _Warehouse ON Warehouse = _Warehouse.Warehouse -- association [0..1]
LEFT OUTER JOIN I_MatlCompDiscontinuationType AS _MatlCompDiscontinuationType ON MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType -- association [0..1]
LEFT OUTER JOIN I_MatlCompProvisionType AS _ProvisionType ON MaterialProvisionType = _ProvisionType.MaterialProvisionType -- association [0..1]
LEFT OUTER JOIN I_MatlCompSparePartType AS _SparePartType ON MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory -- association [0..1]
LEFT OUTER JOIN I_CommitmentItemShortID AS _CommitmentItemShortID ON CommitmentItemShortID = _CommitmentItemShortID.CommitmentItemShortID -- association [0..1]
LEFT OUTER JOIN I_Product AS _Assembly ON Assembly = _Assembly.Product -- association [0..1]
LEFT OUTER JOIN I_Product AS _FollowUpMaterial ON FollowUpMaterial = _FollowUpMaterial.Product -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EntryUnit ON EntryUnit = _EntryUnit.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OpLeadTimeOffsetUnit ON OperationLeadTimeOffsetUnit = _OpLeadTimeOffsetUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_PlannedOrder AS _PlannedOrder ON PlannedOrder = _PlannedOrder.PlannedOrder -- association [1..1]
LEFT OUTER JOIN E_ReservationDocumentItem AS _Extension ON Reservation = _Extension.Reservation AND ReservationItem = _Extension.ReservationItem AND RecordType = _Extension.RecordType -- association [1..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