C_MSPWStore

DDL: C_MSPWSTORE SQL: CMSPWSTORE Type: view CONSUMPTION

C_MSPWStore is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_Site) and exposes 6 fields with key field Store. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Site I_Site from

Associations (3)

CardinalityTargetAliasCondition
[0..1] C_MSPWSettings _Settings $projection.Store = _Settings.Store
[0..*] C_MSPWStorageLocation _StorageLocation $projection.Store = _StorageLocation.Store
[0..*] I_RetailStoreApplicationStore _RetailStoreApplicationStore $projection.Store = _RetailStoreApplicationStore.Store and _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMSPWSTORE view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey Store view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Store Site Plant
StoreName SiteName
PointOfSaleStorageLocation
_Settings _Settings
_StorageLocation _StorageLocation
_RetailStoreApplicationStore _RetailStoreApplicationStore

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 C_MSPWStore.
-- 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: CMSPWSTORE

CREATE VIEW C_MSPWStore AS
SELECT
  Site AS Store,
  SiteName AS StoreName,
  I_Site._SitePointOfSale._PointOfSaleInboundProfile.StorageLocation AS PointOfSaleStorageLocation
FROM I_Site
LEFT OUTER JOIN C_MSPWSettings AS _Settings ON Store = _Settings.Store  -- association [0..1]
LEFT OUTER JOIN C_MSPWStorageLocation AS _StorageLocation ON Store = _StorageLocation.Store  -- association [0..*]
LEFT OUTER JOIN I_RetailStoreApplicationStore AS _RetailStoreApplicationStore ON Store = _RetailStoreApplicationStore.Store AND _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'  -- association [0..*]
;