P_EventBasedOverheadOrderVH

DDL: P_EVENTBASEDOVERHEADORDERVH SQL: PEBOVHDOVH Type: view COMPOSITE

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)

SourceAliasJoin Type
I_InternalOrder _InternalOrder union
I_MaintenanceOrder _MaintenanceOrder union
I_ProductCostCtrlgOrder _ProductCostCtrlgOrder from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;