P_Salesview_Fs
P_Salesview_Fs is a Composite CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 13 fields with key fields Product, ValuationArea, ValuationType.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | CCode | left_outer |
| I_MaterialText | MaterialText | left_outer |
| P_PlantAddrDetails_Fs | PlantData | left_outer |
| I_Product | PrdData | left_outer |
| P_Matlpricecntrltext | PriceControl | left_outer |
| I_ProductValuation | ProdVal | from |
| I_UnitOfMeasureText | UnitOfMeasureText | left_outer |
| I_Purreqvaluationarea | ValArea | left_outer |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSALESVIEWFS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_ProductValuation | Product | Product Sold |
| KEY | ValuationArea | I_ProductValuation | ValuationArea | Valuation Area |
| KEY | ValuationType | I_ProductValuation | ValuationType | Valuation Type |
| MovingAveragePrice | I_ProductValuation | MovingAveragePrice | Per. Unit Price | |
| PriceUnitQty | I_ProductValuation | PriceUnitQty | Price unit | |
| InventoryValuationProcedure | I_ProductValuation | InventoryValuationProcedure | Price Control | |
| StandardPrice | I_ProductValuation | StandardPrice | Standard price | |
| CompanyCode | I_Purreqvaluationarea | CompanyCode | Receiver Company Code | |
| Currency | I_CompanyCode | Currency | Valuation Crcy | |
| Plant | P_PlantAddrDetails_Fs | Plant | Valuation Area | |
| PlantName | P_PlantAddrDetails_Fs | PlantName | Plant Name | |
| PriceControlText | P_Matlpricecntrltext | Description | Well Code Des. | |
| UnitOfMeasureLongName | I_UnitOfMeasureText | UnitOfMeasureLongName | Meas. Unit Text |
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_Salesview_Fs.
-- 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: PSALESVIEWFS
CREATE VIEW P_Salesview_Fs AS
SELECT
ProdVal.Product AS Product,
ProdVal.ValuationArea AS ValuationArea,
ProdVal.ValuationType AS ValuationType,
ProdVal.MovingAveragePrice AS MovingAveragePrice,
ProdVal.PriceUnitQty AS PriceUnitQty,
ProdVal.InventoryValuationProcedure AS InventoryValuationProcedure,
ProdVal.StandardPrice AS StandardPrice,
ValArea.CompanyCode AS CompanyCode,
CCode.Currency AS Currency,
PlantData.Plant AS Plant,
PlantData.PlantName AS PlantName,
PriceControl.Description AS PriceControlText,
UnitOfMeasureText.UnitOfMeasureLongName AS UnitOfMeasureLongName
FROM I_ProductValuation AS ProdVal
LEFT OUTER JOIN I_Purreqvaluationarea AS ValArea ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Product AS PrdData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PlantAddrDetails_Fs AS PlantData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialText AS MaterialText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS CCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Matlpricecntrltext AS PriceControl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UnitOfMeasureText AS UnitOfMeasureText ON /* join condition not captured in parsed metadata */
;
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