C_AURSStoreUser

DDL: C_AURSSTOREUSER Type: view_entity CONSUMPTION

C_AURSStoreUser is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_RetailStoreUserAssignment) and exposes 7 fields with key fields Store, AssignedUser. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_RetailStoreUserAssignment I_RetailStoreUserAssignment from

Associations (1)

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

Annotations (8)

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

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Store Store
KEY AssignedUser AssignedUser
FullName _UserContactCard FullName
FirstName _UserContactCard FirstName
LastName _UserContactCard LastName
IsCurrentUser
_ParentStore _ParentStore
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED

@VDM.viewType: #CONSUMPTION
@Metadata.allowExtensions: true
@ObjectModel: {
    representativeKey: 'AssignedUser',
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #L,
    usageType.dataClass: #MASTER
}
define view entity C_AURSStoreUser
  as select from I_RetailStoreUserAssignment

  association        to parent C_AURSStore as _ParentStore     on $projection.Store = _ParentStore.Store
  association [0..1] to I_UserContactCard  as _UserContactCard on $projection.AssignedUser = _UserContactCard.ContactCardID
{
  key Store,
  key AssignedUser,

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

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

      _ParentStore
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_RETAILSTOREUSERASSIGNMENT",
"I_USERCONTACTCARD"
],
"ASSOCIATED":
[
"C_AURSSTORE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/