C_ChmlCmpstnSubstanceVH
Value Help for Substance in Composition
C_ChmlCmpstnSubstanceVH is a Consumption CDS View that provides data about "Value Help for Substance in Composition" in SAP S/4HANA. It reads from 2 data sources (I_ChmlCompositionDraft, I_SubstanceTP) and exposes 20 fields with key fields ChmlCompositionUUID, SubstanceUUID. It has 1 association to related views. It is exposed through 3 OData services (ASQL_F1497A, ASQL_F3210, ASQL_F5709). Part of development package EHFND_CNS_CMPS_COMN.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlCompositionDraft | _ChmlCompositionDraft | inner |
| I_SubstanceTP | _Substance | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ChmlCompositionUUID | sysuuid_x |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_SubstanceText | _SubstanceText | $projection.SubstanceUUID = _SubstanceText.SubstanceUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Value Help for Substance in Composition | view | |
| AbapCatalog.sqlViewName | CMCMPSTNSUBVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.representativeKey | SubstanceUUID | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view |
OData Services (3)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F1497A | ASQL_F1497A | C2 | NOT_RELEASED | |
| ASQL_F3210 | ASQL_F3210 | C2 | NOT_RELEASED | |
| ASQL_F5709 | ASQL_F5709 | C2 | NOT_RELEASED |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChmlCompositionUUID | |||
| KEY | SubstanceUUID | I_SubstanceTP | SubstanceUUID | Substance |
| ListedSubstanceUUID | I_SubstanceTP | ListedSubstanceUUID | Listed Substance | |
| SubstanceName | I_SubstanceTP | SubstanceName | Substance Name | |
| SubstanceInternalName | I_SubstanceTP | SubstanceInternalName | Internal Name | |
| CustListedSubstanceDfltName | ||||
| CntntListedSubstanceDfltName | ||||
| CompanySubstanceName | I_SubstanceTP | CompanySubstanceName | Substance Name | |
| CustListedSubstance | ||||
| CntntListedSubstance | ||||
| ECNumber | ||||
| CustECNumber | ||||
| CntntECNumber | ||||
| CASNumber | ||||
| CustCASNumber | ||||
| CntntCASNumber | ||||
| CustMolecularFormula | ||||
| CntntMolecularFormula | ||||
| ResponsibleUnit | I_SubstanceTP | ResponsibleUnit | Responsible Unit | |
| _SubstanceText | _SubstanceText |
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 C_ChmlCmpstnSubstanceVH.
-- 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: CMCMPSTNSUBVH
-- Parameters: P_ChmlCompositionUUID : sysuuid_x
CREATE VIEW C_ChmlCmpstnSubstanceVH AS
SELECT
$parameters.P_ChmlCompositionUUID AS ChmlCompositionUUID,
_Substance.SubstanceUUID AS SubstanceUUID,
_Substance.ListedSubstanceUUID AS ListedSubstanceUUID,
_Substance.SubstanceName AS SubstanceName,
_Substance.SubstanceInternalName AS SubstanceInternalName,
_Substance._ListedSubstance.CustListedSubstanceDfltName AS CustListedSubstanceDfltName,
_Substance._ListedSubstance.CntntListedSubstanceDfltName AS CntntListedSubstanceDfltName,
_Substance.CompanySubstanceName AS CompanySubstanceName,
_Substance._ListedSubstance.CustListedSubstance AS CustListedSubstance,
_Substance._ListedSubstance.CntntListedSubstance AS CntntListedSubstance,
_Substance._ListedSubstance.ECNumber AS ECNumber,
_Substance._ListedSubstance.CustECNumber AS CustECNumber,
_Substance._ListedSubstance.CntntECNumber AS CntntECNumber,
_Substance._ListedSubstance.CASNumber AS CASNumber,
_Substance._ListedSubstance.CustCASNumber AS CustCASNumber,
_Substance._ListedSubstance.CntntCASNumber AS CntntCASNumber,
_Substance._ListedSubstance.CustMolecularFormula AS CustMolecularFormula,
_Substance._ListedSubstance.CntntMolecularFormula AS CntntMolecularFormula,
_Substance.ResponsibleUnit AS ResponsibleUnit
FROM I_SubstanceTP AS _Substance
INNER JOIN I_ChmlCompositionDraft AS _ChmlCompositionDraft ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceText AS _SubstanceText ON SubstanceUUID = _SubstanceText.SubstanceUUID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA