C_DeprCalcCalculationParameter
Depreciation Calculation: Calculation Parameters
C_DeprCalcCalculationParameter is a Consumption CDS View that provides data about "Depreciation Calculation: Calculation Parameters" in SAP S/4HANA. It reads from 2 data sources (P_DeprTraceHeader, P_DeprTraceSegmentAmount) and exposes 38 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, FiscalYear. It has 2 associations to related views. Part of development package FINS_FAA_MD_VALUES.
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 Parameters | 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 (38)
| 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 |
| DisplayCurrency | P_DeprTraceSegmentAmount | currency | Valuation Crcy | |
| DepreciationCalcBaseValueKey | P_DeprTraceSegmentAmount | baseval_key | Base Value | |
| DeprCalcAddlBaseValKey | P_DeprTraceSegmentAmount | base_add_key | Add.Base Value | |
| DepreciationCalcMaxBaseAmtInDC | P_DeprTraceSegmentAmount | baseval_max | Max.Base Val. | |
| DepreciationCalcBaseValueFctr | P_DeprTraceSegmentAmount | baseval_factor | Base.Val.Red. | |
| DeprCalcReducnOfBaseAmountInDC | P_DeprTraceSegmentAmount | baseval_fact_add | Base.Val.Red. | |
| DepreciationCalcExtBaseAmtInDC | P_DeprTraceSegmentAmount | baseval_stated | Ext.Base Val. | |
| DepreciationCalcCalcMethod | P_DeprTraceSegmentAmount | percent_key | Calc. Method | |
| DepreciationCalcExtRateInPct | P_DeprTraceSegmentAmount | percent_stated | Ext. Percentage | |
| DeprCalcPercentageFctr | P_DeprTraceSegmentAmount | percent_factor | Perc.Fact. | |
| DepreciationCalcMaxRateInPct | P_DeprTraceSegmentAmount | percent_max | Max. Percentage | |
| DepreciationCalcMinRateInPct | P_DeprTraceSegmentAmount | percent_min | Min.Perc. | |
| RoundingDecimalPlaces | P_DeprTraceSegmentAmount | percent_round | No. of Places | |
| MltplShftUseShutdownCrrtnFctr | P_DeprTraceSegmentAmount | amount_factor | Val.Coefficient | |
| MaximumDepreciationAmountInDC | P_DeprTraceSegmentAmount | amount_max | Max.Amount | |
| DepreciationCalcAmtIsCumulated | P_DeprTraceSegmentAmount | use_year_amount | Cumulate Values | |
| DepreciationCalcAmtIsSkipped | P_DeprTraceSegmentAmount | skip_amount | Skip Amount | |
| DepreciationCalcAmtIsChecked | P_DeprTraceSegmentAmount | check_amount | Correct Amount | |
| DeprCalcCtffValRateInPct | P_DeprTraceSegmentAmount | minval_percent | CutoffPerc | |
| AssetScrapAmountInDspCrcy | P_DeprTraceSegmentAmount | minval_stated | Scrap Value | |
| DepreciationCalcMemoAmountInDC | P_DeprTraceSegmentAmount | minval_memo | Memo Value | |
| DepreciationCalcRoundingMethod | P_DeprTraceSegmentAmount | minval_rndmethod | Rounding Method | |
| ScrapValNmbrOfRndngDcmlPlaces | P_DeprTraceSegmentAmount | minval_rnddecim | No. of Places | |
| AssetScrapValueIsDeducted | P_DeprTraceSegmentAmount | subtract_minval | Scrap Val. Ded. | |
| NetBookValueCalcIsBelowZero | P_DeprTraceSegmentAmount | no_minval | Below Zero | |
| NetBookToleranceAmountInDC | P_DeprTraceSegmentAmount | minval_tolerance | NBV Tolerance | |
| CutOffValueKey | P_DeprTraceSegmentAmount | minval_key | Cutoff Value | |
| RoundingIsDisabled | P_DeprTraceSegmentAmount | rounding_off | Do Not Round | |
| _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_DeprCalcCalculationParameter.
-- 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: CDCCALCPARM
-- 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_DeprCalcCalculationParameter 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.currency AS DisplayCurrency,
SgmntAmt.baseval_key AS DepreciationCalcBaseValueKey,
SgmntAmt.base_add_key AS DeprCalcAddlBaseValKey,
SgmntAmt.baseval_max AS DepreciationCalcMaxBaseAmtInDC,
SgmntAmt.baseval_factor AS DepreciationCalcBaseValueFctr,
SgmntAmt.baseval_fact_add AS DeprCalcReducnOfBaseAmountInDC,
SgmntAmt.baseval_stated AS DepreciationCalcExtBaseAmtInDC,
SgmntAmt.percent_key AS DepreciationCalcCalcMethod,
SgmntAmt.percent_stated AS DepreciationCalcExtRateInPct,
SgmntAmt.percent_factor AS DeprCalcPercentageFctr,
SgmntAmt.percent_max AS DepreciationCalcMaxRateInPct,
SgmntAmt.percent_min AS DepreciationCalcMinRateInPct,
SgmntAmt.percent_round AS RoundingDecimalPlaces,
SgmntAmt.amount_factor AS MltplShftUseShutdownCrrtnFctr,
SgmntAmt.amount_max AS MaximumDepreciationAmountInDC,
SgmntAmt.use_year_amount AS DepreciationCalcAmtIsCumulated,
SgmntAmt.skip_amount AS DepreciationCalcAmtIsSkipped,
SgmntAmt.check_amount AS DepreciationCalcAmtIsChecked,
SgmntAmt.minval_percent AS DeprCalcCtffValRateInPct,
SgmntAmt.minval_stated AS AssetScrapAmountInDspCrcy,
SgmntAmt.minval_memo AS DepreciationCalcMemoAmountInDC,
SgmntAmt.minval_rndmethod AS DepreciationCalcRoundingMethod,
SgmntAmt.minval_rnddecim AS ScrapValNmbrOfRndngDcmlPlaces,
SgmntAmt.subtract_minval AS AssetScrapValueIsDeducted,
SgmntAmt.no_minval AS NetBookValueCalcIsBelowZero,
SgmntAmt.minval_tolerance AS NetBookToleranceAmountInDC,
SgmntAmt.minval_key AS CutOffValueKey,
SgmntAmt.rounding_off AS RoundingIsDisabled
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