P_ProductCostCtrlgOrderAndItem
P_ProductCostCtrlgOrderAndItem is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ProductCostCtrlgOrder, I_ProductCostCtrlgOrderItem) and exposes 90 fields with key fields OrderID, OrderItem, OrderItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductCostCtrlgOrder | _Order | from |
| I_ProductCostCtrlgOrderItem | I_ProductCostCtrlgOrderItem | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIPCCORDANDITM | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | OrderID | Order ID | |
| KEY | OrderItem | |||
| OrderInternalID | ObjectInternalID | Object number | ||
| ObjectInternalID | ObjectInternalID | Object number | ||
| OrderDescription | OrderDescription | |||
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| ExternalOrder | ExternalOrder | Ext. order no. | ||
| Currency | Currency | Valuation Crcy | ||
| Plant | Plant | Valuation Area | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ResponsibleCostCenter | ResponsibleCostCenter | Responsible Cost Center | ||
| WBSElementInternalID | _RepresentativeOrderItem | WBSElementInternalID | WBS Internal ID | |
| SalesOrder | _RepresentativeOrderItem | SalesOrder | SD Document | |
| SalesOrderItem | _RepresentativeOrderItem | SalesOrderItem | Sales Order Item | |
| InventorySpecialStockType | _RepresentativeOrderItem | InventorySpecialStockType | Special Stock Type | |
| InventorySpecialStockValnType | _RepresentativeOrderItem | InventorySpecialStockValnType | Valuation | |
| Material | _RepresentativeOrderItem | Material | Vehicle Model | |
| LeadingMfgOrderMaterial | _RepresentativeOrderItem | Material | Vehicle Model | |
| ValuationType | _RepresentativeOrderItem | ValuationType | Valuation Type | |
| MRPPlant | _RepresentativeOrderItem | MRPPlant | Plant | |
| StorageLocation | _RepresentativeOrderItem | StorageLocation | StorageLocation | |
| ProductionVersion | _RepresentativeOrderItem | ProductionVersion | Version ID | |
| ProductionUnit | ||||
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| IsFixedPriceCoProduct | Fixed-Price Co-Prod. | |||
| MfgOrderHasMultipleItems | MfgOrderHasMultipleItems | |||
| OrderIsEventBasedPosting | OrderIsEventBasedPosting | Event-Based Posting | ||
| ActualCostsCostingVariant | ActualCostsCostingVariant | Act. Costing Variant | ||
| PlannedReleaseDate | PlannedReleaseDate | |||
| PlannedCompletionDate | PlannedCompletionDate | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| TechnicalCompletionDate | TechnicalCompletionDate | |||
| ActualDeliveryDate | _RepresentativeOrderItem | ActualDeliveryDate | Delivery Date | |
| ScheduledBasicEndDate | ScheduledBasicEndDate | Sched. finish | ||
| ScheduledReleaseDate | ScheduledReleaseDate | |||
| ActualStartDate | ActualStartDate | Actual Start | ||
| ConfirmedEndDate | ConfirmedEndDate | |||
| KEY | OrderItem | OrderItem | ||
| OrderInternalID | I_ProductCostCtrlgOrder | ObjectInternalID | Object number | |
| ObjectInternalID | ObjectInternalID | Object number | ||
| OrderDescription | I_ProductCostCtrlgOrder | OrderDescription | ||
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| ExternalOrder | I_ProductCostCtrlgOrder | ExternalOrder | Ext. order no. | |
| Currency | I_ProductCostCtrlgOrder | Currency | Valuation Crcy | |
| Plant | I_ProductCostCtrlgOrder | Plant | Valuation Area | |
| BaseUnit | BaseUnit | Unit of Measure | ||
| ControllingArea | I_ProductCostCtrlgOrder | ControllingArea | Controlling Area | |
| CompanyCode | I_ProductCostCtrlgOrder | CompanyCode | Receiver Company Code | |
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | I_ProductCostCtrlgOrder | ProfitCenter | Profit Center | |
| ResponsibleCostCenter | I_ProductCostCtrlgOrder | ResponsibleCostCenter | Responsible Cost Center | |
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventorySpecialStockValnType | InventorySpecialStockValnType | Valuation | ||
| Material | Material | Vehicle Model | ||
| LeadingMfgOrderMaterial | Vehicle Model | |||
| ValuationType | ValuationType | Valuation Type | ||
| MRPPlant | MRPPlant | Plant | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| ProductionVersion | ProductionVersion | Version ID | ||
| ProductionUnit | ||||
| IsMarkedForDeletion | I_ProductCostCtrlgOrder | IsMarkedForDeletion | Purch.org. data | |
| IsFixedPriceCoProduct | IsFixedPriceCoProduct | Fixed-Price Co-Prod. | ||
| MfgOrderHasMultipleItems | I_ProductCostCtrlgOrder | MfgOrderHasMultipleItems | ||
| OrderIsEventBasedPosting | I_ProductCostCtrlgOrder | OrderIsEventBasedPosting | Event-Based Posting | |
| ActualCostsCostingVariant | I_ProductCostCtrlgOrder | ActualCostsCostingVariant | Act. Costing Variant | |
| PlannedReleaseDate | I_ProductCostCtrlgOrder | PlannedReleaseDate | ||
| PlannedCompletionDate | I_ProductCostCtrlgOrder | PlannedCompletionDate | ||
| CreatedByUser | I_ProductCostCtrlgOrder | CreatedByUser | User Name | |
| CreationDate | I_ProductCostCtrlgOrder | CreationDate | Time Stamp | |
| LastChangedByUser | I_ProductCostCtrlgOrder | LastChangedByUser | User Name | |
| LastChangeDate | I_ProductCostCtrlgOrder | LastChangeDate | Time Stamp | |
| TechnicalCompletionDate | I_ProductCostCtrlgOrder | TechnicalCompletionDate | ||
| ActualDeliveryDate | ActualDeliveryDate | Delivery Date | ||
| ScheduledBasicEndDate | ScheduledBasicEndDate | Sched. finish | ||
| ScheduledReleaseDate | I_ProductCostCtrlgOrder | ScheduledReleaseDate | ||
| ActualStartDate | I_ProductCostCtrlgOrder | ActualStartDate | Actual Start | |
| ConfirmedEndDate | I_ProductCostCtrlgOrder | ConfirmedEndDate | ||
| ActualReleasedDate | I_ProductCostCtrlgOrder | ActualReleasedDate |
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_ProductCostCtrlgOrderAndItem.
-- 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: PFIPCCORDANDITM
CREATE VIEW P_ProductCostCtrlgOrderAndItem AS
SELECT
OrderID,
cast('0000' as pph_posnr) AS OrderItem,
ObjectInternalID AS OrderInternalID,
ObjectInternalID,
OrderDescription,
OrderType,
OrderCategory,
ExternalOrder,
Currency,
Plant,
BaseUnit,
ControllingArea,
CompanyCode,
BusinessArea,
ProfitCenter,
ResponsibleCostCenter,
_RepresentativeOrderItem.WBSElementInternalID AS WBSElementInternalID,
_RepresentativeOrderItem.SalesOrder AS SalesOrder,
_RepresentativeOrderItem.SalesOrderItem AS SalesOrderItem,
_RepresentativeOrderItem.InventorySpecialStockType AS InventorySpecialStockType,
_RepresentativeOrderItem.InventorySpecialStockValnType AS InventorySpecialStockValnType,
_RepresentativeOrderItem.Material AS Material,
_RepresentativeOrderItem.Material AS LeadingMfgOrderMaterial,
_RepresentativeOrderItem.ValuationType AS ValuationType,
_RepresentativeOrderItem.MRPPlant AS MRPPlant,
_RepresentativeOrderItem.StorageLocation AS StorageLocation,
_RepresentativeOrderItem.ProductionVersion AS ProductionVersion,
cast(_RepresentativeOrderItem.ProductionUnit as fis_meinh) AS ProductionUnit,
IsMarkedForDeletion,
cast('' as ck_fixprku) AS IsFixedPriceCoProduct,
MfgOrderHasMultipleItems,
OrderIsEventBasedPosting,
ActualCostsCostingVariant,
PlannedReleaseDate,
PlannedCompletionDate,
CreatedByUser,
CreationDate,
LastChangedByUser,
LastChangeDate,
TechnicalCompletionDate,
_RepresentativeOrderItem.ActualDeliveryDate AS ActualDeliveryDate,
ScheduledBasicEndDate,
ScheduledReleaseDate,
ActualStartDate,
ConfirmedEndDate,
_Order.ActualReleasedDate AS ActualReleasedDate
FROM I_ProductCostCtrlgOrder AS _Order
-- UNION with additional select branch(es): I_ProductCostCtrlgOrderItem
;
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