I_MaintenanceOrderCostBalance

DDL: I_MAINTENANCEORDERCOSTBALANCE Type: view_entity COMPOSITE

Calculates Balance per Ledger

I_MaintenanceOrderCostBalance is a Composite CDS View that provides data about "Calculates Balance per Ledger" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 7 fields with key fields Ledger, MaintenanceOrder, Currency. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemRawData ActualCosts from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Currency _Currency $projection.GlobalCurrency = _Currency.Currency or $projection.CompanyCodeCurrency = _Currency.Currency
[0..1] I_MaintenanceOrder _MaintenanceOrder $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder

Annotations (7)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Calculates Balance per Ledger view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_GLAccountLineItemRawData SourceLedger Source Ledger
KEY MaintenanceOrder I_GLAccountLineItemRawData OrderID Order ID
KEY Currency _Currency Currency Valuation Crcy
GlobalCurrency I_GLAccountLineItemRawData GlobalCurrency GM Billing Element: Global Currency
CompanyCodeCurrency I_GLAccountLineItemRawData CompanyCodeCurrency Local Currency
_MaintenanceOrder _MaintenanceOrder
_Currency _Currency

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_MaintenanceOrderCostBalance.
-- 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_MaintenanceOrderCostBalance AS
SELECT
  ActualCosts.SourceLedger AS Ledger,
  ActualCosts.OrderID AS MaintenanceOrder,
  _Currency.Currency AS Currency,
  ActualCosts.GlobalCurrency AS GlobalCurrency,
  ActualCosts.CompanyCodeCurrency AS CompanyCodeCurrency
FROM I_GLAccountLineItemRawData AS ActualCosts
LEFT OUTER JOIN I_Currency AS _Currency ON GlobalCurrency = _Currency.Currency OR CompanyCodeCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder  -- association [0..1]
;