P_RunOverheadOrder

DDL: P_RUNOVERHEADORDER SQL: PRUNOVHDORDER Type: view COMPOSITE

P_RunOverheadOrder is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_InternalOrder, I_MaintenanceOrder) and exposes 10 fields with key field OrderID.

Data Sources (2)

SourceAliasJoin Type
I_InternalOrder _InternalOrder union
I_MaintenanceOrder _MaintenanceOrder from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRUNOVHDORDER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY OrderID MaintenanceOrder Order
OrderDescription MaintenanceOrderDesc Description
ControllingObject MaintenanceOrderInternalID Object number
ControllingArea ControllingArea Controlling Area
CompanyCode CompanyCode Receiver Company Code
OrderDescription InternalOrderDescription Description
ControllingObject ControllingObject Object number
ControllingArea ControllingArea Controlling Area
CompanyCode CompanyCode Receiver Company Code
_CompanyCode _CompanyCode

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_RunOverheadOrder.
-- 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: PRUNOVHDORDER

CREATE VIEW P_RunOverheadOrder AS
SELECT
  MaintenanceOrder AS OrderID,
  MaintenanceOrderDesc AS OrderDescription,
  MaintenanceOrderInternalID AS ControllingObject,
  ControllingArea,
  CompanyCode
FROM I_MaintenanceOrder AS _MaintenanceOrder
-- UNION with additional select branch(es): I_InternalOrder
;