C_SubstanceVarAssgmtDraft

DDL: C_SUBSTANCEVARASSGMTDRAFT SQL: CSUBVARASDR Type: view CONSUMPTION Package: EHFND_CNS_SUBSTANCE

Assigned listed substance variants incl. drafts

C_SubstanceVarAssgmtDraft is a Consumption CDS View that provides data about "Assigned listed substance variants incl. drafts" in SAP S/4HANA. It reads from 2 data sources (I_SubstanceVarAssgmtDraft, I_ListedSubstanceVariant) and exposes 7 fields with key field ListedSubstanceVariantUUID. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F2578). Part of development package EHFND_CNS_SUBSTANCE.

Data Sources (2)

SourceAliasJoin Type
I_SubstanceVarAssgmtDraft _AssigendSubstanceVariant left_outer
I_ListedSubstanceVariant ListedSubstanceVariant from

Parameters (1)

NameTypeDefault
P_SubstanceUUID sysuuid_x

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SubstanceTP _Substance $projection.SubstanceUUID = _Substance.SubstanceUUID

Annotations (10)

NameValueLevelField
EndUserText.label Assigned listed substance variants incl. drafts view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CSUBVARASDR view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
Search.searchable true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2578 ASQL_F2578 C2 NOT_RELEASED

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ListedSubstanceVariantUUID I_ListedSubstanceVariant ListedSubstanceVariantUUID Name
ListedSubstanceCndn I_ListedSubstanceVariant ListedSubstanceCndn
ListedSubstanceVariant I_ListedSubstanceVariant ListedSubstanceVariant Listed Substance
ListedSubstanceCndnName
ListedSubstanceReference I_ListedSubstanceVariant ListedSubstanceReference
SubstanceUUID I_SubstanceVarAssgmtDraft SubstanceUUID Substance
_Substance _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 C_SubstanceVarAssgmtDraft.
-- 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: CSUBVARASDR
-- Parameters: P_SubstanceUUID : sysuuid_x

CREATE VIEW C_SubstanceVarAssgmtDraft AS
SELECT
  ListedSubstanceVariant.ListedSubstanceVariantUUID AS ListedSubstanceVariantUUID,
  ListedSubstanceVariant.ListedSubstanceCndn AS ListedSubstanceCndn,
  ListedSubstanceVariant.ListedSubstanceVariant AS ListedSubstanceVariant,
  ListedSubstanceVariant._ConditionText[1: Language = $session.system_language].ListedSubstanceCndnName AS ListedSubstanceCndnName,
  ListedSubstanceVariant.ListedSubstanceReference AS ListedSubstanceReference,
  _AssigendSubstanceVariant.SubstanceUUID AS SubstanceUUID
FROM I_ListedSubstanceVariant AS ListedSubstanceVariant
LEFT OUTER JOIN I_SubstanceVarAssgmtDraft AS _AssigendSubstanceVariant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SubstanceTP AS _Substance ON SubstanceUUID = _Substance.SubstanceUUID  -- association [0..1]
;