/SSB/DESIGNTIME_SAC_STORIES

DDL: /SSB/DESIGNTIME_SAC_STORIES SQL: /SSB/DTSACSTRY Type: view Package: /SSB/CORE

Designtime SAC Stories

/SSB/DESIGNTIME_SAC_STORIES is a CDS View that provides data about "Designtime SAC Stories" in SAP S/4HANA. It reads from 1 data source (/SSB/CORE_SAC_STORIES) and exposes 30 fields with key field Id. It has 12 associations to related views. Part of development package /SSB/CORE.

Data Sources (1)

SourceAliasJoin Type
/SSB/CORE_SAC_STORIES SACStories from

Associations (12)

CardinalityTargetAliasCondition
[0..*] /SSB/CORE_SAC_STORIES_TEXTS SACStoryTexts SACStories.id = SACStoryTexts.Id
[0..*] /SSB/CORE_SAC_STORIES_TAGS Tags SACStories.id = Tags.Id
[0..1] /SSB/SAC_TAG_COUNT TagsCount SACStories.id = TagsCount.id
[0..*] /SSB/CORE_SAC_STORIES_MODELS Models SACStories.id = Models.id
[0..1] /SSB/SAC_MODEL_COUNT ModelsCount SACStories.id = ModelsCount.id
[0..1] I_User UserName SACStories.changed_by = UserName.UserID
[0..1] /ssb/Core_Favourites Favourites SACStories.id = Favourites.id and Favourites.type = 'AC' and Favourites.user_id = $session.user
[0..*] /SSB/CORE_SAC_STORY_TILES SAC_CHIPS SACStories.id = SAC_CHIPS.id
[0..1] /SSB/SAC_STORY_TILES_COUNT StoryTilesCount SACStories.id = StoryTilesCount.id
[0..1] /SSB/CORE_USERS Users SACStories.owner = Users.UserId
[0..1] /SSB/STORIES_LATEST_JOB_STATUS StoryLatestJobInfo SACStories.id = StoryLatestJobInfo.id
[1..1] /SSB/PACKAGES Packages Packages.PackageName = SACStories.devclass

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName /SSB/DTSACSTRY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Designtime SAC Stories view
AccessControl.personalData.blocking #REQUIRED view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY Id /SSB/CORE_SAC_STORIES id WorklistID
Resource_Id /SSB/CORE_SAC_STORIES resource_id UUID Internal
Resource_Type /SSB/CORE_SAC_STORIES resource_type SAC resource type
Resource_SubType /SSB/CORE_SAC_STORIES resource_subtype SAC resource subtype
Namespace /SSB/CORE_SAC_STORIES namespace Parameter Namespace
idasTitle
Description
PackageName devclass Package (Obsolete)
Application_Component Packages ApplicationComponent
Application_Component_Text Packages ApplicationComponentText
Owner /SSB/CORE_SAC_STORIES owner Vehicle Owner
OwnerName Users UserName User who owns item
OwnerEmail Users UserEmail
ChangedByUser
Created_By /SSB/CORE_SAC_STORIES created_by Version Created By
Created_On /SSB/CORE_SAC_STORIES created_on Variant created on
Changed_By /SSB/CORE_SAC_STORIES changed_by User Name
Changed_On /SSB/CORE_SAC_STORIES changed_on Variant Changed on
PrimaryTag TagsCount PrimaryTag
TagsCount TagsCount TagsCount
PrimaryDataSource ModelsCount PrimaryDataSource
DataSourceCount ModelsCount DataSourceCount
ApplicationCount StoryTilesCount TilesCount
ManualEntry Favourites manual_entry Manual Entry Flag
JobStatus StoryLatestJobInfo job_status Job status
JobType StoryLatestJobInfo job_type Type of job
SACStoryTexts SACStoryTexts
Tags Tags Template Tags
Models Models
SAC_CHIPS SAC_CHIPS

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view /SSB/DESIGNTIME_SAC_STORIES.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: /SSB/DTSACSTRY

CREATE VIEW /SSB/DESIGNTIME_SAC_STORIES AS
SELECT
  SACStories.id AS Id,
  SACStories.resource_id AS Resource_Id,
  SACStories.resource_type AS Resource_Type,
  SACStories.resource_subtype AS Resource_SubType,
  SACStories.namespace AS Namespace,
  coalesce ( SACStoryTexts[1: IsLogonLanguage = 1].Title, SACStories.id) as Title AS idasTitle,
  SACStoryTexts[1: IsLogonLanguage = 1].Description AS Description,
  devclass AS PackageName,
  Packages.ApplicationComponent AS Application_Component,
  Packages.ApplicationComponentText AS Application_Component_Text,
  SACStories.owner AS Owner,
  Users.UserName AS OwnerName,
  Users.UserEmail AS OwnerEmail,
  coalesce( UserName.UserDescription, SACStories.changed_by ) AS ChangedByUser,
  SACStories.created_by AS Created_By,
  SACStories.created_on AS Created_On,
  SACStories.changed_by AS Changed_By,
  SACStories.changed_on AS Changed_On,
  TagsCount.PrimaryTag AS PrimaryTag,
  TagsCount.TagsCount AS TagsCount,
  ModelsCount.PrimaryDataSource AS PrimaryDataSource,
  ModelsCount.DataSourceCount AS DataSourceCount,
  StoryTilesCount.TilesCount AS ApplicationCount,
  Favourites.manual_entry AS ManualEntry,
  StoryLatestJobInfo.job_status AS JobStatus,
  StoryLatestJobInfo.job_type AS JobType,
  SACStoryTexts,
  Tags,
  Models,
  SAC_CHIPS
FROM /SSB/CORE_SAC_STORIES AS SACStories
LEFT OUTER JOIN /SSB/CORE_SAC_STORIES_TEXTS AS SACStoryTexts ON SACStories.id = SACStoryTexts.Id  -- association [0..*]
LEFT OUTER JOIN /SSB/CORE_SAC_STORIES_TAGS AS Tags ON SACStories.id = Tags.Id  -- association [0..*]
LEFT OUTER JOIN /SSB/SAC_TAG_COUNT AS TagsCount ON SACStories.id = TagsCount.id  -- association [0..1]
LEFT OUTER JOIN /SSB/CORE_SAC_STORIES_MODELS AS Models ON SACStories.id = Models.id  -- association [0..*]
LEFT OUTER JOIN /SSB/SAC_MODEL_COUNT AS ModelsCount ON SACStories.id = ModelsCount.id  -- association [0..1]
LEFT OUTER JOIN I_User AS UserName ON SACStories.changed_by = UserName.UserID  -- association [0..1]
LEFT OUTER JOIN /ssb/Core_Favourites AS Favourites ON SACStories.id = Favourites.id AND Favourites.type = 'AC' AND Favourites.user_id = $session.user  -- association [0..1]
LEFT OUTER JOIN /SSB/CORE_SAC_STORY_TILES AS SAC_CHIPS ON SACStories.id = SAC_CHIPS.id  -- association [0..*]
LEFT OUTER JOIN /SSB/SAC_STORY_TILES_COUNT AS StoryTilesCount ON SACStories.id = StoryTilesCount.id  -- association [0..1]
LEFT OUTER JOIN /SSB/CORE_USERS AS Users ON SACStories.owner = Users.UserId  -- association [0..1]
LEFT OUTER JOIN /SSB/STORIES_LATEST_JOB_STATUS AS StoryLatestJobInfo ON SACStories.id = StoryLatestJobInfo.id  -- association [0..1]
LEFT OUTER JOIN /SSB/PACKAGES AS Packages ON Packages.PackageName = SACStories.devclass  -- association [1..1]
;