P_SubstanceNameText
Substance Names with Listed Substance Names
P_SubstanceNameText is a Composite CDS View that provides data about "Substance Names with Listed Substance Names" in SAP S/4HANA. It reads from 1 data source (I_Substance) and exposes 7 fields. Part of development package EHFND_CNS_SUBSTANCE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Substance | Substance | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Substance Names with Listed Substance Names | view | |
| AbapCatalog.sqlViewName | PSUBNAMTXT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| SubstanceUUID | ||||
| ResponsibleUnit | ResponsibleUnit | |||
| ListedSubstanceUUID | ||||
| SubstanceInternalName | ||||
| CASNumber | ||||
| ECNumber | ||||
| ListedSubstanceasListedSubstance |
@EndUserText.label: 'Substance Names with Listed Substance Names'
@AbapCatalog:
{
sqlViewName: 'PSUBNAMTXT',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SubstanceNameText
--Select data from substance
as select from I_Substance as Substance
{
--UUID of substance
@Consumption.semanticObject: 'CompanySubstance'
key Substance.SubstanceUUID,
ResponsibleUnit,
--UUID of listed substance
Substance.ListedSubstanceUUID,
--Internal Name of substance (language-independent)
Substance.SubstanceInternalName,
--Specification
--CAS Number
cast( Substance.Specification as ehfnd_internal_nr_nc ) as Specification,
--CAS Number
Substance._ListedSubstance.CASNumber,
--EC Number
Substance._ListedSubstance.ECNumber,
--ListedSubstanceDefaultName
Substance._ListedSubstance.ListedSubstance as ListedSubstance,
//1. specific substance name
//2. listed substance name
//3. internal name
cast (
coalesce( coalesce( Substance._SubstanceText[1:Language = $session.system_language].SubstanceName,
Substance._ListedSubstance.ListedSubstanceDefaultName ),
Substance.SubstanceInternalName )
as ehfnd_sub_substance_name_ltd ) as SubstanceName
}
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