R_BillOfMaterialTP_1

DDL: R_BILLOFMATERIALTP_1 Type: view_entity TRANSACTIONAL Package: CS_RAP

Bill of Material(Base) : Header

R_BillOfMaterialTP_1 is a Transactional CDS View that provides data about "Bill of Material(Base) : Header" in SAP S/4HANA. It reads from 1 data source (I_MaterialBOM) and exposes 52 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion, EngineeringChangeDocument. It has 6 associations to related views. Part of development package CS_RAP.

Data Sources (1)

SourceAliasJoin Type
I_MaterialBOM bom_header from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_ProductDescription _ProductDescription $projection.Material = _ProductDescription.Product and _ProductDescription.Language = $session.system_language
[0..1] I_PlantStdVH _Plants $projection.Plant = _Plants.Plant
[0..1] I_BillOfMaterialUsage _BillOfMaterialUsage $projection.BillOfMaterialVariantUsage = _BillOfMaterialUsage.BillOfMaterialVariantUsage
[0..1] I_ChangeMaster _ChangeNumber $projection.EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber ----Extension
[1..1] E_BillOfMaterialTP _BillOfMaterialExtension $projection.BillOfMaterial = _BillOfMaterialExtension.BillOfMaterial and $projection.BillOfMaterialCategory = _BillOfMaterialExtension.BillOfMaterialCategory and $projection.BillOfMaterialVariant = _BillOfMaterialExtension.BillOfMaterialVariant and $projection.BOMHeaderInternalChangeCount = _BillOfMaterialExtension.BOMHeaderInternalChangeCount and $projection.BillOfMaterialVersion = _BillOfMaterialExtension.BillOfMaterialVersion
[0..*] R_BillOfMaterialItemTP_1 _BillOfMaterialItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Bill of Material(Base) : Header view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name BillOfMaterial view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial
KEY BillOfMaterialCategory I_MaterialBOM BillOfMaterialCategory BOM category
KEY BillOfMaterialVariant I_MaterialBOM BillOfMaterialVariant AlternativeBOM
KEY BillOfMaterialVersion I_MaterialBOM BillOfMaterialVersion BOM Version
KEY EngineeringChangeDocument I_MaterialBOM EngineeringChangeDocument Change Number
KEY Material I_MaterialBOM Material Vehicle Model
KEY Plant I_MaterialBOM Plant Valuation Area
SalesOrder
SalesOrderItem
BillOfMaterialHeaderUUID I_MaterialBOM BillOfMaterialHeaderUUID Guid
BillOfMaterialVariantUsage I_MaterialBOM BillOfMaterialVariantUsage Usage
EngineeringChangeDocForEdit I_MaterialBOM EngineeringChangeDocument Change Number
IsMultipleBOMAlt I_MaterialBOM IsMultipleBOMAlt Alt.det. MBOM
BOMHeaderInternalChangeCount I_MaterialBOM BOMHeaderInternalChangeCount Counter
BOMUsagePriority I_MaterialBOM BOMUsagePriority Sel. priority
BillOfMaterialAuthsnGrp I_MaterialBOM BillOfMaterialAuthsnGrp Auth group
BOMVersionStatus I_MaterialBOM BOMVersionStatus BOM Version Status
IsVersionBillOfMaterial I_MaterialBOM IsVersionBillOfMaterial Versioning Relevant
IsLatestBOMVersion I_MaterialBOM IsLatestBOMVersion Latest Rel Version
IsConfiguredMaterial I_MaterialBOM IsConfiguredMaterial Configured matl
BOMTechnicalType
BOMGroup I_MaterialBOM BOMGroup BOM group
BOMHeaderText I_MaterialBOM BOMHeaderText BOM Description
BOMAlternativeText I_MaterialBOM BOMAlternativeText Alt Text
BillOfMaterialStatus I_MaterialBOM BillOfMaterialStatus BOM Status
ValidityStartDate I_MaterialBOM HeaderValidityStartDate Valid From
ValidityEndDate I_MaterialBOM HeaderValidityEndDate to
ChgToEngineeringChgDocument I_MaterialBOM ChgToEngineeringChgDocument Change No. To
IsMarkedForDeletion I_MaterialBOM IsMarkedForDeletion Purch.org. data
IsALE I_MaterialBOM IsALE ALE indicator
MatFromLotSizeQuantity I_MaterialBOM MatFromLotSizeQuantity From Lot Size
MaterialToLotSizeQuantity I_MaterialBOM MaterialToLotSizeQuantity To Lot Size
BOMHeaderBaseUnit I_MaterialBOM BOMHeaderBaseUnit Base UoM
BOMHeaderQuantityInBaseUnit I_MaterialBOM BOMHeaderQuantityInBaseUnit Base quantity
RecordCreationDate I_MaterialBOM RecordCreationDate Created On
LastChangeDate I_MaterialBOM LastChangeDate Time Stamp
CreatedByUser I_MaterialBOM CreatedByUser User Name
LastChangedByUser I_MaterialBOM LastChangedByUser User Name
BOMIsToBeDeleted I_MaterialBOM BOMIsToBeDeleted Handling Del. Flag
DocumentIsCreatedByCAD I_MaterialBOM DocumentIsCreatedByCAD CAD Indicator
LaboratoryOrDesignOffice I_MaterialBOM LaboratoryOrDesignOffice Lab/Office
BOMAssetNtwkHndovrIsRelevant I_MaterialBOM BOMAssetNtwkHndovrIsRelevant BOM to AIN Handover
ProductDescription _ProductDescription ProductDescription Description
PlantName _Plant PlantName Plant Name
DefaultValidFromDate
SelectedBillOfMaterialVersion
BillOfMaterialHdrDetailsText
IsAttachmentsEnabled
_BillOfMaterialItem _BillOfMaterialItem
_UnitOfMeasure _UnitOfMeasure
_BillOfMaterialUsage _BillOfMaterialUsage
_ChangeNumber _ChangeNumber

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 R_BillOfMaterialTP_1.
-- 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 R_BillOfMaterialTP_1 AS
SELECT
  cast( bom_header.BillOfMaterial as cs_stlnr preserving type ) AS BillOfMaterial,
  bom_header.BillOfMaterialCategory AS BillOfMaterialCategory,
  bom_header.BillOfMaterialVariant AS BillOfMaterialVariant,
  bom_header.BillOfMaterialVersion AS BillOfMaterialVersion,
  bom_header.EngineeringChangeDocument AS EngineeringChangeDocument,
  bom_header.Material AS Material,
  bom_header.Plant AS Plant,
  cast( ' ' as vbeln_va ) AS SalesOrder,
  cast( ' ' as posnr ) AS SalesOrderItem,
  bom_header.BillOfMaterialHeaderUUID AS BillOfMaterialHeaderUUID,
  bom_header.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  bom_header.EngineeringChangeDocument AS EngineeringChangeDocForEdit,
  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 ValidityStartDate,
  bom_header.HeaderValidityEndDate AS ValidityEndDate,
  bom_header.ChgToEngineeringChgDocument AS ChgToEngineeringChgDocument,
  bom_header.IsMarkedForDeletion AS IsMarkedForDeletion,
  bom_header.IsALE AS IsALE,
  bom_header.MatFromLotSizeQuantity AS MatFromLotSizeQuantity,
  bom_header.MaterialToLotSizeQuantity AS MaterialToLotSizeQuantity,
  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.BOMAssetNtwkHndovrIsRelevant AS BOMAssetNtwkHndovrIsRelevant,
  _ProductDescription.ProductDescription AS ProductDescription,
  _Plant.PlantName AS PlantName,
  $session.system_date AS DefaultValidFromDate,
  cast(' ' as abap.char( 4 ) ) AS SelectedBillOfMaterialVersion,
  cast(' ' as abap.char( 255 ) ) AS BillOfMaterialHdrDetailsText,
  cast(' ' as cv_orig preserving type ) AS IsAttachmentsEnabled
FROM I_MaterialBOM AS bom_header
LEFT OUTER JOIN I_ProductDescription AS _ProductDescription ON Material = _ProductDescription.Product AND _ProductDescription.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PlantStdVH AS _Plants ON Plant = _Plants.Plant  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialUsage ON BillOfMaterialVariantUsage = _BillOfMaterialUsage.BillOfMaterialVariantUsage  -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN E_BillOfMaterialTP AS _BillOfMaterialExtension ON BillOfMaterial = _BillOfMaterialExtension.BillOfMaterial AND BillOfMaterialCategory = _BillOfMaterialExtension.BillOfMaterialCategory AND BillOfMaterialVariant = _BillOfMaterialExtension.BillOfMaterialVariant AND BOMHeaderInternalChangeCount = _BillOfMaterialExtension.BOMHeaderInternalChangeCount AND BillOfMaterialVersion = _BillOfMaterialExtension.BillOfMaterialVersion  -- association [1..1]
LEFT OUTER JOIN R_BillOfMaterialItemTP_1 AS _BillOfMaterialItem ON /* condition not available in parsed metadata */  -- association [0..*]
;