P_SubstanceGrpAssgmt

DDL: P_SUBSTANCEGRPASSGMT Type: view_entity CONSUMPTION Package: EHFND_BO_SUBSTANCE

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)

SourceAliasJoin Type
P_CmplRqVersListGrpAssgmtUnion GroupAssgmtsDeliveredIncluded from
I_CmplRqVersGrpAssgmtCust GroupAssgmtsExcluded union_all

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (18)

KeyFieldSource TableSource FieldDescription
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
;