P_AssetValuationForLedger

DDL: P_ASSETVALUATIONFORLEDGER Type: view COMPOSITE Package: FINS_FIS_AA_MD

Asset Valuation For Ledger

P_AssetValuationForLedger is a Composite CDS View that provides data about "Asset Valuation For Ledger" in SAP S/4HANA. It reads from 6 data sources and exposes 55 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger, AssetRealDepreciationArea. Part of development package FINS_FIS_AA_MD.

Data Sources (6)

SourceAliasJoin Type
I_AssetRedesignSwitchStatus I_AssetRedesignSwitchStatus inner
I_AssetRedesignSwitchStatus I_AssetRedesignSwitchStatus inner
I_AssetTimeBasedValuation I_AssetTimeBasedValuation union_all
I_AssetValuation I_AssetValuation inner
I_DepreciationAreaForLedger I_DepreciationAreaForLedger inner
I_FixedAssetDeprArea I_FixedAssetDeprArea from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIASTVALFORLDGR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_FixedAssetDeprArea CompanyCode
KEY MasterFixedAsset I_FixedAssetDeprArea MasterFixedAsset
KEY FixedAsset I_FixedAssetDeprArea FixedAsset
KEY Ledger I_DepreciationAreaForLedger Ledger
KEY AssetRealDepreciationArea I_FixedAssetDeprArea AssetRealDepreciationArea
KEY ValidityEndDate I_FixedAssetDeprArea ValidityEndDate
ValidityStartDate I_FixedAssetDeprArea ValidityStartDate
DepreciationStartDate I_FixedAssetDeprArea DepreciationStartDate
SpecialDeprStartDate I_FixedAssetDeprArea SpecialDeprStartDate
DeprKeyChangeoverYear I_FixedAssetDeprArea DeprKeyChangeoverYear
DeprKeyChangeoverPeriod I_FixedAssetDeprArea DeprKeyChangeoverPeriod
DepreciationKey I_FixedAssetDeprArea DepreciationKey
InvestmentSupportMeasure I_FixedAssetDeprArea InvestmentSupportMeasure
PlannedUsefulLifeInPeriods I_FixedAssetDeprArea PlannedUsefulLifeInPeriods
PlannedUsefulLifeInYears I_FixedAssetDeprArea PlannedUsefulLifeInYears
VintageYear I_FixedAssetDeprArea VintageYear
VintageMonth I_FixedAssetDeprArea VintageMonth
OriglAstUsefulLifeInPerds I_FixedAssetDeprArea OriglAstUsefulLifeInPerds
OriglAstUsefulLifeInYears I_FixedAssetDeprArea OriglAstUsefulLifeInYears
ReplacementValueIndexSers I_FixedAssetDeprArea ReplacementValueIndexSers
RplcmtValueAgingIndexSers I_FixedAssetDeprArea RplcmtValueAgingIndexSers
AcqnProdnCostScrapPercent I_FixedAssetDeprArea AcqnProdnCostScrapPercent
VariableDeprPercent I_FixedAssetDeprArea VariableDeprPercent
LastRetirementValueDate
DepreciationAreaType
ScrapAmountInCoCodeCrcy
AssetOpgReadinessDate
CompanyCode
KEY MasterFixedAsset I_AssetTimeBasedValuation MasterFixedAsset
KEY FixedAsset I_AssetTimeBasedValuation FixedAsset
KEY Ledger I_AssetTimeBasedValuation Ledger
KEY AssetRealDepreciationArea I_AssetTimeBasedValuation AssetDepreciationArea
KEY ValidityEndDate I_AssetTimeBasedValuation ValidityEndDate
ValidityStartDate I_AssetTimeBasedValuation ValidityStartDate
DepreciationStartDate I_AssetValuation DepreciationStartDate
SpecialDeprStartDate I_AssetValuation SpecialDeprStartDate
DeprKeyChangeoverYear I_AssetValuation DeprKeyChangeoverYear
DeprKeyChangeoverPeriod I_AssetValuation DeprKeyChangeoverPeriod
DepreciationKey I_AssetTimeBasedValuation DepreciationKey
InvestmentSupportMeasure
PlannedUsefulLifeInPeriods I_AssetTimeBasedValuation PlannedUsefulLifeInPeriods
PlannedUsefulLifeInYears I_AssetTimeBasedValuation PlannedUsefulLifeInYears
VintageYear
VintageMonth
OriglAstUsefulLifeInPerds
OriglAstUsefulLifeInYears
ReplacementValueIndexSers I_AssetValuation ReplacementValueIndexSers
RplcmtValueAgingIndexSers I_AssetValuation RplcmtValueAgingIndexSers
AcqnProdnCostScrapPercent I_AssetTimeBasedValuation AcqnProdnCostScrapPercent
VariableDeprPercent I_AssetTimeBasedValuation VariableDeprPercent
LastRetirementValueDate I_AssetValuation LastRetirementValueDate
DepreciationAreaType I_AssetValuation DepreciationAreaType
ScrapAmountInCoCodeCrcy I_AssetTimeBasedValuation ScrapAmountInCoCodeCrcy
AssetOpgReadinessDate I_AssetValuation AssetOpgReadinessDate
FixedAssetUsageObject I_AssetTimeBasedValuation FixedAssetUsageObject
@AbapCatalog: {sqlViewName: 'PFIASTVALFORLDGR', preserveKey: true, compiler.compareFilter: true}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true

define view P_AssetValuationForLedger
  as select from I_FixedAssetDeprArea
    inner join   I_DepreciationAreaForLedger on  I_DepreciationAreaForLedger.CompanyCode           = I_FixedAssetDeprArea.CompanyCode
                                             and I_DepreciationAreaForLedger.AssetDepreciationArea = I_FixedAssetDeprArea.AssetRealDepreciationArea
    inner join   I_AssetRedesignSwitchStatus on I_AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = ''
{
  key  I_FixedAssetDeprArea.CompanyCode,
  key  I_FixedAssetDeprArea.MasterFixedAsset,
  key  I_FixedAssetDeprArea.FixedAsset,
  key  I_DepreciationAreaForLedger.Ledger,
  key  I_FixedAssetDeprArea.AssetRealDepreciationArea,
  key  I_FixedAssetDeprArea.ValidityEndDate,

       I_FixedAssetDeprArea.ValidityStartDate,
       I_FixedAssetDeprArea.DepreciationStartDate,
       I_FixedAssetDeprArea.SpecialDeprStartDate,
       I_FixedAssetDeprArea.DeprKeyChangeoverYear,
       I_FixedAssetDeprArea.DeprKeyChangeoverPeriod,
       I_FixedAssetDeprArea.DepreciationKey,
       I_FixedAssetDeprArea.InvestmentSupportMeasure,
       I_FixedAssetDeprArea.PlannedUsefulLifeInPeriods,
       I_FixedAssetDeprArea.PlannedUsefulLifeInYears,
       I_FixedAssetDeprArea.VintageYear,
       I_FixedAssetDeprArea.VintageMonth,
       I_FixedAssetDeprArea.OriglAstUsefulLifeInPerds,
       I_FixedAssetDeprArea.OriglAstUsefulLifeInYears,
       I_FixedAssetDeprArea.ReplacementValueIndexSers,
       I_FixedAssetDeprArea.RplcmtValueAgingIndexSers,
       I_FixedAssetDeprArea.AcqnProdnCostScrapPercent,
       I_FixedAssetDeprArea.VariableDeprPercent,
       cast('00000000' as abgdat_b)                                                 as LastRetirementValueDate, //Due to performance reasons it is not read from I_FixedAsset

       cast('' as faa_md_calc_view_type)                                            as DepreciationAreaType,
       cast(I_FixedAssetDeprArea.ScrapAmountInCoCodeCrcy as faa_md_scrap_value_hsl) as ScrapAmountInCoCodeCrcy,
       I_FixedAssetDeprArea. AssetOpgReadinessDate,
       cast('000000000000' as faa_uo)                                               as FixedAssetUsageObject    // Usage Object is only available for Asset Redesign

}

union all select from I_AssetTimeBasedValuation
  inner join          I_AssetValuation            on  I_AssetValuation.CompanyCode           = I_AssetTimeBasedValuation.CompanyCode
                                                  and I_AssetValuation.MasterFixedAsset      = I_AssetTimeBasedValuation.MasterFixedAsset
                                                  and I_AssetValuation.FixedAsset            = I_AssetTimeBasedValuation.FixedAsset
                                                  and I_AssetValuation.Ledger                = I_AssetTimeBasedValuation.Ledger
                                                  and I_AssetValuation.AssetDepreciationArea = I_AssetTimeBasedValuation.AssetDepreciationArea
  inner join          I_AssetRedesignSwitchStatus on I_AssetRedesignSwitchStatus.AssetRedesignSwitchIsActive = 'X'
{
  key I_AssetTimeBasedValuation.CompanyCode,
  key I_AssetTimeBasedValuation.MasterFixedAsset,
  key I_AssetTimeBasedValuation.FixedAsset,
  key I_AssetTimeBasedValuation.Ledger,
  key I_AssetTimeBasedValuation.AssetDepreciationArea as AssetRealDepreciationArea,
  key I_AssetTimeBasedValuation.ValidityEndDate,

      I_AssetTimeBasedValuation.ValidityStartDate,
      I_AssetValuation.DepreciationStartDate,
      I_AssetValuation.SpecialDeprStartDate,
      I_AssetValuation.DeprKeyChangeoverYear,
      I_AssetValuation.DeprKeyChangeoverPeriod,
      I_AssetTimeBasedValuation.DepreciationKey,
      cast('' as invsl)                               as InvestmentSupportMeasure,
      I_AssetTimeBasedValuation.PlannedUsefulLifeInPeriods,
      I_AssetTimeBasedValuation.PlannedUsefulLifeInYears,
      cast('0000' as vyear)                           as VintageYear,
      cast('000' as vmnth)                            as VintageMonth,
      cast('000' as ndurp)                            as OriglAstUsefulLifeInPerds,
      cast('000' as ndurj)                            as OriglAstUsefulLifeInYears,
      I_AssetValuation.ReplacementValueIndexSers,
      I_AssetValuation.RplcmtValueAgingIndexSers,
      I_AssetTimeBasedValuation.AcqnProdnCostScrapPercent,
      I_AssetTimeBasedValuation.VariableDeprPercent,
      I_AssetValuation.LastRetirementValueDate,
      I_AssetValuation.DepreciationAreaType,
      I_AssetTimeBasedValuation.ScrapAmountInCoCodeCrcy,
      I_AssetValuation.AssetOpgReadinessDate,
      I_AssetTimeBasedValuation.FixedAssetUsageObject
}