C_AURSStore
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Site | I_Site | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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,
_Address.PostalCode as PostalCode,
@Semantics.text: true
_Address.CityName as CityName,
_Address.StreetName as StreetName,
_RetailStoreApplicationStore,
_AssignedUser,
_AssignableUser
}
where
SiteCategory = 'A'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRESS",
"I_RETAILSTOREUSERASSIGNMENT",
"I_SITE"
],
"ASSOCIATED":
[
"C_AURSASSIGNABLEUSER",
"C_AURSSTOREUSER",
"I_RETAILSTOREAPPLICATIONSTORE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA