P_EventBasedOverheadOrderVH
Order details
P_EventBasedOverheadOrderVH is a Composite CDS View that provides data about "Order details" in SAP S/4HANA. It reads from 3 data sources (I_InternalOrder, I_MaintenanceOrder, I_ProductCostCtrlgOrder) and exposes 24 fields with key field OrderID. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InternalOrder | _InternalOrder | union |
| I_MaintenanceOrder | _MaintenanceOrder | union |
| I_ProductCostCtrlgOrder | _ProductCostCtrlgOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_OrderCategory | _OrderCategory | $projection.OrderCategory = _OrderCategory.OrderCategory |
| [1..1] | I_OrderType | _OrderType | $projection.OrderType = _OrderType.OrderType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBOVHDOVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Order details | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | OrderID | Order ID | |
| OrderDescription | OrderDescription | Description | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| OrderCategory | OrderCategory | Order Category | ||
| OrderType | OrderType | Order Type | ||
| Plant | Plant | Valuation Area | ||
| _CompanyCode | _CompanyCode | |||
| _OrderCategory | _OrderCategory | |||
| OrderDescription | MaintenanceOrderDesc | Description | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| OrderCategory | MaintenanceOrderCategory | Order Category | ||
| OrderType | MaintenanceOrderType | Order Type | ||
| Plant | MaintenancePlant | Valuation Area | ||
| _CompanyCode | _CompanyCode | |||
| _OrderCategory | _MaintenanceOrderCategory | |||
| OrderTypekeyInternalOrderasOrderID | ||||
| OrderDescription | InternalOrderDescription | Description | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| OrderCategory | OrderCategory | Order Category | ||
| OrderType | OrderType | Order Type | ||
| Plant | Plant | Valuation Area | ||
| _CompanyCode | _CompanyCode | |||
| _OrderCategory | _OrderCategory | |||
| _OrderType | _OrderType |
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_EventBasedOverheadOrderVH.
-- 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: PEBOVHDOVH
CREATE VIEW P_EventBasedOverheadOrderVH AS
SELECT
OrderID,
OrderDescription,
CompanyCode,
OrderCategory,
OrderType,
Plant
FROM I_ProductCostCtrlgOrder AS _ProductCostCtrlgOrder
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory -- association [1..1]
LEFT OUTER JOIN I_OrderType AS _OrderType ON OrderType = _OrderType.OrderType -- association [1..1]
-- UNION with additional select branch(es): I_MaintenanceOrder, I_InternalOrder
;
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