C_AURSStore

DDL: C_AURSSTORE Type: view_entity CONSUMPTION Package: RFM_STORE_ASSIGN_USER

Store

C_AURSStore is a Consumption CDS View that provides data about "Store" in SAP S/4HANA. It reads from 1 data source (I_Site) and exposes 12 fields with key field Store. It has 4 associations to related views. It is exposed through 1 OData service (UI_RFM_STORE_ASSIGNUSER). It is used in 2 Fiori applications: My Store Assignment, Assign Associates to Store. Part of development package RFM_STORE_ASSIGN_USER.

Data Sources (1)

SourceAliasJoin Type
I_Site I_Site from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_RetailStoreUserAssignment _RetailStoreUserAssignment _RetailStoreUserAssignment.Store = $projection.Store and _RetailStoreUserAssignment.AssignedUser = $session.user
[0..*] I_RetailStoreApplicationStore _RetailStoreApplicationStore _RetailStoreApplicationStore.Store = $projection.Store and _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'
[0..*] C_AURSStoreUser _AssignedUser
[0..*] C_AURSAssignableUser _AssignableUser

Annotations (9)

NameValueLevelField
EndUserText.label Store view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ObjectModel.representativeKey Store view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

OData Services (1)

ServiceBindingVersionContractRelease
UI_RFM_STORE_ASSIGNUSER UI_RFM_STORE_ASSIGNUSER V2 C1 NOT_RELEASED

Fiori Apps (2)

App IDApp NameTypeDescription
F4334 My Store Assignment Transactional With this app, you can work in different stores and with various SAP Fiori apps for in-store merchandise and inventory management frequently as a store associate. For example, store associate can view all store assignments and can assign oneself to work with the apps in a specific store.
F8523 Assign Associates to Store Transactional With this app, you can work in different stores and with various SAP Fiori apps for in-store merchandise and inventory management frequently as store manager or associate. For example, store manager can view all store assignments and can assign store associates to work with the apps in a specific store.

My Store Assignment

Business Role: Retail Store Associate

With this app you can assign your own user and other users to stores. You can also display the store assignments of all users.

Assign Associates to Store

Business Role: Retail Store Manager

With this app, as a store manager, you can view available users, their store assignments, and reassign them to different stores. For example, store managers can review all store assignments and grant store associates access to apps for specific stores.

Key Features: Assign users to stores to access all the retail in-store merchandise and inventory management apps. Assign multiple store associates to a store simultaneously. View the store assignments for all store associates.

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Store
StoreName
AddressID AddressID
FormattedAddress
UserHasStoreUserAssignAuthzn
UserHasStoreUserUnassignAuthzn
PostalCode _Address PostalCode
CityName _Address CityName
StreetName _Address StreetName
_RetailStoreApplicationStore _RetailStoreApplicationStore
_AssignedUser _AssignedUser
_AssignableUser _AssignableUser
@EndUserText.label: 'Store'

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED

@VDM.viewType: #CONSUMPTION
@VDM.usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
@Metadata.allowExtensions: true
@ObjectModel: {
    representativeKey: 'Store',
    semanticKey: ['Store'],
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #M,
    usageType.dataClass: #MASTER
}
define root view entity C_AURSStore
  as select from I_Site

  composition [0..*] of C_AURSStoreUser               as _AssignedUser
  association [0..1] to I_RetailStoreUserAssignment   as _RetailStoreUserAssignment   on  _RetailStoreUserAssignment.Store        = $projection.Store
                                                                                      and _RetailStoreUserAssignment.AssignedUser = $session.user
  association [0..*] to I_RetailStoreApplicationStore as _RetailStoreApplicationStore on  _RetailStoreApplicationStore.Store                          = $projection.Store
                                                                                      and _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'
  composition [0..*] of C_AURSAssignableUser          as _AssignableUser

{
      @Consumption.semanticObject: 'Site'
      @ObjectModel.text.element: ['StoreName']
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_SiteStdVH',
                     element: 'Site' }
        }]
  key cast(Site as store preserving type)         as Store,

      @Semantics.text: true
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_SiteStdVH',
                     element: 'SiteName' }
        }]
      cast(SiteName as storename preserving type) as StoreName,

      AddressID                                   as AddressID,

      @ObjectModel.virtualElement:true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_RETAIL_ST_ADDRESS_FORMAT'
      cast('' as char200)                         as FormattedAddress,

      @Semantics.booleanIndicator: true
      case when _RetailStoreUserAssignment.Store is not null then 'X'
           else ''
      end                                         as RetailStoreIsAssignedToUser,

      @ObjectModel.virtualElement:true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_RTST_AU_SADL_CALC_EXIT'
      cast('' as boolean)                         as UserHasStoreUserAssignAuthzn,

      @ObjectModel.virtualElement:true
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_RTST_AU_SADL_CALC_EXIT'
      cast('' as boolean)                         as UserHasStoreUserUnassignAuthzn,

      @Consumption.valueHelpDefinition: [
              { entity:  { name:    'I_SiteStdVH',
                           element: 'PostalCode' }
              }]
      _Address.PostalCode                         as PostalCode,

      @Semantics.text: true
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_SiteStdVH',
                     element: 'CityName' }
        }]
      _Address.CityName                           as CityName,

      @Consumption.valueHelpDefinition: [
              { entity:  { name:    'I_SiteStdVH',
                           element: 'StreetName' }
              }]
      _Address.StreetName                         as StreetName,

      _RetailStoreApplicationStore,

      _AssignedUser,
      _AssignableUser
}
where
  SiteCategory = 'A'