I_DepreciationAreaForLedger
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
| Category | CDS Views for Master Data |
|---|---|
| Data Category | Dimension |
| Status | Released |
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
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
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_DepreciationAreaForLedger | P_DepreciationAreaForLedger | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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