C_LegalEntitySubstVolByProduct

DDL: C_LEGALENTITYSUBSTVOLBYPRODUCT SQL: CSVTBYPRDCTMNT Type: view CONSUMPTION Package: EHPMA_CNS_SVT

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)

SourceAliasJoin Type
I_SVTAggrgnLglEntityByProduct SVTByProduct from

Associations (3)

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

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F4693 ASQL_F4693 C2 NOT_RELEASED
C_CMPLRQSVTOVLSTSMNTR_SRV C_CMPLRQSVTOVLSTSMNTR_SRV V2 NOT_RELEASED

Fields (29)

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