I_DepreciationAreaForLedger

DDL: I_DEPRECIATIONAREAFORLEDGER Type: view BASIC

Depreciation Area

I_DepreciationAreaForLedger is a Basic CDS View (Dimension) that provides data about "Depreciation Area" in SAP S/4HANA. It reads from 1 data source (P_DepreciationAreaForLedger) and exposes 31 fields with key fields CompanyCode, Ledger, AssetDepreciationArea. It has 5 associations to related views.

SAP Help Documentation

CategoryCDS Views for Master Data
Data CategoryDimension
StatusReleased
Purpose
This CDS view provides the prerequisites for answering the following business question: How many depreciation areas are defined in a company code / ledger?

Structure
Measures and attributes Some important measures and attributes are: Depreciation Area Fiscal Year Variant

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
P_DepreciationAreaForLedger P_DepreciationAreaForLedger from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[0..1] I_AssetValuationView _AssetValuationView $projection.AssetValuationView = _AssetValuationView.AssetValuationView
[0..1] I_FiscalYearVariant _FiscalYearVariant $projection.FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant
[0..*] I_DeprAreaForLedgerText _Text $projection.CompanyCode = _Text.CompanyCode and $projection.Ledger = _Text.Ledger and $projection.AssetDepreciationArea = _Text.AssetDepreciationArea

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IFIDEPRAREALDGR view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
EndUserText.label Depreciation Area view
VDM.viewType #BASIC view
ObjectModel.representativeKey AssetDepreciationArea view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger Ledger
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
AssetValuationView AssetValuationView ValView
FiscalYearVariant FiscalYearVariant FY Variant
ValidityStartFiscalYear ValidityStartFiscalYear Valid-From Year
ValidityEndFiscalYear ValidityEndFiscalYear Valid-To Year
ChartOfDepreciation
AssetRealDepreciationArea1
AssetRealDepreciationArea2
AssetRealDepreciationArea3
AssetRealDepreciationArea4
AccountingPrinciple
AssetGLPostingMethod
DerivedDeprAreaValCalcFactor1
DerivedDeprAreaValCalcFactor2
DerivedDeprAreaValCalcFactor3
DerivedDeprAreaValCalcFactor4
DerivedDeprAreaValCalcSign1
DerivedDeprAreaValCalcSign2
DerivedDeprAreaValCalcSign3
DerivedDeprAreaValCalcSign4
AcquisitionValueCalcSign
LedgerGroup
IsRealDepreciationArea IsRealDepreciationArea Real Dep. Area
IsRepresentativeLedger IsRepresentativeLedger
_CompanyCode _CompanyCode
_Ledger _Ledger
_AssetValuationView _AssetValuationView
_FiscalYearVariant _FiscalYearVariant
_Text _Text

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_DepreciationAreaForLedger.
-- 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_DepreciationAreaForLedger AS
SELECT
  CompanyCode,
  Ledger,
  AssetDepreciationArea,
  AssetValuationView,
  FiscalYearVariant,
  ValidityStartFiscalYear,
  ValidityEndFiscalYear,
  cast('' as afapl) AS ChartOfDepreciation,
  cast('00' as afabe_d) AS AssetRealDepreciationArea1,
  cast('00' as afabe_d) AS AssetRealDepreciationArea2,
  cast('00' as afabe_d) AS AssetRealDepreciationArea3,
  cast('00' as afabe_d) AS AssetRealDepreciationArea4,
  cast('' as accounting_principle) AS AccountingPrinciple,
  cast('' as buhbkt) AS AssetGLPostingMethod,
  cast('0' as anteil) AS DerivedDeprAreaValCalcFactor1,
  cast('0' as anteil) AS DerivedDeprAreaValCalcFactor2,
  cast('0' as anteil) AS DerivedDeprAreaValCalcFactor3,
  cast('0' as anteil) AS DerivedDeprAreaValCalcFactor4,
  cast('' as abvorz) AS DerivedDeprAreaValCalcSign1,
  cast('' as abvorz) AS DerivedDeprAreaValCalcSign2,
  cast('' as abvorz) AS DerivedDeprAreaValCalcSign3,
  cast('' as abvorz) AS DerivedDeprAreaValCalcSign4,
  cast('' as vzansw) AS AcquisitionValueCalcSign,
  cast('' as fagl_target_ldgrp) AS LedgerGroup,
  IsRealDepreciationArea,
  IsRepresentativeLedger
FROM P_DepreciationAreaForLedger
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [1..1]
LEFT OUTER JOIN I_AssetValuationView AS _AssetValuationView ON AssetValuationView = _AssetValuationView.AssetValuationView  -- association [0..1]
LEFT OUTER JOIN I_FiscalYearVariant AS _FiscalYearVariant ON FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant  -- association [0..1]
LEFT OUTER JOIN I_DeprAreaForLedgerText AS _Text ON CompanyCode = _Text.CompanyCode AND Ledger = _Text.Ledger AND AssetDepreciationArea = _Text.AssetDepreciationArea  -- association [0..*]
;