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
StoreName SiteName
PointOfSaleStorageLocation
_Settings _Settings
_StorageLocation _StorageLocation
_RetailStoreApplicationStore _RetailStoreApplicationStore
@AbapCatalog.sqlViewName: 'CMSPWSTORE'

@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_StorageLocation','_Settings']
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION
@ObjectModel: {
    representativeKey: 'Store',
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #S,
    usageType.dataClass: #MIXED
}
define view C_MSPWStore
  as select from I_Site
  //    inner join   P_MSPWStorePosStorageLocation on I_Site.Site = P_MSPWStorePosStorageLocation.Store


  association [0..1] to C_MSPWSettings                as _Settings                    on  $projection.Store = _Settings.Store
  association [0..*] to C_MSPWStorageLocation         as _StorageLocation             on  $projection.Store = _StorageLocation.Store
  association [0..*] to I_RetailStoreApplicationStore as _RetailStoreApplicationStore on  $projection.Store                                           = _RetailStoreApplicationStore.Store
                                                                                      and _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'
{
  key Site                                                               as Store,

      SiteName                                                           as StoreName,

      I_Site._SitePointOfSale._PointOfSaleInboundProfile.StorageLocation as PointOfSaleStorageLocation,
      //      P_MSPWStorePosStorageLocation.StorageLocation as PointOfSaleStorageLocation,


      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _Settings,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _StorageLocation,

      _RetailStoreApplicationStore
}
where
  SiteCategory = 'A'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_POINTOFSALEINBOUNDPROFILE",
"I_SITE",
"I_SITEPOINTOFSALE"
],
"ASSOCIATED":
[
"C_MSPWSETTINGS",
"C_MSPWSTORAGELOCATION",
"I_RETAILSTOREAPPLICATIONSTORE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/