C_DeprCalcCalculationResult
Depreciation Calculation: Calculation Result
C_DeprCalcCalculationResult is a Consumption CDS View that provides data about "Depreciation Calculation: Calculation Result" in SAP S/4HANA. It reads from 2 data sources (P_DeprTraceHeader, P_DeprTraceYearAmount) and exposes 67 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, FiscalYear. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_DeprTraceHeader | Header | from |
| P_DeprTraceYearAmount | YearAmt | inner |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| P_MasterFixedAsset | anln1 | |
| P_FixedAsset | anln2 | |
| P_CompanyCode | bukrs | |
| P_AssetDepreciationArea | fis_afabe | |
| P_Ledger | fins_ledger | |
| P_FiscalYear | fis_gjahr | |
| P_FixedAssetDraftUUID | sdraft_key | |
| P_CurrencyRole | fis_curtp |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FixedAsset | _FixedAsset | $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset |
| [0..1] | I_Currency | _DisplayCurrency | $projection.DisplayCurrency = _DisplayCurrency.Currency |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Depreciation Calculation: Calculation Result | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (67)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_DeprTraceHeader | comp_code | Procuring Comp. Cde |
| KEY | MasterFixedAsset | P_DeprTraceHeader | asset_no | Asset |
| KEY | FixedAsset | P_DeprTraceHeader | asset_subno | Sub-number |
| KEY | AssetDepreciationArea | P_DeprTraceYearAmount | depr_area | Deprec. Area |
| KEY | FiscalYear | P_DeprTraceYearAmount | fisc_year | Year |
| KEY | CurrencyRole | P_DeprTraceYearAmount | curr_type | Currency Type |
| DisplayCurrency | P_DeprTraceYearAmount | currency | Valuation Crcy | |
| FYSAccmltdAcqnProdnAmtInDC | P_DeprTraceYearAmount | cum_apc | Total APC PY | |
| FYSAccmltdRRVAmtInDspCrcy | P_DeprTraceYearAmount | cum_revl | Tot.RevRepValPY | |
| FYSAccmltdInvmtGrantAmtInDC | P_DeprTraceYearAmount | cum_invs | Tot.Inv.GrantPY | |
| FYSAccmltdOrdnryDeprAmtInDC | P_DeprTraceYearAmount | cum_depr_o | Tot. ODep. PY | |
| FYSAccmltdSpecialDeprAmtInDC | P_DeprTraceYearAmount | cum_depr_s | Tot.Spec.Dep.PY | |
| FYSAccmltdUnplndDeprAmtInDC | P_DeprTraceYearAmount | cum_depr_u | Tot.Unpl.Dep.PY | |
| FYSAccmltdTransfOfRsrvAmtInDC | P_DeprTraceYearAmount | cum_resv | Tot.Reserves PY | |
| FYSAccmltdInterestAmountInDC | P_DeprTraceYearAmount | cum_intr | Total Int. PY | |
| FYSAccmltdODeprRevalAmtInDC | P_DeprTraceYearAmount | cum_revl_d | TotReval.ODepPY | |
| FYSAccmltdDownPaymentAmtInDC | P_DeprTraceYearAmount | cum_downp | Tot.DownPmts PY | |
| CurrentYearAcqnProdnAmtInDC | P_DeprTraceYearAmount | cur_apc | Current Yr APC | |
| CurrentYearRplcmtRevalAmtInDC | P_DeprTraceYearAmount | cur_revl | CY Rev.Rep.Val. | |
| CurrentYearInvmtGrantAmtInDC | P_DeprTraceYearAmount | cur_invs | CurrYrInv.Grant | |
| CurrentYearOrdnryDeprAmtInDC | P_DeprTraceYearAmount | cur_depr_o | Curr.Yr ODep. | |
| CurrentYearSpecialDeprAmtInDC | P_DeprTraceYearAmount | cur_depr_s | Curr.Yr SDep. | |
| CurrentYearUnplndDeprAmtInDC | P_DeprTraceYearAmount | cur_depr_u | CurrYr UDep. | |
| CurrentYearTransfOfRsrvAmtInDC | P_DeprTraceYearAmount | cur_resv | CurrYr Reserves | |
| CurrentYearInterestAmtInDC | P_DeprTraceYearAmount | cur_intr | Interest CY | |
| CYrRevaluationODeprAmtInDC | P_DeprTraceYearAmount | cur_revl_d | CY Reval. ODep. | |
| CurrentYearDownPaymentAmtInDC | P_DeprTraceYearAmount | cur_downp | CurrYr Down Pmt | |
| FsclYrStrtPYAAcqnProdnAmtInDC | P_DeprTraceYearAmount | prev_prev_apc | APC - PYA | |
| FYSPrptnRevalRplcmtAmtInDC | P_DeprTraceYearAmount | prev_prev_revl | Pr.RevRepVal.PY | |
| FYStrtPYAInvmtGrantAmtInDC | P_DeprTraceYearAmount | prev_prev_invs | Inv.Grant PY | |
| FYStrtPYAPrptnlODeprAmtInDC | P_DeprTraceYearAmount | prev_prev_depr_o | Pr.ODep. PY | |
| FYStrtPYAPrptnlSDeprAmtInDC | P_DeprTraceYearAmount | prev_prev_depr_s | Pr.SDep. PY | |
| FYStrtPYAPrptnlUDeprAmtInDC | P_DeprTraceYearAmount | prev_prev_depr_u | Pr.UDep. PY | |
| FYStrtPYAPrptnlReserveAmtInDC | P_DeprTraceYearAmount | prev_prev_resv | Pr.Reserves PY | |
| FYStrtPYAPrptnlInterestAmtInDC | P_DeprTraceYearAmount | prev_prev_intr | Prop.Int. PY | |
| FYSPrptnlRevalODeprAmtInDC | P_DeprTraceYearAmount | prev_prev_revl_d | Pr.Rev.ODep. PY | |
| FYStrtPYADownPaytAmtInDC | P_DeprTraceYearAmount | prev_prev_downp | Down Pmt PY | |
| CurrentYearPrptnlRRVAmtInDC | P_DeprTraceYearAmount | prev_cur_revl | Prop.Rep.Val.CY | |
| CurYrPYAPrptnlODeprAmtInDC | P_DeprTraceYearAmount | prev_cur_depr_o | Prop.ODep. CY | |
| CurYrPYAPrptnlSDeprAmtInDC | P_DeprTraceYearAmount | prev_cur_depr_s | Prop.SDep. CY | |
| CurYrPYAPrptnlUDeprAmtInDC | P_DeprTraceYearAmount | prev_cur_depr_u | Prop.UDep. CY | |
| CurYrPYAPrptnlInterestAmtInDC | P_DeprTraceYearAmount | prev_cur_intr | Prop. Int. CY | |
| CurYrPrptnlODeprRevalAmtInDC | P_DeprTraceYearAmount | prev_cur_revl_d | Pr.RevalODep.CY | |
| AccmltdAcqnProductionAmount | P_DeprTraceYearAmount | total_apc | Total APC | |
| AccmltdReplacementRevalAmtInDC | P_DeprTraceYearAmount | total_revl | Total Rev.RV | |
| AccmltdInvestmentGrantAmtInDC | P_DeprTraceYearAmount | total_invs | Total Inv.Grant | |
| AccumulatedOrdinaryDeprAmount | P_DeprTraceYearAmount | total_depr_o | Total ODep. | |
| AccumulatedSpecialDeprAmount | P_DeprTraceYearAmount | total_depr_s | Total SDep. | |
| AccumulatedUnplannedDeprAmount | P_DeprTraceYearAmount | total_depr_u | Total UDep. | |
| AccumulatedTrnsfdRsrvAmtInDC | P_DeprTraceYearAmount | total_resv | Total Trns.Res. | |
| AccumulatedInterestAmountInDC | P_DeprTraceYearAmount | total_intr | Total Interest | |
| AccmltdRevalOrdinaryDeprAmount | P_DeprTraceYearAmount | total_revl_d | Total Rev.ODep. | |
| AccumulatedDownPaymentAmtInDC | P_DeprTraceYearAmount | total_downp | Total Down Pmt | |
| PYAAcqnProdnAmtInDspCrcy | P_DeprTraceYearAmount | prev_apc | APC PY | |
| PYARevalRplcmtValueAmountInDC | P_DeprTraceYearAmount | prev_revl | Rev.Rep.Val. PY | |
| PYAInvestmentGrantAmtInDC | P_DeprTraceYearAmount | prev_invs | Inv.Grant PY | |
| PYAOrdinaryDeprAmtInDspCrcy | P_DeprTraceYearAmount | prev_depr_o | Plan ODep PY | |
| PYASpecialDeprAmtInDspCrcy | P_DeprTraceYearAmount | prev_depr_s | Plan SDep PY | |
| PYAUnplannedDeprAmtInDspCrcy | P_DeprTraceYearAmount | prev_depr_u | Plan UDep PY | |
| PYATransferredReserveAmtInDC | P_DeprTraceYearAmount | prev_resv | Reserves PY | |
| PYAInterestAmountInDspCrcy | P_DeprTraceYearAmount | prev_intr | Interest PY | |
| PYAOrdnryDeprPlndRevalAmtInDC | P_DeprTraceYearAmount | prev_revl_d | Reval.ODep. PY | |
| PYADownPaymentAmountInDspCrcy | P_DeprTraceYearAmount | prev_downp | Down Pmt PY | |
| OrdinaryDeprReducedAmtInDC | P_DeprTraceYearAmount | shortened_depr_o | ODep. Reduction | |
| SpecialDeprReducedAmtInDC | P_DeprTraceYearAmount | shortened_depr_s | SDep. Reduction | |
| _FixedAsset | _FixedAsset | |||
| _DisplayCurrency | _DisplayCurrency |
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 C_DeprCalcCalculationResult.
-- 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: CDCCALCRSLT
-- Parameters: P_MasterFixedAsset : anln1, P_FixedAsset : anln2, P_CompanyCode : bukrs, P_AssetDepreciationArea : fis_afabe, P_Ledger : fins_ledger, P_FiscalYear : fis_gjahr, P_FixedAssetDraftUUID : sdraft_key, P_CurrencyRole : fis_curtp
CREATE VIEW C_DeprCalcCalculationResult AS
SELECT
Header.comp_code AS CompanyCode,
Header.asset_no AS MasterFixedAsset,
Header.asset_subno AS FixedAsset,
YearAmt.depr_area AS AssetDepreciationArea,
YearAmt.fisc_year AS FiscalYear,
YearAmt.curr_type AS CurrencyRole,
YearAmt.currency AS DisplayCurrency,
YearAmt.cum_apc AS FYSAccmltdAcqnProdnAmtInDC,
YearAmt.cum_revl AS FYSAccmltdRRVAmtInDspCrcy,
YearAmt.cum_invs AS FYSAccmltdInvmtGrantAmtInDC,
YearAmt.cum_depr_o AS FYSAccmltdOrdnryDeprAmtInDC,
YearAmt.cum_depr_s AS FYSAccmltdSpecialDeprAmtInDC,
YearAmt.cum_depr_u AS FYSAccmltdUnplndDeprAmtInDC,
YearAmt.cum_resv AS FYSAccmltdTransfOfRsrvAmtInDC,
YearAmt.cum_intr AS FYSAccmltdInterestAmountInDC,
YearAmt.cum_revl_d AS FYSAccmltdODeprRevalAmtInDC,
YearAmt.cum_downp AS FYSAccmltdDownPaymentAmtInDC,
YearAmt.cur_apc AS CurrentYearAcqnProdnAmtInDC,
YearAmt.cur_revl AS CurrentYearRplcmtRevalAmtInDC,
YearAmt.cur_invs AS CurrentYearInvmtGrantAmtInDC,
YearAmt.cur_depr_o AS CurrentYearOrdnryDeprAmtInDC,
YearAmt.cur_depr_s AS CurrentYearSpecialDeprAmtInDC,
YearAmt.cur_depr_u AS CurrentYearUnplndDeprAmtInDC,
YearAmt.cur_resv AS CurrentYearTransfOfRsrvAmtInDC,
YearAmt.cur_intr AS CurrentYearInterestAmtInDC,
YearAmt.cur_revl_d AS CYrRevaluationODeprAmtInDC,
YearAmt.cur_downp AS CurrentYearDownPaymentAmtInDC,
YearAmt.prev_prev_apc AS FsclYrStrtPYAAcqnProdnAmtInDC,
YearAmt.prev_prev_revl AS FYSPrptnRevalRplcmtAmtInDC,
YearAmt.prev_prev_invs AS FYStrtPYAInvmtGrantAmtInDC,
YearAmt.prev_prev_depr_o AS FYStrtPYAPrptnlODeprAmtInDC,
YearAmt.prev_prev_depr_s AS FYStrtPYAPrptnlSDeprAmtInDC,
YearAmt.prev_prev_depr_u AS FYStrtPYAPrptnlUDeprAmtInDC,
YearAmt.prev_prev_resv AS FYStrtPYAPrptnlReserveAmtInDC,
YearAmt.prev_prev_intr AS FYStrtPYAPrptnlInterestAmtInDC,
YearAmt.prev_prev_revl_d AS FYSPrptnlRevalODeprAmtInDC,
YearAmt.prev_prev_downp AS FYStrtPYADownPaytAmtInDC,
YearAmt.prev_cur_revl AS CurrentYearPrptnlRRVAmtInDC,
YearAmt.prev_cur_depr_o AS CurYrPYAPrptnlODeprAmtInDC,
YearAmt.prev_cur_depr_s AS CurYrPYAPrptnlSDeprAmtInDC,
YearAmt.prev_cur_depr_u AS CurYrPYAPrptnlUDeprAmtInDC,
YearAmt.prev_cur_intr AS CurYrPYAPrptnlInterestAmtInDC,
YearAmt.prev_cur_revl_d AS CurYrPrptnlODeprRevalAmtInDC,
YearAmt.total_apc AS AccmltdAcqnProductionAmount,
YearAmt.total_revl AS AccmltdReplacementRevalAmtInDC,
YearAmt.total_invs AS AccmltdInvestmentGrantAmtInDC,
YearAmt.total_depr_o AS AccumulatedOrdinaryDeprAmount,
YearAmt.total_depr_s AS AccumulatedSpecialDeprAmount,
YearAmt.total_depr_u AS AccumulatedUnplannedDeprAmount,
YearAmt.total_resv AS AccumulatedTrnsfdRsrvAmtInDC,
YearAmt.total_intr AS AccumulatedInterestAmountInDC,
YearAmt.total_revl_d AS AccmltdRevalOrdinaryDeprAmount,
YearAmt.total_downp AS AccumulatedDownPaymentAmtInDC,
YearAmt.prev_apc AS PYAAcqnProdnAmtInDspCrcy,
YearAmt.prev_revl AS PYARevalRplcmtValueAmountInDC,
YearAmt.prev_invs AS PYAInvestmentGrantAmtInDC,
YearAmt.prev_depr_o AS PYAOrdinaryDeprAmtInDspCrcy,
YearAmt.prev_depr_s AS PYASpecialDeprAmtInDspCrcy,
YearAmt.prev_depr_u AS PYAUnplannedDeprAmtInDspCrcy,
YearAmt.prev_resv AS PYATransferredReserveAmtInDC,
YearAmt.prev_intr AS PYAInterestAmountInDspCrcy,
YearAmt.prev_revl_d AS PYAOrdnryDeprPlndRevalAmtInDC,
YearAmt.prev_downp AS PYADownPaymentAmountInDspCrcy,
YearAmt.shortened_depr_o AS OrdinaryDeprReducedAmtInDC,
YearAmt.shortened_depr_s AS SpecialDeprReducedAmtInDC
FROM P_DeprTraceHeader AS Header
INNER JOIN P_DeprTraceYearAmount AS YearAmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency -- association [0..1]
;
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