I_OrganizationalChangeOrder

DDL: I_ORGANIZATIONALCHANGEORDER Type: view_entity BASIC

Orders in an Orgl Change

I_OrganizationalChangeOrder is a Basic CDS View (Dimension) that provides data about "Orders in an Orgl Change" in SAP S/4HANA. It reads from 1 data source (finoc_orglchgord) and exposes 13 fields with key fields OrganizationalChange, OrderID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
finoc_orglchgord finoc_orglchgord from

Associations (5)

CardinalityTargetAliasCondition
[1] I_OrganizationalChange _OrglChange $projection.OrganizationalChange = _OrglChange.OrganizationalChange
[0..1] I_OrderBasic _OrderID $projection.OrderID = _OrderID.OrderID
[0..*] I_ProfitCenterText _ProfitCenterBfrOrglChangeText $projection.ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea and $projection.ProfitCenter = _ProfitCenterBfrOrglChangeText.ProfitCenter and _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231'
[0..*] I_ProfitCenterText _ProfitCenterByOrglChangeText $projection.ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea and $projection.ProfitCenterByOrglChange = _ProfitCenterByOrglChangeText.ProfitCenter and _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231'
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Orders in an Orgl Change view
VDM.viewType #BASIC view
ObjectModel.representativeKey OrderID view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Analytics.internalName #LOCAL view
Analytics.technicalName IFINOCORGLCHGORD view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChange orgl_change Organizational Change
KEY OrderID aufnr SettlementOrder
ProfitCenter prctr Profit Centers
ProfitCenterByOrglChange prctr_new New Profit Center
ControllingArea kokrs Org. Value
LastChangeDateTime last_changed_on Time Stamp
LastChangedByUser last_changed_by Username
OrderType _OrderID OrderType Order Type
_OrderID _OrderID
_OrglChange _OrglChange
_ProfitCenterBfrOrglChangeText _ProfitCenterBfrOrglChangeText
_ProfitCenterByOrglChangeText _ProfitCenterByOrglChangeText
_ControllingArea _ControllingArea

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 I_OrganizationalChangeOrder.
-- 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.

CREATE VIEW I_OrganizationalChangeOrder AS
SELECT
  orgl_change AS OrganizationalChange,
  aufnr AS OrderID,
  prctr AS ProfitCenter,
  prctr_new AS ProfitCenterByOrglChange,
  kokrs AS ControllingArea,
  last_changed_on AS LastChangeDateTime,
  last_changed_by AS LastChangedByUser,
  _OrderID.OrderType AS OrderType
FROM finoc_orglchgord
LEFT OUTER JOIN I_OrganizationalChange AS _OrglChange ON OrganizationalChange = _OrglChange.OrganizationalChange  -- association [1]
LEFT OUTER JOIN I_OrderBasic AS _OrderID ON OrderID = _OrderID.OrderID  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterBfrOrglChangeText ON ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea AND ProfitCenter = _ProfitCenterBfrOrglChangeText.ProfitCenter AND _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231'  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterByOrglChangeText ON ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea AND ProfitCenterByOrglChange = _ProfitCenterByOrglChangeText.ProfitCenter AND _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231'  -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
;