I_DepreciationAreaWithLedger
Depreciation Area with Ledger
I_DepreciationAreaWithLedger is a Basic CDS View that provides data about "Depreciation Area with Ledger" in SAP S/4HANA. It reads from 3 data sources (I_AssetDepreciationArea, I_Ledger, I_LedgerGroupAssignment) and exposes 26 fields with key fields ChartOfDepreciation, AssetDepreciationArea. It has 7 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetDepreciationArea | I_AssetDepreciationArea | from |
| I_Ledger | I_Ledger | left_outer |
| I_LedgerGroupAssignment | I_LedgerGroupAssignment | left_outer |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ChartOfDepreciation | _ChartOfDepreciation | $projection.ChartOfDepreciation = _ChartOfDepreciation.ChartOfDepreciation |
| [0..*] | I_AssetDepreciationAreaText | _Text | $projection.ChartOfDepreciation = _Text.ChartOfDepreciation and $projection.AssetDepreciationArea = _Text.AssetDepreciationArea |
| [0..1] | I_RealDepreciationArea | _RealDepreciationArea1 | $projection.ChartOfDepreciation = _RealDepreciationArea1.ChartOfDepreciation and $projection.AssetRealDepreciationArea1 = _RealDepreciationArea1.AssetRealDepreciationArea |
| [0..1] | I_RealDepreciationArea | _RealDepreciationArea2 | $projection.ChartOfDepreciation = _RealDepreciationArea2.ChartOfDepreciation and $projection.AssetRealDepreciationArea2 = _RealDepreciationArea2.AssetRealDepreciationArea |
| [0..1] | I_RealDepreciationArea | _RealDepreciationArea3 | $projection.ChartOfDepreciation = _RealDepreciationArea3.ChartOfDepreciation and $projection.AssetRealDepreciationArea3 = _RealDepreciationArea3.AssetRealDepreciationArea |
| [0..1] | I_RealDepreciationArea | _RealDepreciationArea4 | $projection.ChartOfDepreciation = _RealDepreciationArea4.ChartOfDepreciation and $projection.AssetRealDepreciationArea4 = _RealDepreciationArea4.AssetRealDepreciationArea |
| [0..1] | I_AccountingPrinciple | _AccountingPrinciple | $projection.AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDEPRAREALEDGER | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Depreciation Area with Ledger | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_DepreciationAreaForLedger | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfDepreciation | ChartOfDepreciation | Chart of Depr. | |
| KEY | AssetDepreciationArea | AssetDepreciationArea | Deprec. Area | |
| AssetRealDepreciationArea1 | AssetRealDepreciationArea1 | Deprec. area | ||
| AssetRealDepreciationArea2 | AssetRealDepreciationArea2 | Deprec. area | ||
| AssetRealDepreciationArea3 | AssetRealDepreciationArea3 | Deprec. area | ||
| AssetRealDepreciationArea4 | AssetRealDepreciationArea4 | Deprec. area | ||
| AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | ||
| AssetGLPostingMethod | AssetGLPostingMethod | Ind.: G/L Acct. | ||
| DerivedDeprAreaValCalcFactor1 | DerivedDeprAreaValCalcFactor1 | Divisor for Propor. | ||
| DerivedDeprAreaValCalcFactor2 | DerivedDeprAreaValCalcFactor2 | Divisor for Propor. | ||
| DerivedDeprAreaValCalcFactor3 | DerivedDeprAreaValCalcFactor3 | Divisor for Propor. | ||
| DerivedDeprAreaValCalcFactor4 | DerivedDeprAreaValCalcFactor4 | Divisor for Propor. | ||
| DerivedDeprAreaValCalcSign1 | DerivedDeprAreaValCalcSign1 | Dep. Area Sign | ||
| DerivedDeprAreaValCalcSign2 | DerivedDeprAreaValCalcSign2 | Dep. Area Sign | ||
| DerivedDeprAreaValCalcSign3 | DerivedDeprAreaValCalcSign3 | Dep. Area Sign | ||
| DerivedDeprAreaValCalcSign4 | DerivedDeprAreaValCalcSign4 | Dep. Area Sign | ||
| LedgerGroup | I_AssetDepreciationArea | LedgerGroup | Ledger Group | |
| IsRealDepreciationArea | IsRealDepreciationArea | Real Dep. Area | ||
| LedgerelseendasRepresentativeLedger | ||||
| _ChartOfDepreciation | _ChartOfDepreciation | |||
| _RealDepreciationArea1 | _RealDepreciationArea1 | |||
| _RealDepreciationArea2 | _RealDepreciationArea2 | |||
| _RealDepreciationArea3 | _RealDepreciationArea3 | |||
| _RealDepreciationArea4 | _RealDepreciationArea4 | |||
| _AccountingPrinciple | _AccountingPrinciple | |||
| _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_DepreciationAreaWithLedger.
-- 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_DepreciationAreaWithLedger AS
SELECT
ChartOfDepreciation,
AssetDepreciationArea,
AssetRealDepreciationArea1,
AssetRealDepreciationArea2,
AssetRealDepreciationArea3,
AssetRealDepreciationArea4,
AccountingPrinciple,
AssetGLPostingMethod,
DerivedDeprAreaValCalcFactor1,
DerivedDeprAreaValCalcFactor2,
DerivedDeprAreaValCalcFactor3,
DerivedDeprAreaValCalcFactor4,
DerivedDeprAreaValCalcSign1,
DerivedDeprAreaValCalcSign2,
DerivedDeprAreaValCalcSign3,
DerivedDeprAreaValCalcSign4,
I_AssetDepreciationArea.LedgerGroup AS LedgerGroup,
IsRealDepreciationArea,
case when I_LedgerGroupAssignment.LedgerGroup is not null then I_LedgerGroupAssignment.Ledger else '' end as RepresentativeLedger AS LedgerelseendasRepresentativeLedger
FROM I_AssetDepreciationArea
LEFT OUTER JOIN I_LedgerGroupAssignment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Ledger ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChartOfDepreciation AS _ChartOfDepreciation ON ChartOfDepreciation = _ChartOfDepreciation.ChartOfDepreciation -- association [1]
LEFT OUTER JOIN I_AssetDepreciationAreaText AS _Text ON ChartOfDepreciation = _Text.ChartOfDepreciation AND AssetDepreciationArea = _Text.AssetDepreciationArea -- association [0..*]
LEFT OUTER JOIN I_RealDepreciationArea AS _RealDepreciationArea1 ON ChartOfDepreciation = _RealDepreciationArea1.ChartOfDepreciation AND AssetRealDepreciationArea1 = _RealDepreciationArea1.AssetRealDepreciationArea -- association [0..1]
LEFT OUTER JOIN I_RealDepreciationArea AS _RealDepreciationArea2 ON ChartOfDepreciation = _RealDepreciationArea2.ChartOfDepreciation AND AssetRealDepreciationArea2 = _RealDepreciationArea2.AssetRealDepreciationArea -- association [0..1]
LEFT OUTER JOIN I_RealDepreciationArea AS _RealDepreciationArea3 ON ChartOfDepreciation = _RealDepreciationArea3.ChartOfDepreciation AND AssetRealDepreciationArea3 = _RealDepreciationArea3.AssetRealDepreciationArea -- association [0..1]
LEFT OUTER JOIN I_RealDepreciationArea AS _RealDepreciationArea4 ON ChartOfDepreciation = _RealDepreciationArea4.ChartOfDepreciation AND AssetRealDepreciationArea4 = _RealDepreciationArea4.AssetRealDepreciationArea -- association [0..1]
LEFT OUTER JOIN I_AccountingPrinciple AS _AccountingPrinciple ON AccountingPrinciple = _AccountingPrinciple.AccountingPrinciple -- association [0..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA