P_AssetValuationForLedger
P_AssetValuationForLedger is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 55 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger, AssetRealDepreciationArea.
Data Sources (6)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_FixedAssetDeprArea | CompanyCode | Receiver Company Code |
| KEY | MasterFixedAsset | I_FixedAssetDeprArea | MasterFixedAsset | Fixed Asset |
| KEY | FixedAsset | I_FixedAssetDeprArea | FixedAsset | Sub-number |
| KEY | Ledger | I_DepreciationAreaForLedger | Ledger | Ledger |
| KEY | AssetRealDepreciationArea | I_FixedAssetDeprArea | AssetRealDepreciationArea | Deprec. Area |
| KEY | ValidityEndDate | I_FixedAssetDeprArea | ValidityEndDate | ValidTo |
| ValidityStartDate | I_FixedAssetDeprArea | ValidityStartDate | Validity Start Date | |
| DepreciationStartDate | I_FixedAssetDeprArea | DepreciationStartDate | ||
| SpecialDeprStartDate | I_FixedAssetDeprArea | SpecialDeprStartDate | Spec.dep.start | |
| DeprKeyChangeoverYear | I_FixedAssetDeprArea | DeprKeyChangeoverYear | Changeover year | |
| DeprKeyChangeoverPeriod | I_FixedAssetDeprArea | DeprKeyChangeoverPeriod | Changeover Prd | |
| DepreciationKey | I_FixedAssetDeprArea | DepreciationKey | Dep. key | |
| InvestmentSupportMeasure | I_FixedAssetDeprArea | InvestmentSupportMeasure | ||
| PlannedUsefulLifeInPeriods | I_FixedAssetDeprArea | PlannedUsefulLifeInPeriods | Periods | |
| PlannedUsefulLifeInYears | I_FixedAssetDeprArea | PlannedUsefulLifeInYears | Planned Use Life Yr. | |
| VintageYear | I_FixedAssetDeprArea | VintageYear | Vintage Year | |
| VintageMonth | I_FixedAssetDeprArea | VintageMonth | ||
| OriglAstUsefulLifeInPerds | I_FixedAssetDeprArea | OriglAstUsefulLifeInPerds | ||
| OriglAstUsefulLifeInYears | I_FixedAssetDeprArea | OriglAstUsefulLifeInYears | ||
| ReplacementValueIndexSers | I_FixedAssetDeprArea | ReplacementValueIndexSers | Index series | |
| RplcmtValueAgingIndexSers | I_FixedAssetDeprArea | RplcmtValueAgingIndexSers | Aging Index | |
| AcqnProdnCostScrapPercent | I_FixedAssetDeprArea | AcqnProdnCostScrapPercent | Scrap Value % | |
| VariableDeprPercent | I_FixedAssetDeprArea | VariableDeprPercent | Var.dep.portion | |
| LastRetirementValueDate | Last retmt. on | |||
| DepreciationAreaType | Calc. View Type | |||
| ScrapAmountInCoCodeCrcy | Value in CompCd Crcy | |||
| AssetOpgReadinessDate | Operating Readiness | |||
| CompanyCode | Receiver Company Code | |||
| KEY | MasterFixedAsset | I_AssetTimeBasedValuation | MasterFixedAsset | Fixed Asset |
| KEY | FixedAsset | I_AssetTimeBasedValuation | FixedAsset | Sub-number |
| KEY | Ledger | I_AssetTimeBasedValuation | Ledger | Ledger |
| KEY | AssetRealDepreciationArea | I_AssetTimeBasedValuation | AssetDepreciationArea | Deprec. Area |
| KEY | ValidityEndDate | I_AssetTimeBasedValuation | ValidityEndDate | ValidTo |
| ValidityStartDate | I_AssetTimeBasedValuation | ValidityStartDate | Validity Start Date | |
| DepreciationStartDate | I_AssetValuation | DepreciationStartDate | ||
| SpecialDeprStartDate | I_AssetValuation | SpecialDeprStartDate | Spec.dep.start | |
| DeprKeyChangeoverYear | I_AssetValuation | DeprKeyChangeoverYear | Changeover year | |
| DeprKeyChangeoverPeriod | I_AssetValuation | DeprKeyChangeoverPeriod | Changeover Prd | |
| DepreciationKey | I_AssetTimeBasedValuation | DepreciationKey | Dep. key | |
| InvestmentSupportMeasure | ||||
| PlannedUsefulLifeInPeriods | I_AssetTimeBasedValuation | PlannedUsefulLifeInPeriods | Periods | |
| PlannedUsefulLifeInYears | I_AssetTimeBasedValuation | PlannedUsefulLifeInYears | Planned Use Life Yr. | |
| VintageYear | Vintage Year | |||
| VintageMonth | ||||
| OriglAstUsefulLifeInPerds | ||||
| OriglAstUsefulLifeInYears | ||||
| ReplacementValueIndexSers | I_AssetValuation | ReplacementValueIndexSers | Index series | |
| RplcmtValueAgingIndexSers | I_AssetValuation | RplcmtValueAgingIndexSers | Aging Index | |
| AcqnProdnCostScrapPercent | I_AssetTimeBasedValuation | AcqnProdnCostScrapPercent | Scrap Value % | |
| VariableDeprPercent | I_AssetTimeBasedValuation | VariableDeprPercent | Var.dep.portion | |
| LastRetirementValueDate | I_AssetValuation | LastRetirementValueDate | Last retmt. on | |
| DepreciationAreaType | I_AssetValuation | DepreciationAreaType | Calc. View Type | |
| ScrapAmountInCoCodeCrcy | I_AssetTimeBasedValuation | ScrapAmountInCoCodeCrcy | Value in CompCd Crcy | |
| AssetOpgReadinessDate | I_AssetValuation | AssetOpgReadinessDate | Operating Readiness | |
| FixedAssetUsageObject | I_AssetTimeBasedValuation | FixedAssetUsageObject | Usage Object |
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 P_AssetValuationForLedger.
-- 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.
CREATE VIEW P_AssetValuationForLedger AS
SELECT
I_FixedAssetDeprArea.CompanyCode AS CompanyCode,
I_FixedAssetDeprArea.MasterFixedAsset AS MasterFixedAsset,
I_FixedAssetDeprArea.FixedAsset AS FixedAsset,
I_DepreciationAreaForLedger.Ledger AS Ledger,
I_FixedAssetDeprArea.AssetRealDepreciationArea AS AssetRealDepreciationArea,
I_FixedAssetDeprArea.ValidityEndDate AS ValidityEndDate,
I_FixedAssetDeprArea.ValidityStartDate AS ValidityStartDate,
I_FixedAssetDeprArea.DepreciationStartDate AS DepreciationStartDate,
I_FixedAssetDeprArea.SpecialDeprStartDate AS SpecialDeprStartDate,
I_FixedAssetDeprArea.DeprKeyChangeoverYear AS DeprKeyChangeoverYear,
I_FixedAssetDeprArea.DeprKeyChangeoverPeriod AS DeprKeyChangeoverPeriod,
I_FixedAssetDeprArea.DepreciationKey AS DepreciationKey,
I_FixedAssetDeprArea.InvestmentSupportMeasure AS InvestmentSupportMeasure,
I_FixedAssetDeprArea.PlannedUsefulLifeInPeriods AS PlannedUsefulLifeInPeriods,
I_FixedAssetDeprArea.PlannedUsefulLifeInYears AS PlannedUsefulLifeInYears,
I_FixedAssetDeprArea.VintageYear AS VintageYear,
I_FixedAssetDeprArea.VintageMonth AS VintageMonth,
I_FixedAssetDeprArea.OriglAstUsefulLifeInPerds AS OriglAstUsefulLifeInPerds,
I_FixedAssetDeprArea.OriglAstUsefulLifeInYears AS OriglAstUsefulLifeInYears,
I_FixedAssetDeprArea.ReplacementValueIndexSers AS ReplacementValueIndexSers,
I_FixedAssetDeprArea.RplcmtValueAgingIndexSers AS RplcmtValueAgingIndexSers,
I_FixedAssetDeprArea.AcqnProdnCostScrapPercent AS AcqnProdnCostScrapPercent,
I_FixedAssetDeprArea.VariableDeprPercent AS VariableDeprPercent,
cast('00000000' as abgdat_b) AS LastRetirementValueDate,
cast('' as faa_md_calc_view_type) AS DepreciationAreaType,
cast(I_FixedAssetDeprArea.ScrapAmountInCoCodeCrcy as faa_md_scrap_value_hsl) AS ScrapAmountInCoCodeCrcy,
I_FixedAssetDeprArea. AssetOpgReadinessDate AS AssetOpgReadinessDate,
I_AssetTimeBasedValuation.FixedAssetUsageObject AS FixedAssetUsageObject
FROM I_FixedAssetDeprArea
INNER JOIN I_DepreciationAreaForLedger ON /* join condition not captured in parsed metadata */
INNER JOIN I_AssetRedesignSwitchStatus ON /* join condition not captured in parsed metadata */
INNER JOIN I_AssetValuation ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_AssetTimeBasedValuation
;
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