I_MaintenanceBillOfMaterial

DDL: I_MAINTENANCEBILLOFMATERIAL SQL: IMAINTBOMHDR Type: view COMPOSITE

Maintenance Bill of Material Header

I_MaintenanceBillOfMaterial is a Composite CDS View that provides data about "Maintenance Bill of Material Header" in SAP S/4HANA. It reads from 1 data source (I_BillOfMaterial) and exposes 51 fields with key fields BillOfMaterial, PlantelseendasPlant, BillOfMaterialCategory, MaterialelseendasTechnicalObject, BillOfMaterialVariant. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BillOfMaterial bom_header from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _ChangedByUser $projection.LastChangedByUser = _ChangedByUser.UserID
[0..1] I_MaintTechObjBOMChgNumberVH _MaintTechObjBOMChgNumber $projection.EngineeringChangeDocument = _MaintTechObjBOMChgNumber.ChangeNumber and $projection.ChangeNumberObjectType = _MaintTechObjBOMChgNumber.ChangeNumberObjectType
[0..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[0..1] I_BillOfMaterialUsage _MaintBillOfMaterialUsage $projection.BillOfMaterialVariantUsage = _MaintBillOfMaterialUsage.BillOfMaterialVariantUsage and _MaintBillOfMaterialUsage.Language = $session.system_language
[0..1] I_MaintBillOfMaterialCategory _MaintBillOfMaterialCategory $projection.BillOfMaterialCategory = _MaintBillOfMaterialCategory.BillOfMaterialCategory and _MaintBillOfMaterialCategory.Language = $session.system_language
[0..1] I_FunctionalLocation _FunctionalLocation _FunctionalLocation.FunctionalLocation = $projection.FunctionalLocation
[0..1] I_Equipment _Equipment _Equipment.Equipment = $projection.equipment
[0..1] I_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc = $projection.TechObjIsEquipOrFuncnlLoc

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IMAINTBOMHDR view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.preserveKey true view
EndUserText.label Maintenance Bill of Material Header view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial
KEY PlantelseendasPlant
KEY BillOfMaterialCategory I_BillOfMaterial BillOfMaterialCategory BOM category
KEY MaterialelseendasTechnicalObject
KEY BillOfMaterialVariant I_BillOfMaterial BillOfMaterialVariant AlternativeBOM
KEY BillOfMaterialVersion I_BillOfMaterial BillOfMaterialVersion BOM Version
KEY BillOfMaterialVariantUsage I_BillOfMaterial BillOfMaterialVariantUsage Usage
KEY EngineeringChangeDocument I_BillOfMaterial EngineeringChangeDocument Change Number
BillOfMaterialHeaderUUID I_BillOfMaterial BillOfMaterialHeaderUUID Guid
IsMultipleBOMAlt I_BillOfMaterial IsMultipleBOMAlt Alt.det. MBOM
BOMHeaderInternalChangeCount I_BillOfMaterial BOMHeaderInternalChangeCount Counter
BOMUsagePriority I_BillOfMaterial BOMUsagePriority Sel. priority
BillOfMaterialAuthsnGrp I_BillOfMaterial BillOfMaterialAuthsnGrp Auth group
BOMVersionStatus I_BillOfMaterial BOMVersionStatus BOM Version Status
IsVersionBillOfMaterial I_BillOfMaterial IsVersionBillOfMaterial Versioning Relevant
IsLatestBOMVersion I_BillOfMaterial IsLatestBOMVersion Latest Rel Version
IsConfiguredMaterial I_BillOfMaterial IsConfiguredMaterial Configured matl
BOMTechnicalType
BOMGroup I_BillOfMaterial BOMGroup BOM group
BOMHeaderText I_BillOfMaterial BOMHeaderText BOM Description
BOMAlternativeText I_BillOfMaterial BOMAlternativeText Alt Text
BillOfMaterialStatus I_BillOfMaterial BillOfMaterialStatus BOM Status
HeaderValidityStartDate I_BillOfMaterial HeaderValidityStartDate Valid From
HeaderValidityEndDate I_BillOfMaterial HeaderValidityEndDate to
ChgToEngineeringChgDocument I_BillOfMaterial ChgToEngineeringChgDocument Change No. To
IsMarkedForDeletion I_BillOfMaterial IsMarkedForDeletion Purch.org. data
IsALE I_BillOfMaterial IsALE ALE indicator
BOMHeaderBaseUnit I_BillOfMaterial BOMHeaderBaseUnit Base UoM
BOMHeaderQuantityInBaseUnit I_BillOfMaterial BOMHeaderQuantityInBaseUnit Base quantity
RecordCreationDate I_BillOfMaterial RecordCreationDate Created On
LastChangeDate I_BillOfMaterial LastChangeDate Time Stamp
CreatedByUser I_BillOfMaterial CreatedByUser User Name
LastChangedByUser I_BillOfMaterial LastChangedByUser User Name
BOMIsToBeDeleted I_BillOfMaterial BOMIsToBeDeleted Handling Del. Flag
DocumentIsCreatedByCAD I_BillOfMaterial DocumentIsCreatedByCAD CAD Indicator
LaboratoryOrDesignOffice I_BillOfMaterial LaboratoryOrDesignOffice Lab/Office
LastChangeDateTime I_BillOfMaterial LastChangeDateTime Timestamp
SelectedBillOfMaterialVersion
CreatedByUserName
ChangedByUserName
Equipment
FunctionalLocation
_FunctionalLocation _FunctionalLocation
_Equipment _Equipment
_MaintBillOfMaterialCategory _MaintBillOfMaterialCategory
_MaintBillOfMaterialUsage _MaintBillOfMaterialUsage
_Plant _Plant
_MaintTechObjBOMChgNumber _MaintTechObjBOMChgNumber
_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc
_CreatedByUser _CreatedByUser
_ChangedByUser _ChangedByUser

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_MaintenanceBillOfMaterial.
-- 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: IMAINTBOMHDR

CREATE VIEW I_MaintenanceBillOfMaterial AS
SELECT
  cast( bom_header.BillOfMaterial as abap.char( 8 ) ) AS BillOfMaterial,
  case BillOfMaterialCategory when 'E' then bom_header._Eqst.Plant when 'T' then bom_header._Tpst.Plant when 'M' then bom_header._Mast.Plant else '' end as Plant AS PlantelseendasPlant,
  bom_header.BillOfMaterialCategory AS BillOfMaterialCategory,
  case BillOfMaterialCategory when 'E' then bom_header._Eqst.Equipment when 'T' then bom_header._Tpst.FunctionalLocation when 'M' then bom_header._Mast.Material else '' end as TechnicalObject AS MaterialelseendasTechnicalObject,
  bom_header.BillOfMaterialVariant AS BillOfMaterialVariant,
  bom_header.BillOfMaterialVersion AS BillOfMaterialVersion,
  bom_header.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  bom_header.EngineeringChangeDocument AS EngineeringChangeDocument,
  bom_header.BillOfMaterialHeaderUUID AS BillOfMaterialHeaderUUID,
  bom_header.IsMultipleBOMAlt AS IsMultipleBOMAlt,
  bom_header.BOMHeaderInternalChangeCount AS BOMHeaderInternalChangeCount,
  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.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.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,
  cast(' ' as abap.char( 4 ) ) AS SelectedBillOfMaterialVersion,
  concat( concat( concat(_CreatedByUser.UserDescription,' (' ) , _CreatedByUser.UserID ), ')') AS CreatedByUserName,
  concat( concat( concat(_ChangedByUser.UserDescription,' (' ) , _ChangedByUser.UserID ), ')') AS ChangedByUserName,
  bom_header._Eqst.Equipment AS Equipment,
  cast( bom_header._Tpst.FunctionalLocation as vdm_eam_tplnr ) AS FunctionalLocation
FROM I_BillOfMaterial AS bom_header
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedByUser ON LastChangedByUser = _ChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_MaintTechObjBOMChgNumberVH AS _MaintTechObjBOMChgNumber ON EngineeringChangeDocument = _MaintTechObjBOMChgNumber.ChangeNumber AND ChangeNumberObjectType = _MaintTechObjBOMChgNumber.ChangeNumberObjectType  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _MaintBillOfMaterialUsage ON BillOfMaterialVariantUsage = _MaintBillOfMaterialUsage.BillOfMaterialVariantUsage AND _MaintBillOfMaterialUsage.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaintBillOfMaterialCategory AS _MaintBillOfMaterialCategory ON BillOfMaterialCategory = _MaintBillOfMaterialCategory.BillOfMaterialCategory AND _MaintBillOfMaterialCategory.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON _FunctionalLocation.FunctionalLocation = FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON _Equipment.Equipment = equipment  -- association [0..1]
LEFT OUTER JOIN I_TechObjIsEquipOrFuncnlLoc AS _TechObjIsEquipOrFuncnlLoc ON _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc = TechObjIsEquipOrFuncnlLoc  -- association [0..1]
;