C_AURSAssignableUser

DDL: C_AURSASSIGNABLEUSER SQL: CAURSASSBLUSER Type: view CONSUMPTION Package: RFM_STORE_ASSIGN_USER

AURS: User Assignable to Store

C_AURSAssignableUser is a Consumption CDS View that provides data about "AURS: User Assignable to Store" in SAP S/4HANA. It reads from 1 data source (I_RetailStoreAssignableUser) and exposes 8 fields with key fields Store, UserID. It has 2 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_RetailStoreAssignableUser I_RetailStoreAssignableUser from

Associations (2)

CardinalityTargetAliasCondition
[0..1] C_AURSStoreUser _UserAssignment $projection.UserID = _UserAssignment.AssignedUser
[0..1] I_UserContactCard _UserContactCard $projection.UserID = _UserContactCard.ContactCardID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CAURSASSBLUSER 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 #D view
ObjectModel.usageType.sizeCategory #L 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 (8)

KeyFieldSource TableSource FieldDescription
KEY Store Store
KEY UserID UserID
AssignedStore _UserAssignment Store
FirstName _UserContactCard FirstName
LastName _UserContactCard LastName
FullName _UserContactCard FullName
IsCurrentUser
_ParentStore _ParentStore
@AbapCatalog.sqlViewName: 'CAURSASSBLUSER'

@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION
@ObjectModel: {
    representativeKey: 'Store',
    usageType.serviceQuality: #D,
    usageType.sizeCategory: #L,
    usageType.dataClass: #MASTER
}
define view C_AURSAssignableUser
  as select from I_RetailStoreAssignableUser

  association        to parent C_AURSStore as _ParentStore     on $projection.Store = _ParentStore.Store
  /*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ]  } */
  association [0..1] to C_AURSStoreUser    as _UserAssignment  on $projection.UserID = _UserAssignment.AssignedUser
  association [0..1] to I_UserContactCard  as _UserContactCard on $projection.UserID = _UserContactCard.ContactCardID
{
  key Store,
  key UserID,

      _UserAssignment.Store                                                                  as AssignedStore,

      _UserContactCard.FirstName,
      _UserContactCard.LastName,
      _UserContactCard.FullName,

      cast(case when UserID = $session.user then 'X' else '' end as boolean preserving type) as IsCurrentUser,

      _ParentStore
}
where
     _UserAssignment.Store is null  // no existing assignment

  or _UserAssignment.Store != Store // existing assignment to other store