P_SubstanceGrpAssgmt
Substance Group Assignment
P_SubstanceGrpAssgmt is a Consumption CDS View that provides data about "Substance Group Assignment" in SAP S/4HANA. It reads from 2 data sources (P_CmplRqVersListGrpAssgmtUnion, I_CmplRqVersGrpAssgmtCust) and exposes 18 fields with key field SubstanceGrpAssgmtUUID. It has 3 associations to related views. Part of development package EHFND_BO_SUBSTANCE.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_CmplRqVersListGrpAssgmtUnion | GroupAssgmtsDeliveredIncluded | from |
| I_CmplRqVersGrpAssgmtCust | GroupAssgmtsExcluded | union_all |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CmplRqVersEnhanced | _CmplRqVers | $projection.CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID |
| [1..1] | I_CmplRqVersSubstanceList | _CmplRqVersSubstanceList | $projection.SubstanceListUUID = _CmplRqVersSubstanceList.SubstanceListUUID |
| [1..*] | I_SubstGrpAssgmtValueText | _SubstGrpAssgmtValueText | $projection.SubstanceGroupAssignment = _SubstGrpAssgmtValueText.SubstanceGroupAssignment |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubstanceGrpAssgmtUUID | P_CmplRqVersListGrpAssgmtUnion | SubstanceGrpAssgmtUUID | Substance Group Assignment |
| CmplRqVersUUID | P_CmplRqVersListGrpAssgmtUnion | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | P_CmplRqVersListGrpAssgmtUnion | SubstanceListUUID | Substance List | |
| ListedSubstanceGroupUUID | P_CmplRqVersListGrpAssgmtUnion | ListedSubstanceGroupUUID | NodeID | |
| ListedSubstanceGroup | P_CmplRqVersListGrpAssgmtUnion | ListedSubstanceGroup | Group of Substances | |
| ListedSubstance | P_CmplRqVersListGrpAssgmtUnion | ListedSubstance | Listed Substance | |
| SubstanceGroupAssignment | P_CmplRqVersListGrpAssgmtUnion | SubstanceGroupAssignment | ||
| _CmplRqVers | _CmplRqVers | |||
| _CmplRqVersSubstanceList | _CmplRqVersSubstanceList | |||
| CmplRqVersUUID | I_CmplRqVersGrpAssgmtCust | CmplRqVersUUID | NodeID | |
| SubstanceListUUID | I_CmplRqVersGrpAssgmtCust | SubstanceListUUID | Substance List | |
| ListedSubstanceGroupUUID | I_CmplRqVersGrpAssgmtCust | ListedSubstanceGroupUUID | NodeID | |
| ListedSubstanceGroup | I_CmplRqVersGrpAssgmtCust | ListedSubstanceGroup | Group of Substances | |
| ListedSubstance | I_CmplRqVersGrpAssgmtCust | ListedSubstance | Listed Substance | |
| SubstanceGroupAssignment | ||||
| _CmplRqVers | I_CmplRqVersGrpAssgmtCust | _CmplRqVers | ||
| _CmplRqVersSubstanceList | I_CmplRqVersGrpAssgmtCust | _CmplRqVersSubstanceList | ||
| _SubstGrpAssgmtValueText | _SubstGrpAssgmtValueText |
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_SubstanceGrpAssgmt.
-- 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_SubstanceGrpAssgmt AS
SELECT
GroupAssgmtsDeliveredIncluded.SubstanceGrpAssgmtUUID AS SubstanceGrpAssgmtUUID,
GroupAssgmtsDeliveredIncluded.CmplRqVersUUID AS CmplRqVersUUID,
GroupAssgmtsDeliveredIncluded.SubstanceListUUID AS SubstanceListUUID,
GroupAssgmtsDeliveredIncluded.ListedSubstanceGroupUUID AS ListedSubstanceGroupUUID,
GroupAssgmtsDeliveredIncluded.ListedSubstanceGroup AS ListedSubstanceGroup,
GroupAssgmtsDeliveredIncluded.ListedSubstance AS ListedSubstance,
GroupAssgmtsDeliveredIncluded.SubstanceGroupAssignment AS SubstanceGroupAssignment,
GroupAssgmtsExcluded._CmplRqVers AS _CmplRqVers,
GroupAssgmtsExcluded._CmplRqVersSubstanceList AS _CmplRqVersSubstanceList
FROM P_CmplRqVersListGrpAssgmtUnion AS GroupAssgmtsDeliveredIncluded
LEFT OUTER JOIN I_CmplRqVersEnhanced AS _CmplRqVers ON CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID -- association [1..1]
LEFT OUTER JOIN I_CmplRqVersSubstanceList AS _CmplRqVersSubstanceList ON SubstanceListUUID = _CmplRqVersSubstanceList.SubstanceListUUID -- association [1..1]
LEFT OUTER JOIN I_SubstGrpAssgmtValueText AS _SubstGrpAssgmtValueText ON SubstanceGroupAssignment = _SubstGrpAssgmtValueText.SubstanceGroupAssignment -- association [1..*]
-- UNION ALL with additional select branch(es): I_CmplRqVersGrpAssgmtCust
;
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