I_ProductsForSaleInRtlStore

DDL: I_PRODUCTSFORSALEINRTLSTORE SQL: IRTSTSELLABLPROD Type: view COMPOSITE Package: ODATA_RETAIL_ST_COMMON

Retail Store Products available for sale

I_ProductsForSaleInRtlStore is a Composite CDS View that provides data about "Retail Store Products available for sale" in SAP S/4HANA. It reads from 2 data sources (I_ProductPlant, I_Site) and exposes 3 fields with key fields Store, Product. It has 2 associations to related views. Part of development package ODATA_RETAIL_ST_COMMON.

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 (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
AbapCatalog.sqlViewName IRTSTSELLABLPROD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
EndUserText.label Retail Store Products available for sale view

Fields (3)

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

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_ProductsForSaleInRtlStore.
-- 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: IRTSTSELLABLPROD

CREATE VIEW I_ProductsForSaleInRtlStore 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]
;