P_DepreciationAreaByCoCode
Depreciation Area By Company Code
P_DepreciationAreaByCoCode is a Composite CDS View that provides data about "Depreciation Area By Company Code" in SAP S/4HANA. It reads from 8 data sources and exposes 21 fields with key fields CompanyCode, AssetDepreciationArea, AssetDepreciationArea. Part of development package FINS_FIS_AA_MD.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetDepreciationArea | I_AssetDepreciationArea | inner |
| I_AssetDepreciationArea | I_AssetDepreciationArea | inner |
| I_CompanyCodeAsset | I_CompanyCodeAsset | from |
| I_CompanyCodeAsset | I_CompanyCodeAsset | union_all |
| I_RealDepreciationArea | I_RealDepreciationArea | left_outer |
| I_RealDepreciationArea | I_RealDepreciationArea | left_outer |
| I_RealDepreciationAreaByCoCode | I_RealDepreciationAreaByCoCode | left_outer |
| I_RealDepreciationAreaByCoCode | I_RealDepreciationAreaByCoCode | left_outer |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIDEPRAREACOMP | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CompanyCodeAsset | CompanyCode | Receiver Company Code |
| KEY | AssetDepreciationArea | I_AssetDepreciationArea | AssetDepreciationArea | Deprec. Area |
| IsRealDepreciationArea | I_AssetDepreciationArea | IsRealDepreciationArea | Real Dep. Area | |
| ChartOfDepreciation | I_CompanyCodeAsset | ChartOfDepreciation | Chart of Depr. | |
| AccountingPrinciple | I_AssetDepreciationArea | AccountingPrinciple | AP Ledger/CoCode | |
| LedgerGroup | I_AssetDepreciationArea | LedgerGroup | Ledger Group | |
| AssetGLPostingMethod | I_AssetDepreciationArea | AssetGLPostingMethod | Ind.: G/L Acct. | |
| Currency | I_RealDepreciationAreaByCoCode | Currency | Valuation Crcy | |
| AssetAcctgLastClosedFiscalYear | I_RealDepreciationAreaByCoCode | AssetAcctgLastClosedFiscalYear | Closed FYear | |
| FinancialStatementVariant | I_RealDepreciationAreaByCoCode | FinancialStatementVariant | FS Version | |
| CompanyCodeasCompanyCode | ||||
| KEY | AssetDepreciationArea | I_AssetDepreciationArea | AssetDepreciationArea | Deprec. Area |
| IsRealDepreciationArea | I_AssetDepreciationArea | IsRealDepreciationArea | Real Dep. Area | |
| ChartOfDepreciation | I_CompanyCodeAsset | ChartOfDepreciation | Chart of Depr. | |
| AccountingPrinciple | I_AssetDepreciationArea | AccountingPrinciple | AP Ledger/CoCode | |
| LedgerGroup | I_AssetDepreciationArea | LedgerGroup | Ledger Group | |
| AssetGLPostingMethod | I_AssetDepreciationArea | AssetGLPostingMethod | Ind.: G/L Acct. | |
| Currency | I_RealDepreciationAreaByCoCode | Currency | Valuation Crcy | |
| AssetAcctgLastClosedFiscalYear | I_RealDepreciationAreaByCoCode | AssetAcctgLastClosedFiscalYear | Closed FYear | |
| FinancialStatementVariant | I_RealDepreciationAreaByCoCode | FinancialStatementVariant | FS Version | |
| CurrencyRole | I_RealDepreciationArea | CurrencyRole | Curr./Val. Type |
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_DepreciationAreaByCoCode.
-- 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: PFIDEPRAREACOMP
CREATE VIEW P_DepreciationAreaByCoCode AS
SELECT
I_CompanyCodeAsset.CompanyCode AS CompanyCode,
I_AssetDepreciationArea.AssetDepreciationArea AS AssetDepreciationArea,
I_AssetDepreciationArea.IsRealDepreciationArea AS IsRealDepreciationArea,
I_CompanyCodeAsset.ChartOfDepreciation AS ChartOfDepreciation,
I_AssetDepreciationArea.AccountingPrinciple AS AccountingPrinciple,
I_AssetDepreciationArea.LedgerGroup AS LedgerGroup,
I_AssetDepreciationArea.AssetGLPostingMethod AS AssetGLPostingMethod,
I_RealDepreciationAreaByCoCode.Currency AS Currency,
I_RealDepreciationAreaByCoCode.AssetAcctgLastClosedFiscalYear AS AssetAcctgLastClosedFiscalYear,
I_RealDepreciationAreaByCoCode.FinancialStatementVariant AS FinancialStatementVariant,
I_RealDepreciationArea.CurrencyRole AS CompanyCodeasCompanyCode,
I_RealDepreciationArea.CurrencyRole AS CurrencyRole
FROM I_CompanyCodeAsset
INNER JOIN I_AssetDepreciationArea ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RealDepreciationArea ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RealDepreciationAreaByCoCode ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_CompanyCodeAsset
;
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