I_LstdSubstWthVarAndGrpName

DDL: I_LSTDSUBSTWTHVARANDGRPNAME Type: view_entity BASIC Package: EHFND_BO_LISTED_SUBSTANCE

Names of Listed Substances and Groups

I_LstdSubstWthVarAndGrpName is a Basic CDS View that provides data about "Names of Listed Substances and Groups" in SAP S/4HANA. It reads from 1 data source (ehfndd_lisu_name) and exposes 15 fields with key field ListedSubstanceNameUUID. It has 2 associations to related views. Part of development package EHFND_BO_LISTED_SUBSTANCE.

Data Sources (1)

SourceAliasJoin Type
ehfndd_lisu_name ehfndd_lisu_name from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (8)

NameValueLevelField
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Names of Listed Substances and Groups view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey ListedSubstanceNameUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY ListedSubstanceNameUUID UUID
ListedSubstanceNameCharUUID BCO KEY
ListedSubstance listsub_id Pollutant Container
ListedSubstanceUUID UUID
Language language Report Text Language
ListedSubstanceName text User Group
ListedSubstanceNormName text_normed Text
ListedSubstanceNameSequence sequence_number Sort Sequence
ListedSubstanceNameIdentifier name_id Name ID
CreationDateTime Created On/At
CreatedByUser user_id_cr Created By
LastChangeDateTime Changed On/At
LastChangedByUser user_id_ch Changed By
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser

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 I_LstdSubstWthVarAndGrpName.
-- 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.

CREATE VIEW I_LstdSubstWthVarAndGrpName AS
SELECT
  cast(db_key as ehfnd_lisu_name_uuid preserving type) AS ListedSubstanceNameUUID,
  cast(bco_key as ehfnd_lisu_name_char_uuid preserving type) AS ListedSubstanceNameCharUUID,
  listsub_id AS ListedSubstance,
  cast(parent_key as ehfnd_lisu_key_nce preserving type) AS ListedSubstanceUUID,
  Language,
  text AS ListedSubstanceName,
  text_normed AS ListedSubstanceNormName,
  sequence_number AS ListedSubstanceNameSequence,
  name_id AS ListedSubstanceNameIdentifier,
  cast(datetime_cr as timestamp preserving type) AS CreationDateTime,
  user_id_cr AS CreatedByUser,
  cast(datetime_ch as timestamp preserving type) AS LastChangeDateTime,
  user_id_ch AS LastChangedByUser
FROM ehfndd_lisu_name
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
;