C_DeprCalcCalculationTerm
Depreciation Calculation: Calculation Terms
C_DeprCalcCalculationTerm is a Consumption CDS View that provides data about "Depreciation Calculation: Calculation Terms" in SAP S/4HANA. It reads from 2 data sources (P_DeprTraceHeader, P_DeprTraceSegmentAmount) and exposes 75 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_DeprTraceSegmentAmount | SgmntAmt | 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 Terms | 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 (75)
| 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_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 | P_DeprTraceSegmentAmount | period_to | To Period |
| FromFiscalPeriod | P_DeprTraceSegmentAmount | period_from_dt | From Period | |
| NumberOfPeriodsInFiscalYear | P_DeprTraceSegmentAmount | periods_dt | Periods | |
| NumberOfPerdsInShortenedFsclYr | P_DeprTraceSegmentAmount | periods_short_fy_dt | Short.FY Prds | |
| DepreciationKey | P_DeprTraceSegmentAmount | depr_key_dt | Dep. key | |
| DepreciationPhase | P_DeprTraceSegmentAmount | phase_dt | Phase | |
| DepreciationStartDate | P_DeprTraceSegmentAmount | start_date_dt | Start Date | |
| DepreciationFiscalPeriod | P_DeprTraceSegmentAmount | start_prd_dt | Start Period | |
| DepreciationStartYear | P_DeprTraceSegmentAmount | start_yr_dt | Start Year | |
| LeasePaymentCycle | P_DeprTraceSegmentAmount | leas_paymt_cycle_dt | Cycle | |
| NumberOfLeasePayments | P_DeprTraceSegmentAmount | leas_no_payments_dt | No.leas.paymnts | |
| InterestRateInPercent | P_DeprTraceSegmentAmount | leas_intrst_rate_dt | Annl Int. Rate | |
| PeriodicLeasePaymentAmtInDC | P_DeprTraceSegmentAmount | leas_per_payment_dt | Lease payment | |
| LeaseIsPayedInAdvance | P_DeprTraceSegmentAmount | leas_adv_payment_dt | Advance pay. | |
| UsefulLifeInPeriods | P_DeprTraceSegmentAmount | useful_life_dt | Useful Life | |
| PlannedUsefulLifeInPeriods | P_DeprTraceSegmentAmount | useful_life_prds_dt | Periods | |
| PlannedUsefulLifeInYears | P_DeprTraceSegmentAmount | useful_life_yrs_dt | Useful Life | |
| ExpiredUsefulLifeInPerds | P_DeprTraceSegmentAmount | exp_life_dt | Exp.Useful Life | |
| ExpiredUsefulLifeInTimeSegment | P_DeprTraceSegmentAmount | exp_life_seg_dt | Exp.Useful Life | |
| ChgOvrYrExpiredUsflLifeInPerds | P_DeprTraceSegmentAmount | exp_life_new_dt | Exp.Useful Life | |
| RplcmtValueAgingIndexSers | P_DeprTraceSegmentAmount | age_index_dt | Aging Index | |
| ReplacementValueIndexSers | P_DeprTraceSegmentAmount | rplcmntval_index_dt | Index series | |
| AssetRevaluationKey | P_DeprTraceSegmentAmount | revaltn_key_dt | Revaluation Key | |
| AssetScrapAmountInDspCrcy | P_DeprTraceSegmentAmount | scrapvalue_dt | Scrap value | |
| AcqnProdnCostScrapPercent | P_DeprTraceSegmentAmount | scrapvalue_prctg_dt | Scrap Value % | |
| NegativeAmountIsAllowed | P_DeprTraceSegmentAmount | neg_values_dt | Negative Val.Allowed | |
| DeprKeyChangeoverYear | P_DeprTraceSegmentAmount | changeover_yr_dt | Changeover year | |
| DeprKeyChangeoverPeriod | P_DeprTraceSegmentAmount | changeover_prd_dt | Changeover Prd | |
| ExactDayYearChangeOver | P_DeprTraceSegmentAmount | changeover_ind_dt | Indicator | |
| VariableDeprPercent | P_DeprTraceSegmentAmount | var_dep_portion_dt | Var.dep.portion | |
| ShiftOperationFactor | P_DeprTraceSegmentAmount | shift_fact_dt | Shift Factor | |
| IsShutDown | P_DeprTraceSegmentAmount | is_shutdown_dt | Shutdown | |
| AssetClass | P_DeprTraceSegmentAmount | assetclass_dt | Asset class | |
| AssetCapitalizationDate | P_DeprTraceSegmentAmount | cap_date_dt | Activated On | |
| AcquisitionValueDate | P_DeprTraceSegmentAmount | initial_acq_dt | First Acq. On | |
| FirstAcquisitionFiscalYear | P_DeprTraceSegmentAmount | initial_acq_yr_dt | Acquisition Yr | |
| FirstAcquisitionFiscalPeriod | P_DeprTraceSegmentAmount | initial_acq_prd_dt | First Acq. Per. | |
| OriginalFixedAssetValueDate | P_DeprTraceSegmentAmount | orig_acq_date_dt | Acq.Orig.Ast.On | |
| LastRetirementValueDate | P_DeprTraceSegmentAmount | last_ret_date_dt | Last retmt. on | |
| MltplShftUseShutdownInflncFctr | P_DeprTraceSegmentAmount | usage_impact_ind_dt | Influence Ind. | |
| DepreciationCalcSortKey | P_DeprTraceSegmentAmount | sort_indicator_dt | Sort Indicator | |
| DepreciationCalcStepIndex | P_DeprTraceSegmentAmount | multi_level_indx_dt | Step Index | |
| DepreciationCalcCtffIndex | P_DeprTraceSegmentAmount | cutof_value_indx_dt | CutoffVal.Index | |
| MemoValueIsNotConsidered | P_DeprTraceSegmentAmount | ignore_memval_dt | Do not take memo value into account | |
| AssetHasTimeDependentValnParam | P_DeprTraceSegmentAmount | has_tddp_dt | Time-Dependent | |
| DepreciationCalcValidToDate | P_DeprTraceSegmentAmount | to_date_of_tddp_dt | Valid To | |
| IsGroupAsset | P_DeprTraceSegmentAmount | grp_asset_assgnd_dt | GrpAsset Assgn. | |
| AssetUsageIsConsidered | P_DeprTraceSegmentAmount | use_usage_data_dt | Consider Usage | |
| SegmentGenerationIntvlInPerds | P_DeprTraceSegmentAmount | range_length_dt | Interval Length | |
| InflationCalcIsPerformed | P_DeprTraceSegmentAmount | calc_inflation_dt | Inflation | |
| DepreciationValueIsCalculated | P_DeprTraceSegmentAmount | calc_perform_dt | Calculate | |
| ValueTypeHasSamePerdIntervals | P_DeprTraceSegmentAmount | use_alignment_dt | Align Segments | |
| IndividualPerdCalcIsPerformed | P_DeprTraceSegmentAmount | use_max_periods_dt | Per Period | |
| DepreciationCalcIsToExactDate | P_DeprTraceSegmentAmount | use_days_dt | Dep. to the Day | |
| FiscalYearStartDate | P_DeprTraceSegmentAmount | first_day_in_yr_dt | First Day | |
| FiscalYearEndDate | P_DeprTraceSegmentAmount | last_day_in_yr_dt | Last Day | |
| FiscalYearIsShortened | P_DeprTraceSegmentAmount | is_shortfiscyear_dt | Shortened FYear | |
| PeriodIntervalIsAftUsflLifeEnd | P_DeprTraceSegmentAmount | is_behind_ul_dt | After UL | |
| MltplShftUseShutdownCrrtnFctr | P_DeprTraceSegmentAmount | amount_factor_dt | MSF/Shutdown | |
| UsefulLifeIsCalcdFrmChgOvrYr | P_DeprTraceSegmentAmount | use_exp_life_new_dt | From ChngYr | |
| DisplayCurrency | P_DeprTraceSegmentAmount | currency | Valuation Crcy | |
| DepreciationCalcBaseValueKey | P_DeprTraceSegmentAmount | baseval_key_dt | Base Value | |
| DeprCalcAddlBaseValKey | P_DeprTraceSegmentAmount | base_add_key_dt | Add.Base Value | |
| DepreciationCalcCalcMethod | P_DeprTraceSegmentAmount | percent_key_dt | Calc. Method | |
| DepreciationCalcExtRateInPct | P_DeprTraceSegmentAmount | percent_stated_dt | Ext. Percentage | |
| FixedAssetUsageObject | P_DeprTraceSegmentAmount | usage_object_dt | Usage Object | |
| _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_DeprCalcCalculationTerm.
-- 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: CDCCALCTERM
-- 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_DeprCalcCalculationTerm 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,
SgmntAmt.period_to AS ToFiscalPeriod,
SgmntAmt.period_from_dt AS FromFiscalPeriod,
SgmntAmt.periods_dt AS NumberOfPeriodsInFiscalYear,
SgmntAmt.periods_short_fy_dt AS NumberOfPerdsInShortenedFsclYr,
SgmntAmt.depr_key_dt AS DepreciationKey,
SgmntAmt.phase_dt AS DepreciationPhase,
SgmntAmt.start_date_dt AS DepreciationStartDate,
SgmntAmt.start_prd_dt AS DepreciationFiscalPeriod,
SgmntAmt.start_yr_dt AS DepreciationStartYear,
SgmntAmt.leas_paymt_cycle_dt AS LeasePaymentCycle,
SgmntAmt.leas_no_payments_dt AS NumberOfLeasePayments,
SgmntAmt.leas_intrst_rate_dt AS InterestRateInPercent,
SgmntAmt.leas_per_payment_dt AS PeriodicLeasePaymentAmtInDC,
SgmntAmt.leas_adv_payment_dt AS LeaseIsPayedInAdvance,
SgmntAmt.useful_life_dt AS UsefulLifeInPeriods,
SgmntAmt.useful_life_prds_dt AS PlannedUsefulLifeInPeriods,
SgmntAmt.useful_life_yrs_dt AS PlannedUsefulLifeInYears,
SgmntAmt.exp_life_dt AS ExpiredUsefulLifeInPerds,
SgmntAmt.exp_life_seg_dt AS ExpiredUsefulLifeInTimeSegment,
SgmntAmt.exp_life_new_dt AS ChgOvrYrExpiredUsflLifeInPerds,
SgmntAmt.age_index_dt AS RplcmtValueAgingIndexSers,
SgmntAmt.rplcmntval_index_dt AS ReplacementValueIndexSers,
SgmntAmt.revaltn_key_dt AS AssetRevaluationKey,
SgmntAmt.scrapvalue_dt AS AssetScrapAmountInDspCrcy,
SgmntAmt.scrapvalue_prctg_dt AS AcqnProdnCostScrapPercent,
SgmntAmt.neg_values_dt AS NegativeAmountIsAllowed,
SgmntAmt.changeover_yr_dt AS DeprKeyChangeoverYear,
SgmntAmt.changeover_prd_dt AS DeprKeyChangeoverPeriod,
SgmntAmt.changeover_ind_dt AS ExactDayYearChangeOver,
SgmntAmt.var_dep_portion_dt AS VariableDeprPercent,
SgmntAmt.shift_fact_dt AS ShiftOperationFactor,
SgmntAmt.is_shutdown_dt AS IsShutDown,
SgmntAmt.assetclass_dt AS AssetClass,
SgmntAmt.cap_date_dt AS AssetCapitalizationDate,
SgmntAmt.initial_acq_dt AS AcquisitionValueDate,
SgmntAmt.initial_acq_yr_dt AS FirstAcquisitionFiscalYear,
SgmntAmt.initial_acq_prd_dt AS FirstAcquisitionFiscalPeriod,
SgmntAmt.orig_acq_date_dt AS OriginalFixedAssetValueDate,
SgmntAmt.last_ret_date_dt AS LastRetirementValueDate,
SgmntAmt.usage_impact_ind_dt AS MltplShftUseShutdownInflncFctr,
SgmntAmt.sort_indicator_dt AS DepreciationCalcSortKey,
SgmntAmt.multi_level_indx_dt AS DepreciationCalcStepIndex,
SgmntAmt.cutof_value_indx_dt AS DepreciationCalcCtffIndex,
SgmntAmt.ignore_memval_dt AS MemoValueIsNotConsidered,
SgmntAmt.has_tddp_dt AS AssetHasTimeDependentValnParam,
SgmntAmt.to_date_of_tddp_dt AS DepreciationCalcValidToDate,
SgmntAmt.grp_asset_assgnd_dt AS IsGroupAsset,
SgmntAmt.use_usage_data_dt AS AssetUsageIsConsidered,
SgmntAmt.range_length_dt AS SegmentGenerationIntvlInPerds,
SgmntAmt.calc_inflation_dt AS InflationCalcIsPerformed,
SgmntAmt.calc_perform_dt AS DepreciationValueIsCalculated,
SgmntAmt.use_alignment_dt AS ValueTypeHasSamePerdIntervals,
SgmntAmt.use_max_periods_dt AS IndividualPerdCalcIsPerformed,
SgmntAmt.use_days_dt AS DepreciationCalcIsToExactDate,
SgmntAmt.first_day_in_yr_dt AS FiscalYearStartDate,
SgmntAmt.last_day_in_yr_dt AS FiscalYearEndDate,
SgmntAmt.is_shortfiscyear_dt AS FiscalYearIsShortened,
SgmntAmt.is_behind_ul_dt AS PeriodIntervalIsAftUsflLifeEnd,
SgmntAmt.amount_factor_dt AS MltplShftUseShutdownCrrtnFctr,
SgmntAmt.use_exp_life_new_dt AS UsefulLifeIsCalcdFrmChgOvrYr,
SgmntAmt.currency AS DisplayCurrency,
SgmntAmt.baseval_key_dt AS DepreciationCalcBaseValueKey,
SgmntAmt.base_add_key_dt AS DeprCalcAddlBaseValKey,
SgmntAmt.percent_key_dt AS DepreciationCalcCalcMethod,
SgmntAmt.percent_stated_dt AS DepreciationCalcExtRateInPct,
SgmntAmt.usage_object_dt AS FixedAssetUsageObject
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]
;
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