P_SubstanceSubstListUnion
Substance Lists of Substances
P_SubstanceSubstListUnion is a Consumption CDS View that provides data about "Substance Lists of Substances" in SAP S/4HANA. It reads from 6 data sources and exposes 19 fields with key field UUID. Part of development package EHFND_CNS_SUBSTANCE.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_CmplRqVersExposureLimit | _ExposureLimit | union_all |
| I_CmplRqVersOrganicPrxd | _OrganicPrxd | union_all |
| I_CmplRqVersSelfReactvSubst | _SelfReactvSubst | union_all |
| I_CmplRqVersThldListItm | _ThldListItm | union_all |
| I_CmplRqVersGrpAssgmt | GroupAssgmt | from |
| I_CmplRqVersGrpAssgmtCust | GroupAssgmtChange | union_all |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Substance Lists of Substances | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UUID | I_CmplRqVersGrpAssgmt | SubstanceGrpAssgmtUUID | Substance Group Assignment |
| CmplRqVersUUID | I_CmplRqVersGrpAssgmt | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | Substance List | |||
| SubstanceGrpAssgmtCustChgdUUIDasUUID | ||||
| CmplRqVersUUID | I_CmplRqVersGrpAssgmtCust | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersGrpAssgmtCust | SubstanceListUUID | Substance List | |
| SubstanceListItmUUIDasUUID | ||||
| CmplRqVersUUID | I_CmplRqVersThldListItm | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersThldListItm | SubstanceListUUID | Substance List | |
| OccptlExpsrLmtUUIDasUUID | ||||
| CmplRqVersUUID | I_CmplRqVersExposureLimit | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersExposureLimit | SubstanceListUUID | Substance List | |
| CmplRqVersOrganicPrxdUUIDasUUID | ||||
| CmplRqVersUUID | I_CmplRqVersOrganicPrxd | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersOrganicPrxd | SubstanceListUUID | Substance List | |
| CmplRqVersSelfReactvSubstUUIDasUUID | ||||
| CmplRqVersUUID | I_CmplRqVersSelfReactvSubst | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersSelfReactvSubst | SubstanceListUUID | Substance List | |
| ListedSubstance | I_CmplRqVersSelfReactvSubst | ListedSubstance | Listed Substance |
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 P_SubstanceSubstListUnion.
-- 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 P_SubstanceSubstListUnion AS
SELECT
GroupAssgmt.SubstanceGrpAssgmtUUID AS UUID,
GroupAssgmt.CmplRqVersUUID AS CmplRqVersUUID,
GroupAssgmt._SubstListGrp.SubstanceListUUID AS SubstanceListUUID,
GroupAssgmt.ListedSubstance as ListedSubstance AS SubstanceGrpAssgmtCustChgdUUIDasUUID,
GroupAssgmtChange.ListedSubstance as ListedSubstance AS SubstanceListItmUUIDasUUID,
_ThldListItm.ListedSubstance as ListedSubstance AS OccptlExpsrLmtUUIDasUUID,
_ExposureLimit.ListedSubstance as ListedSubstance AS CmplRqVersOrganicPrxdUUIDasUUID,
_OrganicPrxd.ListedSubstance as ListedSubstance AS CmplRqVersSelfReactvSubstUUIDasUUID,
_SelfReactvSubst.ListedSubstance AS ListedSubstance
FROM I_CmplRqVersGrpAssgmt AS GroupAssgmt
-- UNION ALL with additional select branch(es): I_CmplRqVersGrpAssgmtCust, I_CmplRqVersThldListItm, I_CmplRqVersExposureLimit, I_CmplRqVersOrganicPrxd, I_CmplRqVersSelfReactvSubst
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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