C_SubstanceVarAssgmtDraft
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SubstanceVarAssgmtDraft | _AssigendSubstanceVariant | left_outer |
| I_ListedSubstanceVariant | ListedSubstanceVariant | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_SubstanceUUID | sysuuid_x |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SubstanceTP | _Substance | $projection.SubstanceUUID = _Substance.SubstanceUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2578 | ASQL_F2578 | C2 | NOT_RELEASED |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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