C_DeprCalcCalculationDetail

DDL: C_DEPRCALCCALCULATIONDETAIL SQL: CDCCALCDET Type: view_entity CONSUMPTION

Depreciation Calculation: Calculation Details

C_DeprCalcCalculationDetail is a Consumption CDS View that provides data about "Depreciation Calculation: Calculation Details" in SAP S/4HANA. It reads from 2 data sources (P_DeprTraceHeader, P_DeprTraceSegmentAmount) and exposes 63 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, FiscalYear. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_DeprTraceHeader Header from
P_DeprTraceSegmentAmount SgmntAmt inner

Parameters (8)

NameTypeDefault
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)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Depreciation Calculation: Calculation Details 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 (63)

KeyFieldSource TableSource FieldDescription
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_DeprTraceSegmentAmount depr_area Deprec. Area
KEY FiscalYear P_DeprTraceSegmentAmount fisc_year Year
KEY DepreciationCalcValueType P_DeprTraceSegmentAmount amount_type Value Type
KEY CurrencyRole P_DeprTraceSegmentAmount curr_type Currency Type
KEY ToFiscalPeriod
DisplayCurrency P_DeprTraceSegmentAmount currency Valuation Crcy
DeprCalcBaseAmtInDC P_DeprTraceSegmentAmount basevalue Base Value
PYABaseAmountInDspCurrency P_DeprTraceSegmentAmount baseval_prev BaseVal-PYA
DepreciationCalcPeriodFactor P_DeprTraceSegmentAmount perfactor_raw Period Factor
DeprCalcBaseValuePercent P_DeprTraceSegmentAmount percent_raw Percent
CalculatedAmountInDspCrcy P_DeprTraceSegmentAmount amount Value Amount
PYACalculatedAmountInDspCrcy P_DeprTraceSegmentAmount amount_prev Calc. Amt PY
DepreciationCalcAmtIsSkipped P_DeprTraceSegmentAmount amount_skipped Amount Skipped
DepreciationCalcCtffAmtInDC P_DeprTraceSegmentAmount minvalue Cutoff Value
NetBookValueCalcIsBelowZero P_DeprTraceSegmentAmount no_minval Below Zero
CurrentYearAcqnProdnAmtInDC P_DeprTraceSegmentAmount cur_apc Current Yr APC
CurrentYearRplcmtRevalAmtInDC P_DeprTraceSegmentAmount cur_revl CY Rev.Rep.Val.
CurrentYearInvmtGrantAmtInDC P_DeprTraceSegmentAmount cur_invs CurrYrInv.Grant
CurrentYearOrdnryDeprAmtInDC P_DeprTraceSegmentAmount cur_depr_o Curr.Yr ODep.
CurrentYearSpecialDeprAmtInDC P_DeprTraceSegmentAmount cur_depr_s Curr.Yr SDep.
CurrentYearUnplndDeprAmtInDC P_DeprTraceSegmentAmount cur_depr_u CurrYr UDep.
CurrentYearTransfOfRsrvAmtInDC P_DeprTraceSegmentAmount cur_resv CurrYr Reserves
CurrentYearInterestAmtInDC P_DeprTraceSegmentAmount cur_intr Interest CY
CYrRevaluationODeprAmtInDC P_DeprTraceSegmentAmount cur_revl_d CY Reval. ODep.
CurrentYearDownPaymentAmtInDC P_DeprTraceSegmentAmount cur_downp CurrYr Down Pmt
PYAAcqnProdnAmtInDspCrcy P_DeprTraceSegmentAmount prev_prev_apc APC - PYA
FYSPrptnRevalRplcmtAmtInDC P_DeprTraceSegmentAmount prev_prev_revl Pr.RevRepVal.PY
FYStrtPYAInvmtGrantAmtInDC P_DeprTraceSegmentAmount prev_prev_invs Inv.Grant PY
FYStrtPYAPrptnlODeprAmtInDC P_DeprTraceSegmentAmount prev_prev_depr_o Pr.ODep. PY
FYStrtPYAPrptnlSDeprAmtInDC P_DeprTraceSegmentAmount prev_prev_depr_s Pr.SDep. PY
FYStrtPYAPrptnlUDeprAmtInDC P_DeprTraceSegmentAmount prev_prev_depr_u Pr.UDep. PY
FYStrtPYAPrptnlReserveAmtInDC P_DeprTraceSegmentAmount prev_prev_resv Pr.Reserves PY
FYStrtPYAPrptnlInterestAmtInDC P_DeprTraceSegmentAmount prev_prev_intr Prop.Int. PY
FYSPrptnlRevalODeprAmtInDC P_DeprTraceSegmentAmount prev_prev_revl_d Pr.Rev.ODep. PY
FYStrtPYADownPaytAmtInDC P_DeprTraceSegmentAmount prev_prev_downp Down Pmt PY
CurrentYearPYAAcqnProdnAmtInDC P_DeprTraceSegmentAmount prev_cur_apc APC - CY Acq.
CurrentYearPrptnlRRVAmtInDC P_DeprTraceSegmentAmount prev_cur_revl Prop.Rep.Val.CY
CurrentYrPYAInvmtGrantAmtInDC P_DeprTraceSegmentAmount prev_cur_invs Inv.Grant- CYA
CurYrPYAPrptnlODeprAmtInDC P_DeprTraceSegmentAmount prev_cur_depr_o Prop.ODep. CY
CurYrPYAPrptnlSDeprAmtInDC P_DeprTraceSegmentAmount prev_cur_depr_s Prop.SDep. CY
CurYrPYAPrptnlUDeprAmtInDC P_DeprTraceSegmentAmount prev_cur_depr_u Prop.UDep. CY
CurrentYrPrptnlReserveAmtInDC P_DeprTraceSegmentAmount prev_cur_resv Prop.Reserve CY
CurYrPYAPrptnlInterestAmtInDC P_DeprTraceSegmentAmount prev_cur_intr Prop. Int. CY
CurYrPrptnlODeprRevalAmtInDC P_DeprTraceSegmentAmount prev_cur_revl_d Pr.RevalODep.CY
CurrentYrPYADownPaymentAmtInDC P_DeprTraceSegmentAmount prev_cur_downp Down Pmt CY
DeprCalcAddlBaseAmtInDspCrcy P_DeprTraceSegmentAmount base_add Add.Base Value
PYAAdditionalBaseAmtInDC P_DeprTraceSegmentAmount base_add_prev AdBsValPYA
PYACutoffAmountInDspCrcy P_DeprTraceSegmentAmount minval_prev CutoffVal.PYA
CtffValueIsCalculated P_DeprTraceSegmentAmount minval_perc_used CutoffValPerc.
NetBookValueAmtInDspCrcy P_DeprTraceSegmentAmount netvalue Net Value
PYANetBookValueAmtInDC P_DeprTraceSegmentAmount netval_prev NBV - PYA
AccmltdAcqnProductionAmount P_DeprTraceSegmentAmount sum_apc Total APC
PYAAccmltdAcqnProdnAmtInDC P_DeprTraceSegmentAmount sum_apc_prev Total APC - PYA
AdditionalAmountInDC P_DeprTraceSegmentAmount am_add Add. Amt
PYAAdditionalAmountInDspCrcy P_DeprTraceSegmentAmount am_add_prev Add. Amt PYA
Sign P_DeprTraceSegmentAmount sign Type of SIGN component in row type of a Ranges type
DeprCalcReducedPerdVal P_DeprTraceSegmentAmount perseg_reduced Reduced Period
AmountIsReduced P_DeprTraceSegmentAmount amount_reduced Amount Reduced
_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_DeprCalcCalculationDetail.
-- 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: CDCCALCDET
-- 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_DeprCalcCalculationDetail AS
SELECT
  Header.comp_code AS CompanyCode,
  Header.asset_no AS MasterFixedAsset,
  Header.asset_subno AS FixedAsset,
  SgmntAmt.depr_area AS AssetDepreciationArea,
  SgmntAmt.fisc_year AS FiscalYear,
  SgmntAmt.amount_type AS DepreciationCalcValueType,
  SgmntAmt.curr_type AS CurrencyRole,
  cast(SgmntAmt.period_to as faa_md_dt_period_to preserving type) AS ToFiscalPeriod,
  SgmntAmt.currency AS DisplayCurrency,
  SgmntAmt.basevalue AS DeprCalcBaseAmtInDC,
  SgmntAmt.baseval_prev AS PYABaseAmountInDspCurrency,
  SgmntAmt.perfactor_raw AS DepreciationCalcPeriodFactor,
  SgmntAmt.percent_raw AS DeprCalcBaseValuePercent,
  SgmntAmt.amount AS CalculatedAmountInDspCrcy,
  SgmntAmt.amount_prev AS PYACalculatedAmountInDspCrcy,
  SgmntAmt.amount_skipped AS DepreciationCalcAmtIsSkipped,
  SgmntAmt.minvalue AS DepreciationCalcCtffAmtInDC,
  SgmntAmt.no_minval AS NetBookValueCalcIsBelowZero,
  SgmntAmt.cur_apc AS CurrentYearAcqnProdnAmtInDC,
  SgmntAmt.cur_revl AS CurrentYearRplcmtRevalAmtInDC,
  SgmntAmt.cur_invs AS CurrentYearInvmtGrantAmtInDC,
  SgmntAmt.cur_depr_o AS CurrentYearOrdnryDeprAmtInDC,
  SgmntAmt.cur_depr_s AS CurrentYearSpecialDeprAmtInDC,
  SgmntAmt.cur_depr_u AS CurrentYearUnplndDeprAmtInDC,
  SgmntAmt.cur_resv AS CurrentYearTransfOfRsrvAmtInDC,
  SgmntAmt.cur_intr AS CurrentYearInterestAmtInDC,
  SgmntAmt.cur_revl_d AS CYrRevaluationODeprAmtInDC,
  SgmntAmt.cur_downp AS CurrentYearDownPaymentAmtInDC,
  SgmntAmt.prev_prev_apc AS PYAAcqnProdnAmtInDspCrcy,
  SgmntAmt.prev_prev_revl AS FYSPrptnRevalRplcmtAmtInDC,
  SgmntAmt.prev_prev_invs AS FYStrtPYAInvmtGrantAmtInDC,
  SgmntAmt.prev_prev_depr_o AS FYStrtPYAPrptnlODeprAmtInDC,
  SgmntAmt.prev_prev_depr_s AS FYStrtPYAPrptnlSDeprAmtInDC,
  SgmntAmt.prev_prev_depr_u AS FYStrtPYAPrptnlUDeprAmtInDC,
  SgmntAmt.prev_prev_resv AS FYStrtPYAPrptnlReserveAmtInDC,
  SgmntAmt.prev_prev_intr AS FYStrtPYAPrptnlInterestAmtInDC,
  SgmntAmt.prev_prev_revl_d AS FYSPrptnlRevalODeprAmtInDC,
  SgmntAmt.prev_prev_downp AS FYStrtPYADownPaytAmtInDC,
  SgmntAmt.prev_cur_apc AS CurrentYearPYAAcqnProdnAmtInDC,
  SgmntAmt.prev_cur_revl AS CurrentYearPrptnlRRVAmtInDC,
  SgmntAmt.prev_cur_invs AS CurrentYrPYAInvmtGrantAmtInDC,
  SgmntAmt.prev_cur_depr_o AS CurYrPYAPrptnlODeprAmtInDC,
  SgmntAmt.prev_cur_depr_s AS CurYrPYAPrptnlSDeprAmtInDC,
  SgmntAmt.prev_cur_depr_u AS CurYrPYAPrptnlUDeprAmtInDC,
  SgmntAmt.prev_cur_resv AS CurrentYrPrptnlReserveAmtInDC,
  SgmntAmt.prev_cur_intr AS CurYrPYAPrptnlInterestAmtInDC,
  SgmntAmt.prev_cur_revl_d AS CurYrPrptnlODeprRevalAmtInDC,
  SgmntAmt.prev_cur_downp AS CurrentYrPYADownPaymentAmtInDC,
  SgmntAmt.base_add AS DeprCalcAddlBaseAmtInDspCrcy,
  SgmntAmt.base_add_prev AS PYAAdditionalBaseAmtInDC,
  SgmntAmt.minval_prev AS PYACutoffAmountInDspCrcy,
  SgmntAmt.minval_perc_used AS CtffValueIsCalculated,
  SgmntAmt.netvalue AS NetBookValueAmtInDspCrcy,
  SgmntAmt.netval_prev AS PYANetBookValueAmtInDC,
  SgmntAmt.sum_apc AS AccmltdAcqnProductionAmount,
  SgmntAmt.sum_apc_prev AS PYAAccmltdAcqnProdnAmtInDC,
  SgmntAmt.am_add AS AdditionalAmountInDC,
  SgmntAmt.am_add_prev AS PYAAdditionalAmountInDspCrcy,
  SgmntAmt.sign AS Sign,
  SgmntAmt.perseg_reduced AS DeprCalcReducedPerdVal,
  SgmntAmt.amount_reduced AS AmountIsReduced
FROM P_DeprTraceHeader AS Header
INNER JOIN P_DeprTraceSegmentAmount AS SgmntAmt 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]
;