C_AssetValuationTP

DDL: C_ASSETVALUATIONTP SQL: CASSETVALNTP Type: view CONSUMPTION

Asset Valuation

C_AssetValuationTP is a Consumption CDS View that provides data about "Asset Valuation" in SAP S/4HANA. It reads from 1 data source (I_AssetValuationTP) and exposes 56 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, AssetDepreciationArea, Ledger. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AssetValuationTP AssetValuationTP from

Associations (6)

CardinalityTargetAliasCondition
[1..1] C_AssetTP _AssetTP $projection.CompanyCode = _AssetTP.CompanyCode and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset and $projection.FixedAsset = _AssetTP.FixedAsset
[1..*] C_AssetTimeBasedValuationTP _AssetTimeBasedValuationTP $projection.CompanyCode = _AssetTimeBasedValuationTP.CompanyCode and $projection.MasterFixedAsset = _AssetTimeBasedValuationTP.MasterFixedAsset and $projection.FixedAsset = _AssetTimeBasedValuationTP.FixedAsset and $projection.Ledger = _AssetTimeBasedValuationTP.Ledger and $projection.AssetDepreciationArea = _AssetTimeBasedValuationTP.AssetDepreciationArea
[1..*] C_AssetYearOpeningValnAttribTP _AssetYearOpeningValnAttribTP $projection.CompanyCode = _AssetYearOpeningValnAttribTP.CompanyCode and $projection.MasterFixedAsset = _AssetYearOpeningValnAttribTP.MasterFixedAsset and $projection.FixedAsset = _AssetYearOpeningValnAttribTP.FixedAsset and $projection.Ledger = _AssetYearOpeningValnAttribTP.Ledger and $projection.AssetDepreciationArea = _AssetYearOpeningValnAttribTP.AssetDepreciationArea
[0..*] C_GlobAssetTimeBasedValnTP _GlobAssetTimeBasedValnTP $projection.CompanyCode = _GlobAssetTimeBasedValnTP.CompanyCode and $projection.MasterFixedAsset = _GlobAssetTimeBasedValnTP.MasterFixedAsset and $projection.FixedAsset = _GlobAssetTimeBasedValnTP.FixedAsset and $projection.Ledger = _GlobAssetTimeBasedValnTP.Ledger and $projection.AssetDepreciationArea = _GlobAssetTimeBasedValnTP.AssetDepreciationArea
[0..1] I_DepreciationKey _DepreciationKey $projection.DepreciationKey = _DepreciationKey.DepreciationKey and $projection.ChartOfDepreciation = _DepreciationKey.ChartOfDepreciation
[0..1] I_LedgerCompanyCodeCrcyRoles _CurrencyRoles $projection.CompanyCode = _CurrencyRoles.CompanyCode and $projection.Ledger = _CurrencyRoles.Ledger

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CASSETVALNTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Asset Valuation view
VDM.viewType #CONSUMPTION view
Search.searchable false view
Metadata.allowExtensions true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
KEY AssetDepreciationArea AssetDepreciationArea Deprec. Area
KEY Ledger Ledger Ledger
CompanyCodeName _CompanyCode CompanyCodeName Company Name
LedgerName
AssetDepreciationAreaName
AssetClass
AssetClassName
AssetLeadingDepreciationArea AssetLeadingDepreciationArea
ChartOfDepreciation ChartOfDepreciation
DepreciationKey DepreciationKey
DepreciationKeyName
PlannedUsefulLifeInYears PlannedUsefulLifeInYears Planned Use Life Yr.
PlannedUsefulLifeInPeriods PlannedUsefulLifeInPeriods
ExpiredUsefulLifeInYrs ExpiredUsefulLifeInYrs
ExpiredUsefulLifeInPerds ExpiredUsefulLifeInPerds
SpclExpiredUsefulLifeInYrs SpclExpiredUsefulLifeInYrs
SpclExpiredUsefulLifeInPerds SpclExpiredUsefulLifeInPerds
NegativeAmountIsAllowed NegativeAmountIsAllowed
DepreciationStartDate DepreciationStartDate
SpecialDeprStartDate SpecialDeprStartDate
InterestCalcStartDate InterestCalcStartDate
AssetOpgReadinessDate AssetOpgReadinessDate
ReplacementValueIndexSers ReplacementValueIndexSers
RplcmtValueAgingIndexSers RplcmtValueAgingIndexSers
DeprKeyChangeoverYear DeprKeyChangeoverYear
DeprKeyChangeoverPeriod DeprKeyChangeoverPeriod
LowValueAssetAmountCheckType LowValueAssetAmountCheckType
LastRetirementValueDate LastRetirementValueDate
AssetCurrentFiscalYear AssetCurrentFiscalYear
AssetNumberOfPeriods AssetNumberOfPeriods
DepreciationAreaType DepreciationAreaType
LastChangeDateTime
CompanyCodeCurrencyRole _CurrencyRoles CompanyCodeCurrencyRole
GlobalCurrencyRole _CurrencyRoles GlobalCurrencyRole
FreeDefinedCurrency1Role _CurrencyRoles FreeDefinedCurrency1Role
FreeDefinedCurrency2Role _CurrencyRoles FreeDefinedCurrency2Role
FreeDefinedCurrency3Role _CurrencyRoles FreeDefinedCurrency3Role
FreeDefinedCurrency4Role _CurrencyRoles FreeDefinedCurrency4Role
FreeDefinedCurrency5Role _CurrencyRoles FreeDefinedCurrency5Role
FreeDefinedCurrency6Role _CurrencyRoles FreeDefinedCurrency6Role
FreeDefinedCurrency7Role _CurrencyRoles FreeDefinedCurrency7Role
FreeDefinedCurrency8Role _CurrencyRoles FreeDefinedCurrency8Role
FunctionalCurrencyRole _CurrencyRoles FunctionalCurrencyRole
_AssetTP _AssetTP
_AssetTimeBasedValuationTP _AssetTimeBasedValuationTP
_AssetYearOpeningValnAttribTP _AssetYearOpeningValnAttribTP
_GlobAssetTimeBasedValnTP _GlobAssetTimeBasedValnTP
_CompanyCode _CompanyCode
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_Ledger _Ledger
_DepreciationArea _DepreciationArea
_AssetValuationForLedger _AssetValuationForLedger

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_AssetValuationTP.
-- 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: CASSETVALNTP

CREATE VIEW C_AssetValuationTP AS
SELECT
  CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  AssetDepreciationArea,
  Ledger,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Ledger._Text[1:Language = $session.system_language].LedgerName AS LedgerName,
  _DepreciationArea._Text[1:Language=$session.system_language].AssetDepreciationAreaName AS AssetDepreciationAreaName,
  cast( '' as anlkl ) AS AssetClass,
  cast( '' as faa_assetcla ) AS AssetClassName,
  AssetLeadingDepreciationArea,
  ChartOfDepreciation,
  DepreciationKey,
  cast('' as fis_afatxt) AS DepreciationKeyName,
  PlannedUsefulLifeInYears,
  PlannedUsefulLifeInPeriods,
  ExpiredUsefulLifeInYrs,
  ExpiredUsefulLifeInPerds,
  SpclExpiredUsefulLifeInYrs,
  SpclExpiredUsefulLifeInPerds,
  NegativeAmountIsAllowed,
  DepreciationStartDate,
  SpecialDeprStartDate,
  InterestCalcStartDate,
  AssetOpgReadinessDate,
  ReplacementValueIndexSers,
  RplcmtValueAgingIndexSers,
  DeprKeyChangeoverYear,
  DeprKeyChangeoverPeriod,
  LowValueAssetAmountCheckType,
  LastRetirementValueDate,
  AssetCurrentFiscalYear,
  AssetNumberOfPeriods,
  DepreciationAreaType,
  cast( '0' as timestamp ) AS LastChangeDateTime,
  _CurrencyRoles.CompanyCodeCurrencyRole AS CompanyCodeCurrencyRole,
  _CurrencyRoles.GlobalCurrencyRole AS GlobalCurrencyRole,
  _CurrencyRoles.FreeDefinedCurrency1Role AS FreeDefinedCurrency1Role,
  _CurrencyRoles.FreeDefinedCurrency2Role AS FreeDefinedCurrency2Role,
  _CurrencyRoles.FreeDefinedCurrency3Role AS FreeDefinedCurrency3Role,
  _CurrencyRoles.FreeDefinedCurrency4Role AS FreeDefinedCurrency4Role,
  _CurrencyRoles.FreeDefinedCurrency5Role AS FreeDefinedCurrency5Role,
  _CurrencyRoles.FreeDefinedCurrency6Role AS FreeDefinedCurrency6Role,
  _CurrencyRoles.FreeDefinedCurrency7Role AS FreeDefinedCurrency7Role,
  _CurrencyRoles.FreeDefinedCurrency8Role AS FreeDefinedCurrency8Role,
  _CurrencyRoles.FunctionalCurrencyRole AS FunctionalCurrencyRole
FROM I_AssetValuationTP AS AssetValuationTP
LEFT OUTER JOIN C_AssetTP AS _AssetTP ON CompanyCode = _AssetTP.CompanyCode AND MasterFixedAsset = _AssetTP.MasterFixedAsset AND FixedAsset = _AssetTP.FixedAsset  -- association [1..1]
LEFT OUTER JOIN C_AssetTimeBasedValuationTP AS _AssetTimeBasedValuationTP ON CompanyCode = _AssetTimeBasedValuationTP.CompanyCode AND MasterFixedAsset = _AssetTimeBasedValuationTP.MasterFixedAsset AND FixedAsset = _AssetTimeBasedValuationTP.FixedAsset AND Ledger = _AssetTimeBasedValuationTP.Ledger AND AssetDepreciationArea = _AssetTimeBasedValuationTP.AssetDepreciationArea  -- association [1..*]
LEFT OUTER JOIN C_AssetYearOpeningValnAttribTP AS _AssetYearOpeningValnAttribTP ON CompanyCode = _AssetYearOpeningValnAttribTP.CompanyCode AND MasterFixedAsset = _AssetYearOpeningValnAttribTP.MasterFixedAsset AND FixedAsset = _AssetYearOpeningValnAttribTP.FixedAsset AND Ledger = _AssetYearOpeningValnAttribTP.Ledger AND AssetDepreciationArea = _AssetYearOpeningValnAttribTP.AssetDepreciationArea  -- association [1..*]
LEFT OUTER JOIN C_GlobAssetTimeBasedValnTP AS _GlobAssetTimeBasedValnTP ON CompanyCode = _GlobAssetTimeBasedValnTP.CompanyCode AND MasterFixedAsset = _GlobAssetTimeBasedValnTP.MasterFixedAsset AND FixedAsset = _GlobAssetTimeBasedValnTP.FixedAsset AND Ledger = _GlobAssetTimeBasedValnTP.Ledger AND AssetDepreciationArea = _GlobAssetTimeBasedValnTP.AssetDepreciationArea  -- association [0..*]
LEFT OUTER JOIN I_DepreciationKey AS _DepreciationKey ON DepreciationKey = _DepreciationKey.DepreciationKey AND ChartOfDepreciation = _DepreciationKey.ChartOfDepreciation  -- association [0..1]
LEFT OUTER JOIN I_LedgerCompanyCodeCrcyRoles AS _CurrencyRoles ON CompanyCode = _CurrencyRoles.CompanyCode AND Ledger = _CurrencyRoles.Ledger  -- association [0..1]
;