I_ListedSubstanceVariant
Listed Substance Variant View
I_ListedSubstanceVariant is a Basic CDS View that provides data about "Listed Substance Variant View" in SAP S/4HANA. It reads from 2 data sources (ehfndi_lisu_rt, ehfndi_lisu_rt) and exposes 17 fields with key field ListedSubstanceVariantUUID. It has 5 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| ehfndi_lisu_rt | ListSub | from |
| ehfndi_lisu_rt | ListSubRef | inner |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ListedSubstanceCndnText | _ConditionText | $projection.ListedSubstanceCndn = _ConditionText.ListedSubstanceCndn |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..*] | I_ListedSubstanceNameText | _Text | $projection.ListedSubstanceVariantUUID = _Text.ListedSubstanceUUID |
| [0..1] | I_ListedSubstanceDefaultName | _DefaultName | $projection.ListedSubstanceVariant = _DefaultName.ListedSubstance |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILISUVAR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Listed Substance Variant View | view | |
| ObjectModel.representativeKey | ListedSubstanceVariantUUID | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ListedSubstanceVariantUUID | |||
| _Text | _Text | |||
| _DefaultName | _DefaultName | |||
| ListedSubstanceVariant | ehfndi_lisu_rt | listsub_id | ||
| ListedSubstanceReference | ehfndi_lisu_rt | listsub_id_root | ||
| ListedSubstanceUUID | ||||
| ListedSubstanceCndn | ||||
| _ConditionText | _ConditionText | |||
| CASNumber | ||||
| ECNumber | ehfndi_lisu_rt | ec_number | ||
| MolecularFormula | ehfndi_lisu_rt | mol_formula | ||
| CreatedByUser | ehfndi_lisu_rt | user_id_cr | ||
| _CreatedByUser | _CreatedByUser | |||
| CreationDateTime | ||||
| LastChangeDateTime | ||||
| LastChangedByUser | ehfndi_lisu_rt | user_id_ch | ||
| _LastChangedByUser | _LastChangedByUser |
@AbapCatalog.sqlViewName: 'ILISUVAR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl:
{
authorizationCheck: #CHECK,
privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser' ]
}
@EndUserText.label: 'Listed Substance Variant View'
@ObjectModel.representativeKey: 'ListedSubstanceVariantUUID'
@VDM.viewType: #BASIC
// Client handling by session
@ClientHandling.algorithm: #SESSION_VARIABLE
// Used for BOBF Master Data Object
@ObjectModel.usageType:
{
serviceQuality: #C, // < 15 msec
sizeCategory: #L, // < 10.000.000
dataClass: #MASTER
}
// Listed Substance Variants (also called conditions / sub-roots)
// variants are only contained in the delivered listed substance table and can not be created by customers
define view I_ListedSubstanceVariant
as select from ehfndi_lisu_rt as ListSub
inner join ehfndi_lisu_rt as ListSubRef on ListSub.listsub_id_root = ListSubRef.listsub_id
association [0..*] to I_ListedSubstanceCndnText as _ConditionText on $projection.ListedSubstanceCndn = _ConditionText.ListedSubstanceCndn
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
association [0..*] to I_ListedSubstanceNameText as _Text on $projection.ListedSubstanceVariantUUID = _Text.ListedSubstanceUUID
association [0..1] to I_ListedSubstanceDefaultName as _DefaultName on $projection.ListedSubstanceVariant = _DefaultName.ListedSubstance
{
key cast( ListSub.db_key as ehfnd_lisu_key_nce preserving type ) as ListedSubstanceVariantUUID,
_Text,
_DefaultName,
// ID
ListSub.listsub_id as ListedSubstanceVariant,
ListSub.listsub_id_root as ListedSubstanceReference,
cast( ListSubRef.db_key as ehfnd_lisu_key_nce preserving type ) as ListedSubstanceUUID,
@ObjectModel.text.association: '_ConditionText'
cast( ListSub.condition_code as ehfnd_lisu_cond_code_plain preserving type ) as ListedSubstanceCndn,
_ConditionText,
// Identifiers
cast( ListSub.cas_number as ehfnd_chm_cas_no preserving type ) as CASNumber,
ListSub.ec_number as ECNumber,
ListSub.mol_formula as MolecularFormula,
// Admin data
ListSub.user_id_cr as CreatedByUser,
_CreatedByUser,
@Semantics.systemDateTime.createdAt: true
cast(ListSub.datetime_cr as timestamp preserving type) as CreationDateTime,
@Semantics.systemDateTime.lastChangedAt: true
cast(ListSub.datetime_ch as timestamp preserving type) as LastChangeDateTime,
ListSub.user_id_ch as LastChangedByUser,
_LastChangedByUser
}
where
ListSub.listsub_id_root <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EHFNDI_LISU_RT"
],
"ASSOCIATED":
[
"I_LISTEDSUBSTANCECNDNTEXT",
"I_LISTEDSUBSTANCEDEFAULTNAME",
"I_LISTEDSUBSTANCENAMETEXT",
"I_USER"
],
"BASE":
[],
"ANNO_REF":
[],
"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