I_BillOfMaterialWithKeyDate

DDL: I_BILLOFMATERIALWITHKEYDATE SQL: IBOMWITHKEYDATE Type: view COMPOSITE

Bill of Material Header Details

I_BillOfMaterialWithKeyDate (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

R&D Engineering

I_BillOfMaterialWithKeyDate is a Composite CDS View that provides data about "Bill of Material Header Details" in SAP S/4HANA. It reads from 1 data source (I_BOMHeaderDetermine) and exposes 49 fields with key fields BillOfMaterialCategory, BillOfMaterialVariantUsage, BillOfMaterial, BillOfMaterialVariant, BillOfMaterialVersion. It has 10 associations to related views.

SAP Help Documentation

CategoryCDS Views for Bill of Material
StatusReleased
Purpose
This CDS view provides the prerequisites for answering the following business questions: What is the bill of material number used in combination with the BOM category to uniquely identify a BOM or a BOM group? What is the BOM category that defines a BOM according to the object (such as material or equipment) to which it is linked? What is the BOM alternative, BOM usage, and BOM version? What is the BOM status that describes the current processing status of the BOM? What is the internal change count of a BOM? What is the base unit of measure and base quantity for a BOM header? What is the authorization value, as stored in person profiles, which controls access to the BOM? Is the BOM a version BOM? If yes, what is the BOM version status, predecessor version status? Is the version BOM latest? Is the material a configurable material? What is the BOM technical type? Which BOMs are marked for deletion during BOM explosion? What are the keys for design office or laboratory? Which BOMs are marked to show that the data of an assembly or a component has been distributed to the SAP system using Application Link Enabling (ALE)? What is the date on which the record was created and last changed? What is the name of the person who created and last changed the object? What is the BOM header description? What text describes a BOM alternative and a BOM variant? What is the BOM header validity start and end date? What is the engineering change document associated with the BOM header? Which are the document info records that are created from CAD Desktop?

Structure
You use the date as the key to retrieve records valid for a specified date. Attributes Some important attributes are: Bill of Material Category Bill of Material Variant Usage Bill of Material Bill of Material Variant Bill of Material Version Bill of Material Header Internal Change Count Alternative Determination of Multiple BOMs BOM Prioritized Version BOM Explosion Application BOM Usage Priority BOM Authorization Group BOM Version Status Version Bill of Material Indicator Is BOM Version Latest? Indicator to Check Is the Material Configurable BOM Technical Type BOM Header Text BOM Alternative Text BOM Status BOM Header Validity Start Date BOM Header Validity End Date Engineering Change Document Change to Engineering Change Document Is ALE? Bill of Material Marked for Deletion BOM Header Quantity in Base Unit BOM Header Base Unit Record Creation Date Record Last Changed Date Created by User Last changed by User Document is Created by CAD Laboratory or Design Office Last Change Date and Time Is BOM relevant for AIN Handover? BOM Predecessor Version

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessR&D Engineering
Application ComponentLO-MD-BOM
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select
PackageR&D Engineering for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_BOMHeaderDetermine bom_header from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (10)

CardinalityTargetAliasCondition
[0..*] I_BOMComponentWithKeyDate _BillOfMaterialItem $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory and $projection.BillOfMaterial = _BillOfMaterialItem.BillOfMaterial and $projection.BillOfMaterialVariant = _BillOfMaterialItem.BillOfMaterialVariant and $projection.BillOfMaterialVersion = _BillOfMaterialItem.BillOfMaterialVersion
[0..*] I_MaterialBOMLink _Mast $projection.BillOfMaterialCategory = _Mast.BillOfMaterialCategory and $projection.BillOfMaterial = _Mast.BillOfMaterial and $projection.BillOfMaterialVariant = _Mast.BillOfMaterialVariant and $projection.BillOfMaterialVariantUsage = _Mast.BillOfMaterialVariantUsage
[0..*] I_DocumentBOMLink _Dost $projection.BillOfMaterialCategory = _Dost.BillOfMaterialCategory and $projection.BillOfMaterial = _Dost.BillOfMaterial and $projection.BillOfMaterialVariant = _Dost.BillOfMaterialVariant
[0..*] I_ProjectBOMLink _Prst $projection.BillOfMaterialCategory = _Prst.BillOfMaterialCategory and $projection.BillOfMaterial = _Prst.BillOfMaterial and $projection.BillOfMaterialVariant = _Prst.BillOfMaterialVariant
[0..*] I_SalesOrderBOMLink _Kdst $projection.BillOfMaterialCategory = _Kdst.BillOfMaterialCategory and $projection.BillOfMaterial = _Kdst.BillOfMaterial and $projection.BillOfMaterialVariant = _Kdst.BillOfMaterialVariant
[0..*] I_EquipmentBOMLink _Eqst $projection.BillOfMaterialCategory = _Eqst.BillOfMaterialCategory and $projection.BillOfMaterial = _Eqst.BillOfMaterial and $projection.BillOfMaterialVariant = _Eqst.BillOfMaterialVariant
[0..*] I_FunctionalLocBOMLink _Tpst $projection.BillOfMaterialCategory = _Tpst.BillOfMaterialCategory and $projection.BillOfMaterial = _Tpst.BillOfMaterial and $projection.BillOfMaterialVariant = _Tpst.BillOfMaterialVariant
[0..*] I_StandardBOMLink _Stst $projection.BillOfMaterialCategory = _Stst.BillOfMaterialCategory and $projection.BillOfMaterial = _Stst.BillOfMaterial and $projection.BillOfMaterialVariant = _Stst.BillOfMaterialVariant
[0..1] I_BillOfMaterialUsage _BillOfMaterialVariantUsage $projection.BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.BOMHeaderBaseUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBOMWITHKEYDATE view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Bill of Material Header Details view
Metadata.ignorePropagatedAnnotations true view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterialCategory I_BOMHeaderDetermine BillOfMaterialCategory BOM category
KEY BillOfMaterialVariantUsage I_BOMHeaderDetermine BillOfMaterialVariantUsage BOM Usage
KEY BillOfMaterial I_BOMHeaderDetermine BillOfMaterial Bill of Material
KEY BillOfMaterialVariant I_BOMHeaderDetermine BillOfMaterialVariant Alternative BOM
KEY BillOfMaterialVersion I_BOMHeaderDetermine BillOfMaterialVersion BOM Version
KEY BOMHeaderInternalChangeCount I_BOMHeaderDetermine BOMHeaderInternalChangeCount Internal counter
IsMultipleBOMAlt I_BOMHeaderDetermine IsMultipleBOMAlt Indicator: alternative determination for multiple BOMs
BOMPrioritizedVersion I_BOMHeaderDetermine BOMPrioritizedVersion CIM selection indicator for alternatives
BOMExplosionApplication I_BOMHeaderDetermine BOMExplosionApplication BOM Application
BOMUsagePriority I_BOMHeaderDetermine BOMUsagePriority CIM priority for selection ID
BillOfMaterialAuthsnGrp I_BOMHeaderDetermine BillOfMaterialAuthsnGrp Authorization group for bills of material
BOMVersionStatus I_BOMHeaderDetermine BOMVersionStatus BOM Version Status
IsVersionBillOfMaterial I_BOMHeaderDetermine IsVersionBillOfMaterial Indicator: Relevant for Versioning
IsLatestBOMVersion I_BOMHeaderDetermine IsLatestBOMVersion Indicator: Latest Released BOM Version
BOMIsConfigurable I_BOMHeaderDetermine BOMIsConfigurable Indicator: configurable BOM
IsConfiguredMaterial I_BOMHeaderDetermine IsConfiguredMaterial Indicator: configurable BOM
BOMTechnicalType Technical type
BOMGroup I_BOMHeaderDetermine BOMGroup BOM group
BOMHeaderText I_BOMHeaderDetermine BOMHeaderText BOM Description
BOMAlternativeText I_BOMHeaderDetermine BOMAlternativeText Alternative BOM Text
BillOfMaterialStatus I_BOMHeaderDetermine BillOfMaterialStatus Bill of Material Status
HeaderValidityStartDate I_BOMHeaderDetermine HeaderValidityStartDate Valid-From Date
HeaderValidityEndDate I_BOMHeaderDetermine HeaderValidityEndDate Valid-to date
EngineeringChangeDocument I_BOMHeaderDetermine EngineeringChangeDocument Change Number
ChgToEngineeringChgDocument I_BOMHeaderDetermine ChgToEngineeringChgDocument Change Number To
IsMarkedForDeletion I_BOMHeaderDetermine IsMarkedForDeletion Deletion Indicator
IsALE I_BOMHeaderDetermine IsALE ALE indicator
BOMHeaderBaseUnit I_BOMHeaderDetermine BOMHeaderBaseUnit Base Unit of Measure for BOM
BOMHeaderQuantityInBaseUnit I_BOMHeaderDetermine BOMHeaderQuantityInBaseUnit Base quantity
RecordCreationDate I_BOMHeaderDetermine RecordCreationDate Date Record Created On
LastChangeDate I_BOMHeaderDetermine LastChangeDate Last Changed On
CreatedByUser I_BOMHeaderDetermine CreatedByUser User who created record
LastChangedByUser I_BOMHeaderDetermine LastChangedByUser Name of Person Who Changed Object
BOMIsToBeDeleted I_BOMHeaderDetermine BOMIsToBeDeleted Handling Deletion Flag During BOM Explosion
DocumentIsCreatedByCAD I_BOMHeaderDetermine DocumentIsCreatedByCAD CAD Indicator
LaboratoryOrDesignOffice I_BOMHeaderDetermine LaboratoryOrDesignOffice Laboratory/Design Office
LastChangeDateTime I_BOMHeaderDetermine LastChangeDateTime UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
BOMAssetNtwkHndovrIsRelevant I_BOMHeaderDetermine BOMAssetNtwkHndovrIsRelevant Relevant for BOM to AIN Handover
BOMPredecessorVersion I_BOMHeaderDetermine BOMPredecessorVersion Predecessor Version of BOM
_BillOfMaterialItem _BillOfMaterialItem
_BillOfMaterialVariantUsage _BillOfMaterialVariantUsage
_UnitOfMeasure _UnitOfMeasure
_Mast _Mast
_Dost _Dost
_Prst _Prst
_Kdst _Kdst
_Eqst _Eqst
_Tpst _Tpst
_Stst _Stst

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 I_BillOfMaterialWithKeyDate.
-- 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: IBOMWITHKEYDATE
-- Parameters: P_KeyDate : sydate

CREATE VIEW I_BillOfMaterialWithKeyDate AS
SELECT
  bom_header.BillOfMaterialCategory AS BillOfMaterialCategory,
  bom_header.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  bom_header.BillOfMaterial AS BillOfMaterial,
  bom_header.BillOfMaterialVariant AS BillOfMaterialVariant,
  bom_header.BillOfMaterialVersion AS BillOfMaterialVersion,
  bom_header.BOMHeaderInternalChangeCount AS BOMHeaderInternalChangeCount,
  bom_header.IsMultipleBOMAlt AS IsMultipleBOMAlt,
  bom_header.BOMPrioritizedVersion AS BOMPrioritizedVersion,
  bom_header.BOMExplosionApplication AS BOMExplosionApplication,
  bom_header.BOMUsagePriority AS BOMUsagePriority,
  bom_header.BillOfMaterialAuthsnGrp AS BillOfMaterialAuthsnGrp,
  bom_header.BOMVersionStatus AS BOMVersionStatus,
  bom_header.IsVersionBillOfMaterial AS IsVersionBillOfMaterial,
  bom_header.IsLatestBOMVersion AS IsLatestBOMVersion,
  bom_header.BOMIsConfigurable AS BOMIsConfigurable,
  bom_header.IsConfiguredMaterial AS IsConfiguredMaterial,
  cast ( bom_header.BOMTechnicalType as tetyp_d preserving type) AS BOMTechnicalType,
  bom_header.BOMGroup AS BOMGroup,
  bom_header.BOMHeaderText AS BOMHeaderText,
  bom_header.BOMAlternativeText AS BOMAlternativeText,
  bom_header.BillOfMaterialStatus AS BillOfMaterialStatus,
  bom_header.HeaderValidityStartDate AS HeaderValidityStartDate,
  bom_header.HeaderValidityEndDate AS HeaderValidityEndDate,
  bom_header.EngineeringChangeDocument AS EngineeringChangeDocument,
  bom_header.ChgToEngineeringChgDocument AS ChgToEngineeringChgDocument,
  bom_header.IsMarkedForDeletion AS IsMarkedForDeletion,
  bom_header.IsALE AS IsALE,
  bom_header.BOMHeaderBaseUnit AS BOMHeaderBaseUnit,
  bom_header.BOMHeaderQuantityInBaseUnit AS BOMHeaderQuantityInBaseUnit,
  bom_header.RecordCreationDate AS RecordCreationDate,
  bom_header.LastChangeDate AS LastChangeDate,
  bom_header.CreatedByUser AS CreatedByUser,
  bom_header.LastChangedByUser AS LastChangedByUser,
  bom_header.BOMIsToBeDeleted AS BOMIsToBeDeleted,
  bom_header.DocumentIsCreatedByCAD AS DocumentIsCreatedByCAD,
  bom_header.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
  bom_header.LastChangeDateTime AS LastChangeDateTime,
  bom_header.BOMAssetNtwkHndovrIsRelevant AS BOMAssetNtwkHndovrIsRelevant,
  bom_header.BOMPredecessorVersion AS BOMPredecessorVersion
FROM I_BOMHeaderDetermine AS bom_header
LEFT OUTER JOIN I_BOMComponentWithKeyDate AS _BillOfMaterialItem ON BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory AND BillOfMaterial = _BillOfMaterialItem.BillOfMaterial AND BillOfMaterialVariant = _BillOfMaterialItem.BillOfMaterialVariant AND BillOfMaterialVersion = _BillOfMaterialItem.BillOfMaterialVersion  -- association [0..*]
LEFT OUTER JOIN I_MaterialBOMLink AS _Mast ON BillOfMaterialCategory = _Mast.BillOfMaterialCategory AND BillOfMaterial = _Mast.BillOfMaterial AND BillOfMaterialVariant = _Mast.BillOfMaterialVariant AND BillOfMaterialVariantUsage = _Mast.BillOfMaterialVariantUsage  -- association [0..*]
LEFT OUTER JOIN I_DocumentBOMLink AS _Dost ON BillOfMaterialCategory = _Dost.BillOfMaterialCategory AND BillOfMaterial = _Dost.BillOfMaterial AND BillOfMaterialVariant = _Dost.BillOfMaterialVariant  -- association [0..*]
LEFT OUTER JOIN I_ProjectBOMLink AS _Prst ON BillOfMaterialCategory = _Prst.BillOfMaterialCategory AND BillOfMaterial = _Prst.BillOfMaterial AND BillOfMaterialVariant = _Prst.BillOfMaterialVariant  -- association [0..*]
LEFT OUTER JOIN I_SalesOrderBOMLink AS _Kdst ON BillOfMaterialCategory = _Kdst.BillOfMaterialCategory AND BillOfMaterial = _Kdst.BillOfMaterial AND BillOfMaterialVariant = _Kdst.BillOfMaterialVariant  -- association [0..*]
LEFT OUTER JOIN I_EquipmentBOMLink AS _Eqst ON BillOfMaterialCategory = _Eqst.BillOfMaterialCategory AND BillOfMaterial = _Eqst.BillOfMaterial AND BillOfMaterialVariant = _Eqst.BillOfMaterialVariant  -- association [0..*]
LEFT OUTER JOIN I_FunctionalLocBOMLink AS _Tpst ON BillOfMaterialCategory = _Tpst.BillOfMaterialCategory AND BillOfMaterial = _Tpst.BillOfMaterial AND BillOfMaterialVariant = _Tpst.BillOfMaterialVariant  -- association [0..*]
LEFT OUTER JOIN I_StandardBOMLink AS _Stst ON BillOfMaterialCategory = _Stst.BillOfMaterialCategory AND BillOfMaterial = _Stst.BillOfMaterial AND BillOfMaterialVariant = _Stst.BillOfMaterialVariant  -- 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_UnitOfMeasure AS _UnitOfMeasure ON BOMHeaderBaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
;