I_AssetValuation

DDL: I_ASSETVALUATION SQL: IASSETVALN Type: view BASIC Package: FINS_FAA_MD_BOPF

Asset Valuation

I_AssetValuation is a Basic CDS View that provides data about "Asset Valuation" in SAP S/4HANA. It reads from 1 data source (faat_md_val) and exposes 42 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger, AssetDepreciationArea. It has 8 associations to related views. Part of development package FINS_FAA_MD_BOPF.

Data Sources (1)

SourceAliasJoin Type
faat_md_val Valuation from

Associations (8)

CardinalityTargetAliasCondition
[1..1] P_AssetTmeBsdValnCurValdtyDte _AssetTmeBsdValnCurValdtyDte $projection.CompanyCode = _AssetTmeBsdValnCurValdtyDte.CompanyCode and $projection.MasterFixedAsset = _AssetTmeBsdValnCurValdtyDte.MasterFixedAsset and $projection.FixedAsset = _AssetTmeBsdValnCurValdtyDte.FixedAsset and $projection.Ledger = _AssetTmeBsdValnCurValdtyDte.Ledger and $projection.AssetDepreciationArea = _AssetTmeBsdValnCurValdtyDte.AssetDepreciationArea
[1..1] P_AssetYearOpeningValnAttrib _AssetYearOpeningValnAttrib $projection.CompanyCode = _AssetYearOpeningValnAttrib.CompanyCode and $projection.MasterFixedAsset = _AssetYearOpeningValnAttrib.MasterFixedAsset and $projection.FixedAsset = _AssetYearOpeningValnAttrib.FixedAsset and $projection.Ledger = _AssetYearOpeningValnAttrib.Ledger and $projection.AssetDepreciationArea = _AssetYearOpeningValnAttrib.AssetDepreciationArea
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_MasterFixedAsset _MasterFixedAsset $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
[1..1] I_FixedAsset _FixedAsset $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset
[1..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger
[1..1] I_DepreciationArea _DepreciationArea $projection.CompanyCode = _DepreciationArea.CompanyCode and $projection.Ledger = _DepreciationArea.Ledger and $projection.AssetDepreciationArea = _DepreciationArea.AssetDepreciationArea
[0..*] I_AssetValuationForLedger _AssetValuationForLedger $projection.CompanyCode = _AssetValuationForLedger.CompanyCode and $projection.MasterFixedAsset = _AssetValuationForLedger.MasterFixedAsset and $projection.FixedAsset = _AssetValuationForLedger.FixedAsset and $projection.Ledger = _AssetValuationForLedger.Ledger and $projection.AssetDepreciationArea = _AssetValuationForLedger.AssetRealDepreciationArea

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IASSETVALN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Asset Valuation view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode faat_md_val comp_code Procuring Comp. Cde
KEY MasterFixedAsset faat_md_val asset_no Asset
KEY FixedAsset faat_md_val asset_subno Sub-number
KEY Ledger faat_md_val ledger Ledger
KEY AssetDepreciationArea faat_md_val depr_area Deprec. Area
DepreciationKey _AssetTmeBsdValnCurValdtyDte DepreciationKey
PlannedUsefulLifeInYears _AssetTmeBsdValnCurValdtyDte PlannedUsefulLifeInYears Planned Use Life Yr.
PlannedUsefulLifeInPeriods _AssetTmeBsdValnCurValdtyDte PlannedUsefulLifeInPeriods
ExpiredUsefulLifeInYrs _AssetYearOpeningValnAttrib ExpiredUsefulLifeInYrs
ExpiredUsefulLifeInPerds _AssetYearOpeningValnAttrib ExpiredUsefulLifeInPerds
SpclExpiredUsefulLifeInYrs _AssetYearOpeningValnAttrib SpclExpiredUsefulLifeInYrs
SpclExpiredUsefulLifeInPerds _AssetYearOpeningValnAttrib SpclExpiredUsefulLifeInPerds
NegativeAmountIsAllowed faat_md_val negative_values_allowed Negative Val.Allowed
DepreciationStartDate
SpecialDeprStartDate faat_md_val sdepr_start_date Spec.dep.start
InterestCalcStartDate faat_md_val int_start_date Start date
AssetOpgReadinessDate faat_md_val readiness_date Operating Readiness
ReplacementValueIndexSers
RplcmtValueAgingIndexSers
DeprKeyChangeoverYear faat_md_val changeover_year Changeover year
DeprKeyChangeoverPeriod faat_md_val changeover_period Changeover Prd
LowValueAssetAmountCheckType faat_md_val lva_amount_check_type LVA Check
LastRetirementValueDate faat_md_val last_retirement_date Last retmt. on
AssetCurrentFiscalYear faat_md_val current_fiscal_year Last Fiscal Yr.
AssetNumberOfPeriods faat_md_val number_of_periods Period Scaling
DepreciationAreaType faat_md_val calculation_view_type Calc. View Type
CoCodeCurrencyErrorIsIgnored faat_md_val ignore_error_in_hsl Ignore Currency
GlobalCurrencyErrorIsIgnored faat_md_val ignore_error_in_ksl Ignore Currency
FreeDefinedCrcy1ErrorIsIgnored faat_md_val ignore_error_in_osl Ignore Currency
FreeDefinedCrcy2ErrorIsIgnored faat_md_val ignore_error_in_vsl Ignore Currency
FreeDefinedCrcy3ErrorIsIgnored faat_md_val ignore_error_in_bsl Ignore Currency
FreeDefinedCrcy4ErrorIsIgnored faat_md_val ignore_error_in_csl Ignore Currency
FreeDefinedCrcy5ErrorIsIgnored faat_md_val ignore_error_in_dsl Ignore Currency
FreeDefinedCrcy6ErrorIsIgnored faat_md_val ignore_error_in_esl Ignore Currency
FreeDefinedCrcy7ErrorIsIgnored faat_md_val ignore_error_in_fsl Ignore Currency
FreeDefinedCrcy8ErrorIsIgnored faat_md_val ignore_error_in_gsl Ignore Currency
_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 I_AssetValuation.
-- 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: IASSETVALN

CREATE VIEW I_AssetValuation AS
SELECT
  Valuation.comp_code AS CompanyCode,
  Valuation.asset_no AS MasterFixedAsset,
  Valuation.asset_subno AS FixedAsset,
  Valuation.ledger AS Ledger,
  Valuation.depr_area AS AssetDepreciationArea,
  _AssetTmeBsdValnCurValdtyDte.DepreciationKey AS DepreciationKey,
  _AssetTmeBsdValnCurValdtyDte.PlannedUsefulLifeInYears AS PlannedUsefulLifeInYears,
  _AssetTmeBsdValnCurValdtyDte.PlannedUsefulLifeInPeriods AS PlannedUsefulLifeInPeriods,
  _AssetYearOpeningValnAttrib.ExpiredUsefulLifeInYrs AS ExpiredUsefulLifeInYrs,
  _AssetYearOpeningValnAttrib.ExpiredUsefulLifeInPerds AS ExpiredUsefulLifeInPerds,
  _AssetYearOpeningValnAttrib.SpclExpiredUsefulLifeInYrs AS SpclExpiredUsefulLifeInYrs,
  _AssetYearOpeningValnAttrib.SpclExpiredUsefulLifeInPerds AS SpclExpiredUsefulLifeInPerds,
  Valuation.negative_values_allowed AS NegativeAmountIsAllowed,
  cast( Valuation.odepr_start_date as fis_afabg ) AS DepreciationStartDate,
  Valuation.sdepr_start_date AS SpecialDeprStartDate,
  Valuation.int_start_date AS InterestCalcStartDate,
  Valuation.readiness_date AS AssetOpgReadinessDate,
  cast( '' as wbind ) AS ReplacementValueIndexSers,
  cast( '' as alind ) AS RplcmtValueAgingIndexSers,
  Valuation.changeover_year AS DeprKeyChangeoverYear,
  Valuation.changeover_period AS DeprKeyChangeoverPeriod,
  Valuation.lva_amount_check_type AS LowValueAssetAmountCheckType,
  Valuation.last_retirement_date AS LastRetirementValueDate,
  Valuation.current_fiscal_year AS AssetCurrentFiscalYear,
  Valuation.number_of_periods AS AssetNumberOfPeriods,
  Valuation.calculation_view_type AS DepreciationAreaType,
  Valuation.ignore_error_in_hsl AS CoCodeCurrencyErrorIsIgnored,
  Valuation.ignore_error_in_ksl AS GlobalCurrencyErrorIsIgnored,
  Valuation.ignore_error_in_osl AS FreeDefinedCrcy1ErrorIsIgnored,
  Valuation.ignore_error_in_vsl AS FreeDefinedCrcy2ErrorIsIgnored,
  Valuation.ignore_error_in_bsl AS FreeDefinedCrcy3ErrorIsIgnored,
  Valuation.ignore_error_in_csl AS FreeDefinedCrcy4ErrorIsIgnored,
  Valuation.ignore_error_in_dsl AS FreeDefinedCrcy5ErrorIsIgnored,
  Valuation.ignore_error_in_esl AS FreeDefinedCrcy6ErrorIsIgnored,
  Valuation.ignore_error_in_fsl AS FreeDefinedCrcy7ErrorIsIgnored,
  Valuation.ignore_error_in_gsl AS FreeDefinedCrcy8ErrorIsIgnored
FROM faat_md_val AS Valuation
LEFT OUTER JOIN P_AssetTmeBsdValnCurValdtyDte AS _AssetTmeBsdValnCurValdtyDte ON CompanyCode = _AssetTmeBsdValnCurValdtyDte.CompanyCode AND MasterFixedAsset = _AssetTmeBsdValnCurValdtyDte.MasterFixedAsset AND FixedAsset = _AssetTmeBsdValnCurValdtyDte.FixedAsset AND Ledger = _AssetTmeBsdValnCurValdtyDte.Ledger AND AssetDepreciationArea = _AssetTmeBsdValnCurValdtyDte.AssetDepreciationArea  -- association [1..1]
LEFT OUTER JOIN P_AssetYearOpeningValnAttrib AS _AssetYearOpeningValnAttrib ON CompanyCode = _AssetYearOpeningValnAttrib.CompanyCode AND MasterFixedAsset = _AssetYearOpeningValnAttrib.MasterFixedAsset AND FixedAsset = _AssetYearOpeningValnAttrib.FixedAsset AND Ledger = _AssetYearOpeningValnAttrib.Ledger AND AssetDepreciationArea = _AssetYearOpeningValnAttrib.AssetDepreciationArea  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON CompanyCode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset  -- association [1..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset  -- association [1..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [1..1]
LEFT OUTER JOIN I_DepreciationArea AS _DepreciationArea ON CompanyCode = _DepreciationArea.CompanyCode AND Ledger = _DepreciationArea.Ledger AND AssetDepreciationArea = _DepreciationArea.AssetDepreciationArea  -- association [1..1]
LEFT OUTER JOIN I_AssetValuationForLedger AS _AssetValuationForLedger ON CompanyCode = _AssetValuationForLedger.CompanyCode AND MasterFixedAsset = _AssetValuationForLedger.MasterFixedAsset AND FixedAsset = _AssetValuationForLedger.FixedAsset AND Ledger = _AssetValuationForLedger.Ledger AND AssetDepreciationArea = _AssetValuationForLedger.AssetRealDepreciationArea  -- association [0..*]
;