P_AssetValuationScrapAmount
Fixed Asset Valuation Scrap Values
P_AssetValuationScrapAmount is a Composite CDS View that provides data about "Fixed Asset Valuation Scrap Values" in SAP S/4HANA. It reads from 1 data source (I_AssetTimeBasedValuation) and exposes 38 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Ledger, AssetRealDepreciationArea. It has 10 associations to related views. Part of development package FINS_FIS_AA_MD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AssetTimeBasedValuation | I_AssetTimeBasedValuation | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Companycodecurrencyrole | _CompanyCodeCurrency | $projection.CompanyCode = _CompanyCodeCurrency.CompanyCode and I_LedgerCompanyCodeCrcyRoles.CompanyCodeCurrencyRole = _CompanyCodeCurrency.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _GlobalCurrency | $projection.CompanyCode = _GlobalCurrency.CompanyCode and I_LedgerCompanyCodeCrcyRoles.GlobalCurrencyRole = _GlobalCurrency.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency1 | $projection.CompanyCode = _FreeDefinedCurrency1.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency1Role = _FreeDefinedCurrency1.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency2 | $projection.CompanyCode = _FreeDefinedCurrency2.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency2Role = _FreeDefinedCurrency2.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency3 | $projection.CompanyCode = _FreeDefinedCurrency3.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency2Role = _FreeDefinedCurrency3.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency4 | $projection.CompanyCode = _FreeDefinedCurrency4.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency3Role = _FreeDefinedCurrency4.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency5 | $projection.CompanyCode = _FreeDefinedCurrency5.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency5Role = _FreeDefinedCurrency5.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency6 | $projection.CompanyCode = _FreeDefinedCurrency6.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency6Role = _FreeDefinedCurrency6.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency7 | $projection.CompanyCode = _FreeDefinedCurrency7.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency7Role = _FreeDefinedCurrency7.CurrencyRole |
| [0..1] | I_Companycodecurrencyrole | _FreeDefinedCurrency8 | $projection.CompanyCode = _FreeDefinedCurrency8.CompanyCode and I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency8Role = _FreeDefinedCurrency8.CurrencyRole |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Fixed Asset Valuation Scrap Values | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_AssetTimeBasedValuation | 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 | |||
| KEY | ValidityEndDate | I_AssetTimeBasedValuation | ValidityEndDate | ValidTo |
| ValidityStartDate | I_AssetTimeBasedValuation | ValidityStartDate | Validity Start Date | |
| AcqnProdnCostScrapPercent | I_AssetTimeBasedValuation | AcqnProdnCostScrapPercent | Scrap Value % | |
| ScrapAmountInCoCodeCrcy | I_AssetTimeBasedValuation | ScrapAmountInCoCodeCrcy | Value in CompCd Crcy | |
| CompanyCodeCurrencyRole | I_LedgerCompanyCodeCrcyRoles | CompanyCodeCurrencyRole | ||
| CompanyCodeCurrency | ||||
| ScrapAmountInGlobCrcy | I_AssetTimeBasedValuation | ScrapAmountInGlobCrcy | Value in Gl. Crcy | |
| GlobalCurrencyRole | I_LedgerCompanyCodeCrcyRoles | GlobalCurrencyRole | ||
| GlobalCurrency | ||||
| ScrapAmountInFreeDefinedCrcy1 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy1 | Value in Currency 1 | |
| FreeDefinedCurrency1Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency1Role | ||
| FreeDefinedCurrency1 | ||||
| ScrapAmountInFreeDefinedCrcy2 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy2 | Value in Currency 2 | |
| FreeDefinedCurrency2Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency2Role | ||
| FreeDefinedCurrency2 | ||||
| ScrapAmountInFreeDefinedCrcy3 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy3 | Value in Currency 3 | |
| FreeDefinedCurrency3Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency3Role | ||
| FreeDefinedCurrency3 | ||||
| ScrapAmountInFreeDefinedCrcy4 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy4 | Value in Currency 4 | |
| FreeDefinedCurrency4Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency4Role | ||
| FreeDefinedCurrency4 | ||||
| ScrapAmountInFreeDefinedCrcy5 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy5 | Value in Currency 5 | |
| FreeDefinedCurrency5Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency5Role | ||
| FreeDefinedCurrency5 | ||||
| ScrapAmountInFreeDefinedCrcy6 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy6 | Value in Currency 6 | |
| FreeDefinedCurrency6Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency6Role | ||
| FreeDefinedCurrency6 | ||||
| ScrapAmountInFreeDefinedCrcy7 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy7 | Value in Currency 7 | |
| FreeDefinedCurrency7Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency7Role | ||
| FreeDefinedCurrency7 | ||||
| ScrapAmountInFreeDefinedCrcy8 | I_AssetTimeBasedValuation | ScrapAmountInFreeDefinedCrcy8 | Value in Currency 8 | |
| FreeDefinedCurrency8Role | I_LedgerCompanyCodeCrcyRoles | FreeDefinedCurrency8Role | ||
| FreeDefinedCurrency8 |
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_AssetValuationScrapAmount.
-- 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_AssetValuationScrapAmount AS
SELECT
I_AssetTimeBasedValuation.CompanyCode AS CompanyCode,
I_AssetTimeBasedValuation.MasterFixedAsset AS MasterFixedAsset,
I_AssetTimeBasedValuation.FixedAsset AS FixedAsset,
I_AssetTimeBasedValuation.Ledger AS Ledger,
cast(I_AssetTimeBasedValuation.AssetDepreciationArea as afabe_d) AS AssetRealDepreciationArea,
I_AssetTimeBasedValuation.ValidityEndDate AS ValidityEndDate,
I_AssetTimeBasedValuation.ValidityStartDate AS ValidityStartDate,
I_AssetTimeBasedValuation.AcqnProdnCostScrapPercent AS AcqnProdnCostScrapPercent,
I_AssetTimeBasedValuation.ScrapAmountInCoCodeCrcy AS ScrapAmountInCoCodeCrcy,
I_LedgerCompanyCodeCrcyRoles.CompanyCodeCurrencyRole AS CompanyCodeCurrencyRole,
cast( _CompanyCodeCurrency.Currency as fis_hwaer preserving type ) AS CompanyCodeCurrency,
I_AssetTimeBasedValuation.ScrapAmountInGlobCrcy AS ScrapAmountInGlobCrcy,
I_LedgerCompanyCodeCrcyRoles.GlobalCurrencyRole AS GlobalCurrencyRole,
cast (_GlobalCurrency.Currency as fins_currk preserving type) AS GlobalCurrency,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy1 AS ScrapAmountInFreeDefinedCrcy1,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency1Role AS FreeDefinedCurrency1Role,
cast ( _FreeDefinedCurrency1.Currency as fins_curr1 preserving type) AS FreeDefinedCurrency1,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy2 AS ScrapAmountInFreeDefinedCrcy2,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency2Role AS FreeDefinedCurrency2Role,
cast ( _FreeDefinedCurrency2.Currency as fins_curr2 preserving type) AS FreeDefinedCurrency2,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy3 AS ScrapAmountInFreeDefinedCrcy3,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency3Role AS FreeDefinedCurrency3Role,
cast ( _FreeDefinedCurrency3.Currency as fins_curr3 preserving type) AS FreeDefinedCurrency3,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy4 AS ScrapAmountInFreeDefinedCrcy4,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency4Role AS FreeDefinedCurrency4Role,
cast ( _FreeDefinedCurrency4.Currency as fins_curr4 preserving type) AS FreeDefinedCurrency4,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy5 AS ScrapAmountInFreeDefinedCrcy5,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency5Role AS FreeDefinedCurrency5Role,
cast ( _FreeDefinedCurrency5.Currency as fins_curr5 preserving type) AS FreeDefinedCurrency5,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy6 AS ScrapAmountInFreeDefinedCrcy6,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency6Role AS FreeDefinedCurrency6Role,
cast ( _FreeDefinedCurrency6.Currency as fins_curr6 preserving type) AS FreeDefinedCurrency6,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy7 AS ScrapAmountInFreeDefinedCrcy7,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency7Role AS FreeDefinedCurrency7Role,
cast ( _FreeDefinedCurrency7.Currency as fins_curr7 preserving type) AS FreeDefinedCurrency7,
I_AssetTimeBasedValuation.ScrapAmountInFreeDefinedCrcy8 AS ScrapAmountInFreeDefinedCrcy8,
I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency8Role AS FreeDefinedCurrency8Role,
cast ( _FreeDefinedCurrency8.Currency as fins_curr8 preserving type) AS FreeDefinedCurrency8
FROM I_AssetTimeBasedValuation
LEFT OUTER JOIN I_Companycodecurrencyrole AS _CompanyCodeCurrency ON CompanyCode = _CompanyCodeCurrency.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.CompanyCodeCurrencyRole = _CompanyCodeCurrency.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _GlobalCurrency ON CompanyCode = _GlobalCurrency.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.GlobalCurrencyRole = _GlobalCurrency.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency1 ON CompanyCode = _FreeDefinedCurrency1.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency1Role = _FreeDefinedCurrency1.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency2 ON CompanyCode = _FreeDefinedCurrency2.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency2Role = _FreeDefinedCurrency2.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency3 ON CompanyCode = _FreeDefinedCurrency3.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency2Role = _FreeDefinedCurrency3.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency4 ON CompanyCode = _FreeDefinedCurrency4.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency3Role = _FreeDefinedCurrency4.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency5 ON CompanyCode = _FreeDefinedCurrency5.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency5Role = _FreeDefinedCurrency5.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency6 ON CompanyCode = _FreeDefinedCurrency6.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency6Role = _FreeDefinedCurrency6.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency7 ON CompanyCode = _FreeDefinedCurrency7.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency7Role = _FreeDefinedCurrency7.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _FreeDefinedCurrency8 ON CompanyCode = _FreeDefinedCurrency8.CompanyCode AND I_LedgerCompanyCodeCrcyRoles.FreeDefinedCurrency8Role = _FreeDefinedCurrency8.CurrencyRole -- 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