/SSB/PRIMARY_TAG_AND_COUNT

DDL: /SSB/PRIMARY_TAG_AND_COUNT SQL: /SSB/_PTAG Type: view

Fetch 1 tag & count for each entity type

/SSB/PRIMARY_TAG_AND_COUNT is a CDS View that provides data about "Fetch 1 tag & count for each entity type" in SAP S/4HANA. It reads from 1 data source (/ssb/Core_Tags) and exposes 5 fields with key fields id, type, isActive.

Data Sources (1)

SourceAliasJoin Type
/ssb/Core_Tags /ssb/Core_Tags from

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName /SSB/_PTAG view
ObjectModel.usageType.serviceQuality #P view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Fetch 1 tag & count for each entity type view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY id id WorklistID
KEY type type Worklist Type
KEY isActive is_active Truth Value
Tag
tagcount

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/PRIMARY_TAG_AND_COUNT.
-- 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/_PTAG

CREATE VIEW /SSB/PRIMARY_TAG_AND_COUNT AS
SELECT
  id,
  type,
  is_active AS isActive,
  min (tag) AS Tag,
  count (distinct tag) AS tagcount
FROM /ssb/Core_Tags
;