C_BillOfMaterialTP

DDL: C_BILLOFMATERIALTP SQL: CBOMTP Type: view CONSUMPTION

Bill Of Material Consumption View

C_BillOfMaterialTP is a Consumption CDS View that provides data about "Bill Of Material Consumption View" in SAP S/4HANA. It reads from 1 data source (I_BillOfMaterialTP) and exposes 97 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVersion, EngineeringChangeDocument, Plant. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BillOfMaterialTP bomBO from

Associations (7)

CardinalityTargetAliasCondition
[0..*] C_BillOfMaterialItemTP _BillOfMaterialItem $projection.BillOfMaterial = _BillOfMaterialItem.BillOfMaterial and $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory and $projection.BillOfMaterialVariant = _BillOfMaterialItem.BillOfMaterialVariant and $projection.BillOfMaterialVersion = _BillOfMaterialItem.BillOfMaterialVersion and $projection.EngineeringChangeDocument = _BillOfMaterialItem.HeaderChangeDocument and $projection.Material = _BillOfMaterialItem.Material and $projection.Plant = _BillOfMaterialItem.Plant
[0..1] I_BillOfMaterialUsage _BillOfMaterialVariantUsage $projection.BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language
[0..1] I_ChangeMaster _ChangeNumber $projection.EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber
[0..1] I_BillOfMaterialStatus _BillOfMaterialStatus $projection.BillOfMaterialStatus = _BillOfMaterialStatus.BillOfMaterialStatus
[0..1] I_PlantStdVH _Plants $projection.PlantForEdit = _Plants.Plant
[0..1] I_MaterialText _MaterialText $projection.MaterialForEdit = _MaterialText.Material and _MaterialText.Language = $session.system_language
[1..1] I_UnitizedMaterial _UnitizedMaterial $projection.MaterialForEdit = _UnitizedMaterial.Material

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CBOMTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.compositionRoot true view
Consumption.semanticObject MaterialBOM view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
EndUserText.label Bill Of Material Consumption View view

Fields (97)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial I_BillOfMaterialTP BillOfMaterial Bill of Material
KEY BillOfMaterialCategory I_BillOfMaterialTP BillOfMaterialCategory Bill of Material Category
KEY BillOfMaterialVersion I_BillOfMaterialTP BillOfMaterialVersion BOM Version
KEY EngineeringChangeDocument I_BillOfMaterialTP EngineeringChangeDocument Change Number
MaterialasMaterial
KEY Plant I_BillOfMaterialTP Plant Valuation Area
SalesOrderItem I_BillOfMaterialTP SalesOrderItem Sales Order Item
SalesOrder I_BillOfMaterialTP SalesOrder SD Document
SoldToParty I_BillOfMaterialTP SoldToParty Sold-to Party
PurchaseOrderByCustomer I_BillOfMaterialTP PurchaseOrderByCustomer Purchase Order Number
PlantName _Plants PlantName Plant Name
BOMHeaderInternalChangeCount I_BillOfMaterialTP BOMHeaderInternalChangeCount Counter
PlantForEditasPlantForEdit
NewPlant I_BillOfMaterialTP Plant Valuation Area
MaterialForEditasMaterialForEdit
BillOfMaterialVariantForEdit I_BillOfMaterialTP BillOfMaterialVariantForEdit Alternative
BillOfMaterialVersionForEdit I_BillOfMaterialTP BillOfMaterialVersionForEdit BOM Version
PlantNameForEdit _Plants PlantName Plant Name
BillOfMaterialUUID I_BillOfMaterialTP BillOfMaterialUUID Character Field of Length 12
BillOfMaterialHeaderUUID I_BillOfMaterialTP BillOfMaterialHeaderUUID ID for BOM Header Change Status
BillOfMaterialVariantUsage I_BillOfMaterialTP BillOfMaterialVariantUsage Usage
BillOfMaterialVariantUsageDesc _BillOfMaterialVariantUsage BillOfMaterialVariantUsageDesc
MatFromLotSizeQuantity I_BillOfMaterialTP MatFromLotSizeQuantity From Lot Size
MaterialToLotSizeQuantity I_BillOfMaterialTP MaterialToLotSizeQuantity To Lot Size
BOMGroup I_BillOfMaterialTP BOMGroup BOM Group
IndicatorIsBOMWithDateHistory I_BillOfMaterialTP IndicatorIsBOMWithDateHistory Date hist
IndicatorIsBOMChangedWithHist I_BillOfMaterialTP IndicatorIsBOMChangedWithHist History ID
BOMVersionStatus I_BillOfMaterialTP BOMVersionStatus BOM Version Status
BOMVersionStatusDescription I_BillOfMaterialTP BOMVersionStatusDescription BOM Version Status
IsVersionBillOfMaterial I_BillOfMaterialTP IsVersionBillOfMaterial Versioning Relevant
IsLatestBOMVersion I_BillOfMaterialTP IsLatestBOMVersion Latest Released Version
IsMultipleBOMAlt I_BillOfMaterialTP IsMultipleBOMAlt Alternative Determination for Multiple BOMs
IsConfiguredMaterial I_BillOfMaterialTP IsConfiguredMaterial Configured matl
BOMIsConfigurable I_BillOfMaterialTP BOMIsConfigurable ConfigurableBOM
BOMPrioritizedVersion I_BillOfMaterialTP BOMPrioritizedVersion Selection ID
BOMExplosionApplication I_BillOfMaterialTP BOMExplosionApplication BOM Application
BOMUsagePriority I_BillOfMaterialTP BOMUsagePriority Sel. priority
BillOfMaterialAuthsnGrp I_BillOfMaterialTP BillOfMaterialAuthsnGrp Authorization Group
BOMTechnicalType BOMTechnicalType Technical Type
BOMHeaderText I_BillOfMaterialTP BOMHeaderText BOM Description
BOMAlternativeText I_BillOfMaterialTP BOMAlternativeText Alternative Text
LongTextLanguage I_BillOfMaterialTP LongTextLanguage Long Text Lang
LongTextExists I_BillOfMaterialTP LongTextExists BOM Long Text
BillOfMaterialStatus I_BillOfMaterialTP BillOfMaterialStatus BOM Status
HeaderValidityStartDate I_BillOfMaterialTP HeaderValidityStartDate Valid From
HeaderValidityEndDate I_BillOfMaterialTP HeaderValidityEndDate Valid To
ChgToEngineeringChgDocument I_BillOfMaterialTP ChgToEngineeringChgDocument Change No. To
IsMarkedForDeletion I_BillOfMaterialTP IsMarkedForDeletion Purch.org. data
BOMIsArchivedForDeletion I_BillOfMaterialTP BOMIsArchivedForDeletion Deletion flag
IsALE I_BillOfMaterialTP IsALE ALE Indicator
BOMHeaderBaseUnit I_BillOfMaterialTP BOMHeaderBaseUnit Base Unit of Measure
BOMHeaderQuantityInBaseUnit I_BillOfMaterialTP BOMHeaderQuantityInBaseUnit Base Quantity
RecordCreationDate I_BillOfMaterialTP RecordCreationDate Created On
CreatedByUser I_BillOfMaterialTP CreatedByUser Created By
LastChangeDate I_BillOfMaterialTP LastChangeDate Time Stamp
LastChangedByUser I_BillOfMaterialTP LastChangedByUser User Name
BOMIsToBeDeleted I_BillOfMaterialTP BOMIsToBeDeleted Handling Del. Flag
DocumentIsCreatedByCAD I_BillOfMaterialTP DocumentIsCreatedByCAD CAD Indicator
LaboratoryOrDesignOffice I_BillOfMaterialTP LaboratoryOrDesignOffice Lab / Office
HeaderAttachmentKey I_BillOfMaterialTP HeaderAttachmentKey Object Key
MaterialType I_BillOfMaterialTP MaterialType Material Type
ProductIsConfigurable I_BillOfMaterialTP ProductIsConfigurable Configurable
AssetIntelNetworkTrackingMode I_BillOfMaterialTP AssetIntelNetworkTrackingMode Char255
AssetIntelNetworkTemplate I_BillOfMaterialTP AssetIntelNetworkTemplate Char
AssetIntelNetworkManufacturer I_BillOfMaterialTP AssetIntelNetworkManufacturer Char
BOMAssetNtwkHndovrIsRelevant I_BillOfMaterialTP BOMAssetNtwkHndovrIsRelevant BOM to AIN Handover
MaterialBOMObjectID I_BillOfMaterialTP MaterialBOMObjectID MBOM Key
ChangeRecord I_BillOfMaterialTP ChangeRecord Change Record
BOMPredecessorVersion I_BillOfMaterialTP BOMPredecessorVersion Predecessor Version
SelectedVersion I_BillOfMaterialTP SelectedVersion BOM Version
SelectedVariant I_BillOfMaterialTP SelectedVariant Alternative
EffectivityType _UnitizedMaterial EffectivityType
BillOfMaterialHdrDetailsText
IsCloudSystem
BOMVersionIsReleased
_BillOfMaterialItem _BillOfMaterialItem
_Material _Material
MaterialName _MaterialText MaterialName Material Description
BOMIsParamEffectivityRelevant BOMIsParamEffectivityRelevant Assign.eff.vals
_BillOfMaterialVariantUsage _BillOfMaterialVariantUsage
_UnitOfMeasure _UnitOfMeasure
_Plant _Plant
_Plants _Plants
_BOMChangeNumbers _BOMChangeNumbers
_ChangeNumber _ChangeNumber
_ChangeNumbers _ChangeNumbers
_BillOfMaterialStatus _BillOfMaterialStatus
_Product _Product
_LabOfficeVH _LabOfficeVH
_BOMAINManufacturerVH _BOMAINManufacturerVH
_BOMAINTemplateVH _BOMAINTemplateVH
_UnitizedMaterial _UnitizedMaterial
_VersionStatus _VersionStatus
_SoldToParty I_BillOfMaterialTP _SoldToParty
_LogAccMObjectTypeActive _LogAccMObjectTypeActive
_LogAccMObjSecureIDAssgmt _LogAccMObjSecureIDAssgmt
_LogAccMObjectUserAuthzn _LogAccMObjectUserAuthzn

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_BillOfMaterialTP.
-- 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: CBOMTP

CREATE VIEW C_BillOfMaterialTP AS
SELECT
  bomBO.BillOfMaterial AS BillOfMaterial,
  bomBO.BillOfMaterialCategory AS BillOfMaterialCategory,
  bomBO.BillOfMaterialVersion AS BillOfMaterialVersion,
  bomBO.EngineeringChangeDocument AS EngineeringChangeDocument,
  bomBO.Plant AS Plant,
  bomBO.SalesOrderItem AS SalesOrderItem,
  bomBO.SalesOrder AS SalesOrder,
  bomBO.SoldToParty AS SoldToParty,
  bomBO.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  _Plants.PlantName AS PlantName,
  bomBO.BOMHeaderInternalChangeCount AS BOMHeaderInternalChangeCount,
  bomBO.Plant AS NewPlant,
  bomBO.BillOfMaterialVariantForEdit AS BillOfMaterialVariantForEdit,
  bomBO.BillOfMaterialVersionForEdit AS BillOfMaterialVersionForEdit,
  _Plants.PlantName AS PlantNameForEdit,
  bomBO.BillOfMaterialUUID AS BillOfMaterialUUID,
  bomBO.BillOfMaterialHeaderUUID AS BillOfMaterialHeaderUUID,
  bomBO.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  _BillOfMaterialVariantUsage.BillOfMaterialVariantUsageDesc AS BillOfMaterialVariantUsageDesc,
  bomBO.MatFromLotSizeQuantity AS MatFromLotSizeQuantity,
  bomBO.MaterialToLotSizeQuantity AS MaterialToLotSizeQuantity,
  bomBO.BOMGroup AS BOMGroup,
  bomBO.IndicatorIsBOMWithDateHistory AS IndicatorIsBOMWithDateHistory,
  bomBO.IndicatorIsBOMChangedWithHist AS IndicatorIsBOMChangedWithHist,
  bomBO.BOMVersionStatus AS BOMVersionStatus,
  bomBO.BOMVersionStatusDescription AS BOMVersionStatusDescription,
  bomBO.IsVersionBillOfMaterial AS IsVersionBillOfMaterial,
  bomBO.IsLatestBOMVersion AS IsLatestBOMVersion,
  bomBO.IsMultipleBOMAlt AS IsMultipleBOMAlt,
  bomBO.IsConfiguredMaterial AS IsConfiguredMaterial,
  bomBO.BOMIsConfigurable AS BOMIsConfigurable,
  bomBO.BOMPrioritizedVersion AS BOMPrioritizedVersion,
  bomBO.BOMExplosionApplication AS BOMExplosionApplication,
  bomBO.BOMUsagePriority AS BOMUsagePriority,
  bomBO.BillOfMaterialAuthsnGrp AS BillOfMaterialAuthsnGrp,
  BOMTechnicalType,
  bomBO.BOMHeaderText AS BOMHeaderText,
  bomBO.BOMAlternativeText AS BOMAlternativeText,
  bomBO.LongTextLanguage AS LongTextLanguage,
  bomBO.LongTextExists AS LongTextExists,
  bomBO.BillOfMaterialStatus AS BillOfMaterialStatus,
  bomBO.HeaderValidityStartDate AS HeaderValidityStartDate,
  bomBO.HeaderValidityEndDate AS HeaderValidityEndDate,
  bomBO.ChgToEngineeringChgDocument AS ChgToEngineeringChgDocument,
  bomBO.IsMarkedForDeletion AS IsMarkedForDeletion,
  bomBO.BOMIsArchivedForDeletion AS BOMIsArchivedForDeletion,
  bomBO.IsALE AS IsALE,
  bomBO.BOMHeaderBaseUnit AS BOMHeaderBaseUnit,
  bomBO.BOMHeaderQuantityInBaseUnit AS BOMHeaderQuantityInBaseUnit,
  bomBO.RecordCreationDate AS RecordCreationDate,
  bomBO.CreatedByUser AS CreatedByUser,
  bomBO.LastChangeDate AS LastChangeDate,
  bomBO.LastChangedByUser AS LastChangedByUser,
  bomBO.BOMIsToBeDeleted AS BOMIsToBeDeleted,
  bomBO.DocumentIsCreatedByCAD AS DocumentIsCreatedByCAD,
  bomBO.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
  bomBO.HeaderAttachmentKey AS HeaderAttachmentKey,
  bomBO.MaterialType AS MaterialType,
  bomBO.ProductIsConfigurable AS ProductIsConfigurable,
  bomBO.AssetIntelNetworkTrackingMode AS AssetIntelNetworkTrackingMode,
  bomBO.AssetIntelNetworkTemplate AS AssetIntelNetworkTemplate,
  bomBO.AssetIntelNetworkManufacturer AS AssetIntelNetworkManufacturer,
  bomBO.BOMAssetNtwkHndovrIsRelevant AS BOMAssetNtwkHndovrIsRelevant,
  bomBO.MaterialBOMObjectID AS MaterialBOMObjectID,
  bomBO.ChangeRecord AS ChangeRecord,
  bomBO.BOMPredecessorVersion AS BOMPredecessorVersion,
  bomBO.SelectedVersion AS SelectedVersion,
  bomBO.SelectedVariant AS SelectedVariant,
  _UnitizedMaterial.EffectivityType AS EffectivityType,
  cast('' as text255 ) AS BillOfMaterialHdrDetailsText,
  cast('' as boolean) AS IsCloudSystem,
  cast('' as boolean) AS BOMVersionIsReleased,
  _MaterialText.MaterialName AS MaterialName,
  BOMIsParamEffectivityRelevant,
  bomBO._SoldToParty AS _SoldToParty
FROM I_BillOfMaterialTP AS bomBO
LEFT OUTER JOIN C_BillOfMaterialItemTP AS _BillOfMaterialItem ON BillOfMaterial = _BillOfMaterialItem.BillOfMaterial AND BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory AND BillOfMaterialVariant = _BillOfMaterialItem.BillOfMaterialVariant AND BillOfMaterialVersion = _BillOfMaterialItem.BillOfMaterialVersion AND EngineeringChangeDocument = _BillOfMaterialItem.HeaderChangeDocument AND Material = _BillOfMaterialItem.Material AND Plant = _BillOfMaterialItem.Plant  -- association [0..*]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialVariantUsage ON BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage AND _BillOfMaterialVariantUsage.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialStatus AS _BillOfMaterialStatus ON BillOfMaterialStatus = _BillOfMaterialStatus.BillOfMaterialStatus  -- association [0..1]
LEFT OUTER JOIN I_PlantStdVH AS _Plants ON PlantForEdit = _Plants.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON MaterialForEdit = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_UnitizedMaterial AS _UnitizedMaterial ON MaterialForEdit = _UnitizedMaterial.Material  -- association [1..1]
;