C_BOMComparisonList

DDL: C_BOMCOMPARISONLIST Type: view_entity CONSUMPTION

BOM Comparison List

C_BOMComparisonList is a Consumption CDS View that provides data about "BOM Comparison List" in SAP S/4HANA. It reads from 1 data source (I_BillOfMaterialHeader) and exposes 31 fields with key fields BillOfMaterialCategory, BillOfMaterialVariantUsage, BillOfMaterial, BillOfMaterialVariant, BillOfMaterialVersion. It has 4 associations to related views. It is exposed through 1 OData service (BOMCOMPARISON).

Data Sources (1)

SourceAliasJoin Type
I_BillOfMaterialHeader I_BillOfMaterialHeader from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] I_BillOfMaterialStatusText _BillOfMaterialStatusText $projection.BillOfMaterialStatus = _BillOfMaterialStatusText.BillOfMaterialStatus and _BillOfMaterialStatusText.Language = $session.system_language
[0..1] I_BillOfMaterialUsage _BillOfMaterialVariantUsage $projection.BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language
[0..1] I_PlantStdVH _Plants $projection.Plant = _Plants.Plant

Annotations (13)

NameValueLevelField
EndUserText.label BOM Comparison List view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Compare Bills of Material view
UI.headerInfo.typeNamePlural Bills of Material view
UI.headerInfo.title.label Bills of Material view
UI.headerInfo.title.valueQualifier Material view
ObjectModel.updateEnabled true view
Search.searchable true view
Consumption.semanticObject MaterialBOM view

OData Services (1)

ServiceBindingVersionContractRelease
BOMCOMPARISON BOM_COMPARISON V2 C1 NOT_RELEASED

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterialCategory BillOfMaterialCategory BOM Category
KEY BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
KEY BillOfMaterial BOM
KEY BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
KEY BillOfMaterialVersion BillOfMaterialVersion BOM Version
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY BillOfMaterialHeaderUUID BillOfMaterialHeaderUUID Guid
KEY EngineeringChangeDocument EngineeringChangeDocument Change Number
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
BillOfMaterialValue
BOMHeaderInternalChangeCount BOMHeaderInternalChangeCount Counter
IsVersionBillOfMaterial IsVersionBillOfMaterial Versioning Relevant
BOMTechnicalType Technical Type
BOMGroup BOMGroup BOM Group
IndicatorIsBOMWithDateHistory IndicatorIsBOMWithDateHistory Date hist
IndicatorIsBOMChangedWithHist IndicatorIsBOMChangedWithHist History Indicator
BOMHeaderText BOMHeaderText BOM Description
BOMAlternativeText BOMAlternativeText Alt Text
LongTextLanguage LongTextLanguage Long Text Lang
BillOfMaterialStatus BillOfMaterialStatus BOM Status
HeaderValidityEndDate HeaderValidityEndDate Valid To
HeaderValidityStartDate HeaderValidityStartDate Valid From
ChgToEngineeringChgDocument ChgToEngineeringChgDocument Change No. To
RecordCreationDate RecordCreationDate Created On
LastChangeDate LastChangeDate Time Stamp
BillOfMaterialStatusText _BillOfMaterialStatusText BillOfMaterialStatusText
MaterialName _MaterialText MaterialName Material Description
BillOfMaterialVariantUsageDesc _BillOfMaterialVariantUsage BillOfMaterialVariantUsageDesc
PlantName _Plants PlantName Plant Name

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_BOMComparisonList.
-- 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 C_BOMComparisonList AS
SELECT
  BillOfMaterialCategory,
  BillOfMaterialVariantUsage,
  cast( BillOfMaterial as char8 preserving type ) AS BillOfMaterial,
  BillOfMaterialVariant,
  BillOfMaterialVersion,
  Material,
  Plant,
  BillOfMaterialHeaderUUID,
  EngineeringChangeDocument,
  SalesOrder,
  SalesOrderItem,
  concat(concat(concat(BillOfMaterial,BillOfMaterialCategory),BillOfMaterialVariantUsage),BillOfMaterialVariant) AS BillOfMaterialValue,
  BOMHeaderInternalChangeCount,
  IsVersionBillOfMaterial,
  cast ( BOMTechnicalType as tetyp_d preserving type) AS BOMTechnicalType,
  BOMGroup,
  IndicatorIsBOMWithDateHistory,
  IndicatorIsBOMChangedWithHist,
  BOMHeaderText,
  BOMAlternativeText,
  LongTextLanguage,
  BillOfMaterialStatus,
  HeaderValidityEndDate,
  HeaderValidityStartDate,
  ChgToEngineeringChgDocument,
  RecordCreationDate,
  LastChangeDate,
  _BillOfMaterialStatusText.BillOfMaterialStatusText AS BillOfMaterialStatusText,
  _MaterialText.MaterialName AS MaterialName,
  _BillOfMaterialVariantUsage.BillOfMaterialVariantUsageDesc AS BillOfMaterialVariantUsageDesc,
  _Plants.PlantName AS PlantName
FROM I_BillOfMaterialHeader
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialStatusText AS _BillOfMaterialStatusText ON BillOfMaterialStatus = _BillOfMaterialStatusText.BillOfMaterialStatus AND _BillOfMaterialStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialVariantUsage ON BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage AND _BillOfMaterialVariantUsage.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PlantStdVH AS _Plants ON Plant = _Plants.Plant  -- association [0..1]
;