P_DDOrderDetails
P_DDOrderDetails is a Consumption CDS View in SAP S/4HANA. It reads from 10 data sources and exposes 119 fields with key fields Material, Plant, OrderID, OrderItem, OrderScheduleLine.
Data Sources (10)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderItem | _afpo | union_all |
| I_Purchaserequisitionitem | _eban | from |
| I_PurgDocScheduleLine | _eket | left_outer |
| I_PurchasingDocumentItem | _ekpo | union_all |
| I_DemandDrivenPurDocHeader | _Header | left_outer |
| I_MaterialPlant | _marc | inner |
| I_MaterialPlant | _marc | inner |
| I_MaterialPlant | _marc | inner |
| I_MaterialPlant | _marc | inner |
| I_PlannedOrder | _plaf | union_all |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDDORDDETS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (119)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | I_Purchaserequisitionitem | Material | Vehicle Model |
| KEY | Plant | I_Purchaserequisitionitem | Plant | Plant |
| KEY | OrderID | Order ID | ||
| KEY | OrderItem | |||
| KEY | OrderScheduleLine | Schedule Line | ||
| MRPElementCategory | ||||
| ItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurchasingDocumentCategory | I_Purchaserequisitionitem | PurchasingDocumentCategory | Doc. Category | |
| MaterialGoodsReceiptDuration | MaterialGoodsReceiptDuration | GR proc. time | ||
| OpeningDate | Plnd Open. Date | |||
| ReleaseDate | PurchaseRequisitionReleaseDate | Plnd Start Date | ||
| DeliveryDate | DeliveryDate | Ltst Planned Finish | ||
| TotalQuantity | RequestedQuantity | Order Quantity | ||
| DeliveredQuantity | Received | |||
| BaseUnit | BaseUnit | Unit of Measure | ||
| PurchasingOrganization | I_Purchaserequisitionitem | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_Purchaserequisitionitem | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | ||||
| PurchasingGroupEmailID | ||||
| MRPController | I_MaterialPlant | MRPController | MRP Controller | |
| Supplier | I_Purchaserequisitionitem | FixedSupplier | Fixed Vendor | |
| SupplierName | ||||
| SupplierPhoneNumber | ||||
| Subcontractor | I_Purchaserequisitionitem | Subcontractor | Supplier | |
| StorageLocation | StorageLocation | StorageLocation | ||
| ProductionVersion | Version ID | |||
| SupplyingPlant | SupplyingPlant | Prod plnt | ||
| PurchasingInfoRecord | PurchasingInfoRecord | Info Record | ||
| PurchaseOutlineAgreement | PurchaseContract | Purchasing Doc. | ||
| PurchaseOutlineAgreementItem | PurchaseContractItem | Item | ||
| MaterialasMaterial | ||||
| KEY | Plant | I_PurchasingDocumentItem | Plant | Plant |
| KEY | OrderID | I_PurchasingDocumentItem | PurchasingDocument | Order ID |
| KEY | OrderItem | |||
| KEY | OrderScheduleLine | I_PurgDocScheduleLine | ScheduleLine | Schedule Line |
| ItemCategory | I_PurchasingDocumentItem | PurchasingDocumentItemCategory | Item Category | |
| PurchasingDocumentCategory | I_PurchasingDocumentItem | PurchasingDocumentCategory | Doc. Category | |
| MaterialGoodsReceiptDuration | GoodsReceiptDurationInDays | GR proc. time | ||
| OpeningDate | Plnd Open. Date | |||
| ReleaseDate | Plnd Start Date | |||
| DeliveryDate | I_PurgDocScheduleLine | ScheduleLineDeliveryDate | Ltst Planned Finish | |
| OrderQuantityendasTotalQuantity | ||||
| DeliveredQuantity | I_PurgDocScheduleLine | RoughGoodsReceiptQty | Received | |
| BaseUnit | I_PurchasingDocumentItem | OrderQuantityUnit | Unit of Measure | |
| PurchasingOrganization | _PurchasingDocument | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | _PurchasingDocument | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | ||||
| PurchasingGroupEmailID | ||||
| MRPController | I_MaterialPlant | MRPController | MRP Controller | |
| Supplier | _PurchasingDocument | Supplier | Fixed Vendor | |
| SupplierName | ||||
| SupplierPhoneNumber | ||||
| Subcontractor | I_PurchasingDocumentItem | Subcontractor | Supplier | |
| StorageLocation | I_PurchasingDocumentItem | StorageLocation | StorageLocation | |
| ProductionVersion | Version ID | |||
| SupplyingPlant | _PurchasingDocument | SupplyingPlant | Prod plnt | |
| PurchasingInfoRecord | I_PurchasingDocumentItem | PurchasingInfoRecord | Info Record | |
| MaterialasMaterial | ||||
| KEY | Plant | I_PlannedOrder | MRPPlant | Plant |
| KEY | OrderID | I_PlannedOrder | PlannedOrder | Order ID |
| KEY | OrderItem | |||
| KEY | OrderScheduleLine | Schedule Line | ||
| MRPElementCategory | ||||
| ItemCategory | Item Category | |||
| PurchasingDocumentCategory | Doc. Category | |||
| MaterialGoodsReceiptDuration | I_PlannedOrder | MaterialGoodsReceiptDuration | GR proc. time | |
| OpeningDate | I_PlannedOrder | PlannedOrderOpeningDate | Plnd Open. Date | |
| ReleaseDate | I_PlannedOrder | PlndOrderPlannedStartDate | Plnd Start Date | |
| DeliveryDate | I_PlannedOrder | PlndOrderPlannedEndDate | Ltst Planned Finish | |
| TotalQuantity | I_PlannedOrder | PlannedTotalQtyInBaseUnit | Order Quantity | |
| DeliveredQuantity | Received | |||
| BaseUnit | I_PlannedOrder | BaseUnit | Unit of Measure | |
| PurchasingOrganization | Purchasing Organization | |||
| PurchasingGroup | Purchasing Group | |||
| PurchasingGroupName | ||||
| PurchasingGroupEmailID | ||||
| MRPController | I_MaterialPlant | MRPController | MRP Controller | |
| Supplier | I_PlannedOrder | FixedSupplier | Fixed Vendor | |
| SupplierName | ||||
| SupplierPhoneNumber | ||||
| Subcontractor | Supplier | |||
| StorageLocation | I_PlannedOrder | StorageLocation | StorageLocation | |
| ProductionVersion | I_PlannedOrder | ProductionVersion | Version ID | |
| SupplyingPlant | I_PlannedOrder | ProductionPlant | Prod plnt | |
| PurchasingInfoRecord | Info Record | |||
| PurchaseOutlineAgreement | Purchasing Doc. | |||
| PurchaseOutlineAgreementItem | Item | |||
| MaterialasMaterial | ||||
| KEY | Plant | I_OrderItem | MRPPlant | Plant |
| KEY | OrderID | I_OrderItem | OrderID | Order ID |
| KEY | OrderItem | |||
| KEY | OrderScheduleLine | Schedule Line | ||
| MRPElementCategory | ||||
| ItemCategory | Item Category | |||
| PurchasingDocumentCategory | Doc. Category | |||
| MaterialGoodsReceiptDuration | I_OrderItem | MaterialGoodsReceiptDuration | GR proc. time | |
| OpeningDate | I_OrderItem | PlannedOrderOpeningDate | Plnd Open. Date | |
| ReleaseDate | I_OrderItem | PlndOrderPlannedStartDate | Plnd Start Date | |
| DeliveryDate | I_OrderItem | PlannedEndDate | Ltst Planned Finish | |
| TotalQuantity | I_OrderItem | OrderPlannedTotalQty | Order Quantity | |
| DeliveredQuantity | I_OrderItem | MfgOrderItemGoodsReceiptQty | Received | |
| BaseUnit | I_OrderItem | BaseUnit | Unit of Measure | |
| PurchasingOrganization | Purchasing Organization | |||
| PurchasingGroup | Purchasing Group | |||
| PurchasingGroupName | ||||
| PurchasingGroupPhoneNumber | ||||
| PurchasingGroupEmailID | ||||
| MRPController | I_MaterialPlant | MRPController | MRP Controller | |
| Supplier | Fixed Vendor | |||
| SupplierName | ||||
| SupplierPhoneNumber | ||||
| Subcontractor | Supplier | |||
| StorageLocation | I_OrderItem | StorageLocation | StorageLocation | |
| ProductionVersion | I_OrderItem | ProductionVersion | Version ID | |
| SupplyingPlant | Prod plnt | |||
| PurchasingInfoRecord | Info Record | |||
| PurchaseOutlineAgreement | Purchasing Doc. | |||
| PurchaseOutlineAgreementItem | Item | |||
| IsEndOfPurposeBlocked |
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 P_DDOrderDetails.
-- 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: PDDORDDETS
CREATE VIEW P_DDOrderDetails AS
SELECT
_eban.Material AS Material,
_eban.Plant AS Plant,
cast(PurchaseRequisition as abap.char(12)) AS OrderID,
lpad(PurchaseRequisitionItem, 6, '0') AS OrderItem,
cast('0000' as delet) AS OrderScheduleLine,
'BA' AS MRPElementCategory,
PurchasingDocumentItemCategory AS ItemCategory,
_eban.PurchasingDocumentCategory AS PurchasingDocumentCategory,
MaterialGoodsReceiptDuration,
cast('0000-00-00' as abap.dats) AS OpeningDate,
PurchaseRequisitionReleaseDate AS ReleaseDate,
DeliveryDate,
RequestedQuantity AS TotalQuantity,
cast(0 as mng01) AS DeliveredQuantity,
BaseUnit,
_eban.PurchasingOrganization AS PurchasingOrganization,
_eban.PurchasingGroup AS PurchasingGroup,
_eban._PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
_eban._PurchasingGroup.EmailAddress AS PurchasingGroupEmailID,
_marc.MRPController AS MRPController,
_eban.FixedSupplier AS Supplier,
_eban._Supplier.BPSupplierFullName AS SupplierName,
_eban._Supplier.PhoneNumber1 AS SupplierPhoneNumber,
_eban.Subcontractor AS Subcontractor,
StorageLocation,
cast( '' as verid) AS ProductionVersion,
SupplyingPlant,
PurchasingInfoRecord,
PurchaseContract AS PurchaseOutlineAgreement,
PurchaseContractItem AS PurchaseOutlineAgreementItem,
_eban.IsEndOfPurposeBlocked AS MaterialasMaterial,
case when _PurchasingDocument.PurchasingDocumentType = 'LP' or _PurchasingDocument.PurchasingDocumentType = 'LPA' then _eket.ScheduleLineOrderQuantity else _ekpo.OrderQuantity end as TotalQuantity AS OrderQuantityendasTotalQuantity,
'' AS PurchasingGroupPhoneNumber,
'' AS IsEndOfPurposeBlocked
FROM I_Purchaserequisitionitem AS _eban
INNER JOIN I_MaterialPlant AS _marc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DemandDrivenPurDocHeader AS _Header ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgDocScheduleLine AS _eket ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_PurchasingDocumentItem, I_PlannedOrder, I_OrderItem
;
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