P_AssetLedgerFiscalYear

DDL: P_ASSETLEDGERFISCALYEAR SQL: PASTLDGRFY Type: view COMPOSITE

P_AssetLedgerFiscalYear is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AssetValuation) and exposes 6 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_AssetValuation Valuation from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_AssetLedgerQuantity _Quantity $projection.CompanyCode = _Quantity.CompanyCode and $projection.MasterFixedAsset = _Quantity.MasterFixedAsset and $projection.FixedAsset = _Quantity.FixedAsset and $projection.Ledger = _Quantity.Ledger and $projection.AssetCurrentFiscalYear = _Quantity.FiscalYear

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PASTLDGRFY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY Ledger Ledger Ledger
AssetCurrentFiscalYear
_Quantity _Quantity

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_AssetLedgerFiscalYear.
-- 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: PASTLDGRFY

CREATE VIEW P_AssetLedgerFiscalYear AS
SELECT
  CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  Ledger,
  max(AssetCurrentFiscalYear) AS AssetCurrentFiscalYear
FROM I_AssetValuation AS Valuation
LEFT OUTER JOIN P_AssetLedgerQuantity AS _Quantity ON CompanyCode = _Quantity.CompanyCode AND MasterFixedAsset = _Quantity.MasterFixedAsset AND FixedAsset = _Quantity.FixedAsset AND Ledger = _Quantity.Ledger AND AssetCurrentFiscalYear = _Quantity.FiscalYear  -- association [0..1]
;