I_RetailStoreSchemaForStore

DDL: I_RETAILSTORESCHEMAFORSTORE SQL: IRTSTSCHMAFORSTR Type: view COMPOSITE Package: ODATA_RETAIL_ST_COMMON

Retail Store Customizng Schema for Store

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

Data Sources (2)

SourceAliasJoin Type
I_RetailStoreSchemaType I_RetailStoreSchemaType cross
I_Site I_Site from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_RetailStoreSchemaStoreAssgmt _SchemaStoreAssgmt _SchemaStoreAssgmt.RetailStoreSchemaType = $projection.RetailStoreSchemaType and _SchemaStoreAssgmt.Store = $projection.Store
[0..1] I_RetailStoreSchema _DefaultSchema _DefaultSchema.RetailStoreSchemaType = $projection.RetailStoreSchemaType and _DefaultSchema.IsDefaultValue = 'X'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IRTSTSCHMAFORSTR view
EndUserText.label Retail Store Customizng Schema for Store view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY RetailStoreSchemaType RetailStoreSchemaType Setting ID
KEY Store Site Plant
RetailStoreSchemaID

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_RetailStoreSchemaForStore.
-- 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: IRTSTSCHMAFORSTR

CREATE VIEW I_RetailStoreSchemaForStore AS
SELECT
  RetailStoreSchemaType,
  Site AS Store,
  coalesce(_SchemaStoreAssgmt.RetailStoreSchemaID, _DefaultSchema.RetailStoreSchemaID) AS RetailStoreSchemaID
FROM I_Site
CROSS JOIN I_RetailStoreSchemaType
LEFT OUTER JOIN I_RetailStoreSchemaStoreAssgmt AS _SchemaStoreAssgmt ON _SchemaStoreAssgmt.RetailStoreSchemaType = RetailStoreSchemaType AND _SchemaStoreAssgmt.Store = Store  -- association [0..1]
LEFT OUTER JOIN I_RetailStoreSchema AS _DefaultSchema ON _DefaultSchema.RetailStoreSchemaType = RetailStoreSchemaType AND _DefaultSchema.IsDefaultValue = 'X'  -- association [0..1]
;