P_MSPWSellableProduct

DDL: P_MSPWSELLABLEPRODUCT SQL: PMSPWSELLABLPROD Type: view BASIC

P_MSPWSellableProduct is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_ProductPlant, I_Site) and exposes 2 fields with key fields Store, Product. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ProductPlant I_ProductPlant from
I_Site I_Site inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_ProductSalesDeliveryPOS _ProductPosControlSalesOrg _ProductPosControlSalesOrg.Product = I_ProductPlant.Product and _ProductPosControlSalesOrg.ProductSalesOrg = I_Site.SalesOrganization and _ProductPosControlSalesOrg.ProductDistributionChnl = I_Site.DistributionChannel and _ProductPosControlSalesOrg.Plant = ''
[0..1] I_ProductSalesDeliveryPOS _ProductPosControlStore _ProductPosControlStore.Product = I_ProductPlant.Product and _ProductPosControlStore.ProductSalesOrg = I_Site.SalesOrganization and _ProductPosControlStore.ProductDistributionChnl = I_Site.DistributionChannel and _ProductPosControlStore.Plant = I_Site.Site

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.sqlViewName PMSPWSELLABLPROD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #BASIC view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY Store I_ProductPlant Plant Valuation Area
KEY Product I_ProductPlant Product Product Sold

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_MSPWSellableProduct.
-- 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: PMSPWSELLABLPROD

CREATE VIEW P_MSPWSellableProduct AS
SELECT
  I_ProductPlant.Plant AS Store,
  I_ProductPlant.Product AS Product
FROM I_ProductPlant
INNER JOIN I_Site ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductSalesDeliveryPOS AS _ProductPosControlSalesOrg ON _ProductPosControlSalesOrg.Product = I_ProductPlant.Product AND _ProductPosControlSalesOrg.ProductSalesOrg = I_Site.SalesOrganization AND _ProductPosControlSalesOrg.ProductDistributionChnl = I_Site.DistributionChannel AND _ProductPosControlSalesOrg.Plant = ''  -- association [0..1]
LEFT OUTER JOIN I_ProductSalesDeliveryPOS AS _ProductPosControlStore ON _ProductPosControlStore.Product = I_ProductPlant.Product AND _ProductPosControlStore.ProductSalesOrg = I_Site.SalesOrganization AND _ProductPosControlStore.ProductDistributionChnl = I_Site.DistributionChannel AND _ProductPosControlStore.Plant = I_Site.Site  -- association [0..1]
;