C_LegalEntitySubstVolByProduct
Legal Entity Separated by Product
C_LegalEntitySubstVolByProduct is a Consumption CDS View that provides data about "Legal Entity Separated by Product" in SAP S/4HANA. It reads from 1 data source (I_SVTAggrgnLglEntityByProduct) and exposes 29 fields with key fields SVTAggregationItemUUID, ChmlCmplncInfoUUID. It has 3 associations to related views. It is exposed through 2 OData services (ASQL_F4693, C_CMPLRQSVTOVLSTSMNTR_SRV). Part of development package EHPMA_CNS_SVT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SVTAggrgnLglEntityByProduct | SVTByProduct | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_MatlDocsByMonthAndBusProcess | _MatlDocsByMonthAndBusProcess | $projection.SVTAggregationItemUUID = _MatlDocsByMonthAndBusProcess.SVTAggregationItemUUID and $projection.ChmlCmplncInfoUUID = _MatlDocsByMonthAndBusProcess.ChmlCmplncInfoUUID |
| [1..1] | C_ChmlCmplncPrimMatl | _ChmlCmplncPrimMatl | $projection.ChmlCmplncInfoUUID = _ChmlCmplncPrimMatl.ChmlCmplncInfoUUID |
| [1..1] | C_LegalEntitySVTStatusMonitor | _LegalEntitySVTStatusMonitor | $projection.SVTAggregationItemUUID = _LegalEntitySVTStatusMonitor.SVTAggregationItemUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSVTBYPRDCTMNT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Legal Entity Separated by Product | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.allowExtensions | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4693 | ASQL_F4693 | C2 | NOT_RELEASED | |
| C_CMPLRQSVTOVLSTSMNTR_SRV | C_CMPLRQSVTOVLSTSMNTR_SRV | V2 | NOT_RELEASED |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SVTAggregationItemUUID | SVTAggregationItemUUID | Aggr item uuid | |
| KEY | ChmlCmplncInfoUUID | ChmlCmplncInfoUUID | Chemical Compliance Information PP | |
| ChmlCmplncInfoCombinedName | _ChmlCmplncPrimMatl | ChmlCmplncInfoCombinedName | ||
| Material | _ChmlCmplncPrimMatl | Material | Vehicle Model | |
| PlannedSubstanceVolume | PlannedSubstanceVolume | Planned Subst Vol | ||
| PlannedSubstanceVolumeUnit | PlannedSubstanceVolumeUnit | Subst Vol Unit | ||
| ConfirmedSubstanceVolume | ConfirmedSubstanceVolume | Conf subst vol | ||
| ConfirmedSubstanceVolumeUnit | ConfirmedSubstanceVolumeUnit | Conf subst vol unit | ||
| LglEntityProductTotalSubstVol | ||||
| CASNumber | _LegalEntitySVTStatusMonitor | CASNumber | CAS Number | |
| SubstanceName | _LegalEntitySVTStatusMonitor | SubstanceName | Substance Name | |
| LegalEntity | _LegalEntitySVTStatusMonitor | LegalEntity | Legal Entity ID | |
| TotalSubstanceVolume | _LegalEntitySVTStatusMonitor | TotalSubstanceVolume | Total Subst Vol | |
| TotalSubstanceVolumeUnit | _LegalEntitySVTStatusMonitor | TotalSubstanceVolumeUnit | Subst Volume Unit | |
| CmplRqVersTrackingPeriodText | _LegalEntitySVTStatusMonitor | CmplRqVersTrackingPeriodText | ||
| TrackingPeriodStartDate | _LegalEntitySVTStatusMonitor | TrackingPeriodStartDate | Tracking Start Date | |
| TrackingPeriodEndDate | _LegalEntitySVTStatusMonitor | TrackingPeriodEndDate | Tracking End Date | |
| SubstanceVolumeThresholdQty | _LegalEntitySVTStatusMonitor | SubstanceVolumeThresholdQty | ||
| SubstanceListName | _LegalEntitySVTStatusMonitor | SubstanceListName | List Name | |
| SubstanceVolumeThresholdUnit | _LegalEntitySVTStatusMonitor | SubstanceVolumeThresholdUnit | Subst Vol Thld Unit | |
| LglEntitySubstVolThldReachUnit | _LegalEntitySVTStatusMonitor | LglEntitySubstVolThldReachUnit | ||
| LglEntitySubstVolThldReachPct | _LegalEntitySVTStatusMonitor | LglEntitySubstVolThldReachPct | Percent of Threshold | |
| CmplRqSVTStatusCriticality | _LegalEntitySVTStatusMonitor | CmplRqSVTStatusCriticality | ||
| ProdAllocPercentUnit | _LegalEntitySVTStatusMonitor | ProdAllocPercentUnit | ||
| SVTAggregationHeaderUUID | SVTAggregationHeaderUUID | Agg header doc uuid | ||
| _SVTAggregationItem | _SVTAggregationItem | |||
| _SVTAggregationHeader | _SVTAggregationHeader | |||
| _LegalEntitySVTStatusMonitor | _LegalEntitySVTStatusMonitor | |||
| _MatlDocsByMonthAndBusProcess | _MatlDocsByMonthAndBusProcess |
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_LegalEntitySubstVolByProduct.
-- 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: CSVTBYPRDCTMNT
CREATE VIEW C_LegalEntitySubstVolByProduct AS
SELECT
SVTAggregationItemUUID,
ChmlCmplncInfoUUID,
_ChmlCmplncPrimMatl.ChmlCmplncInfoCombinedName AS ChmlCmplncInfoCombinedName,
_ChmlCmplncPrimMatl.Material AS Material,
PlannedSubstanceVolume,
PlannedSubstanceVolumeUnit,
ConfirmedSubstanceVolume,
ConfirmedSubstanceVolumeUnit,
PlannedSubstanceVolume + ConfirmedSubstanceVolume AS LglEntityProductTotalSubstVol,
_LegalEntitySVTStatusMonitor.CASNumber AS CASNumber,
_LegalEntitySVTStatusMonitor.SubstanceName AS SubstanceName,
_LegalEntitySVTStatusMonitor.LegalEntity AS LegalEntity,
_LegalEntitySVTStatusMonitor.TotalSubstanceVolume AS TotalSubstanceVolume,
_LegalEntitySVTStatusMonitor.TotalSubstanceVolumeUnit AS TotalSubstanceVolumeUnit,
_LegalEntitySVTStatusMonitor.CmplRqVersTrackingPeriodText AS CmplRqVersTrackingPeriodText,
_LegalEntitySVTStatusMonitor.TrackingPeriodStartDate AS TrackingPeriodStartDate,
_LegalEntitySVTStatusMonitor.TrackingPeriodEndDate AS TrackingPeriodEndDate,
_LegalEntitySVTStatusMonitor.SubstanceVolumeThresholdQty AS SubstanceVolumeThresholdQty,
_LegalEntitySVTStatusMonitor.SubstanceListName AS SubstanceListName,
_LegalEntitySVTStatusMonitor.SubstanceVolumeThresholdUnit AS SubstanceVolumeThresholdUnit,
_LegalEntitySVTStatusMonitor.LglEntitySubstVolThldReachUnit AS LglEntitySubstVolThldReachUnit,
_LegalEntitySVTStatusMonitor.LglEntitySubstVolThldReachPct AS LglEntitySubstVolThldReachPct,
_LegalEntitySVTStatusMonitor.CmplRqSVTStatusCriticality AS CmplRqSVTStatusCriticality,
_LegalEntitySVTStatusMonitor.ProdAllocPercentUnit AS ProdAllocPercentUnit,
SVTAggregationHeaderUUID
FROM I_SVTAggrgnLglEntityByProduct AS SVTByProduct
LEFT OUTER JOIN C_MatlDocsByMonthAndBusProcess AS _MatlDocsByMonthAndBusProcess ON SVTAggregationItemUUID = _MatlDocsByMonthAndBusProcess.SVTAggregationItemUUID AND ChmlCmplncInfoUUID = _MatlDocsByMonthAndBusProcess.ChmlCmplncInfoUUID -- association [0..*]
LEFT OUTER JOIN C_ChmlCmplncPrimMatl AS _ChmlCmplncPrimMatl ON ChmlCmplncInfoUUID = _ChmlCmplncPrimMatl.ChmlCmplncInfoUUID -- association [1..1]
LEFT OUTER JOIN C_LegalEntitySVTStatusMonitor AS _LegalEntitySVTStatusMonitor ON SVTAggregationItemUUID = _LegalEntitySVTStatusMonitor.SVTAggregationItemUUID -- association [1..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