R_WBSBillOfMaterialTP
WBS Bill Of Material Header
R_WBSBillOfMaterialTP is a Transactional CDS View that provides data about "WBS Bill Of Material Header" in SAP S/4HANA. It reads from 1 data source (I_WBSBillOfMaterialHeader) and exposes 75 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion, EngineeringChangeDocument. It has 11 associations to related views. Part of development package CS_RAP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_WBSBillOfMaterialHeader | bom_header | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductDescription | _ProductDescription | $projection.Material = _ProductDescription.Product and _ProductDescription.Language = $session.system_language |
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber |
| [0..1] | I_BillOfMaterialUsage | _BillOfMaterialUsage | $projection.BillOfMaterialVariantUsage = _BillOfMaterialUsage.BillOfMaterialVariantUsage |
| [1..1] | E_BillOfMaterialTP | _BillOfMaterialExtension | $projection.BillOfMaterial = _BillOfMaterialExtension.BillOfMaterial and $projection.BillOfMaterialCategory = _BillOfMaterialExtension.BillOfMaterialCategory and $projection.BillOfMaterialVariant = _BillOfMaterialExtension.BillOfMaterialVariant and $projection.BOMHeaderInternalChangeCount = _BillOfMaterialExtension.BOMHeaderInternalChangeCount |
| [0..1] | I_BillOfMaterialStatus | _BillOfMaterialStatus | $projection.BillOfMaterialStatus = _BillOfMaterialStatus.BillOfMaterialStatus |
| [0..1] | I_BillOfMaterialStatusText | _BillOfMaterialStatusText | $projection.BillOfMaterialStatus = _BillOfMaterialStatusText.BillOfMaterialStatus and _BillOfMaterialStatusText.Language = $session.system_language ----T415B Adoption |
| [0..*] | I_ProdRtlUnitOfMeasureBOM | _ProdRtlUnitOfMeasureBOM | $projection.Material = _ProdRtlUnitOfMeasureBOM.Product and $projection.BillOfMaterialVariantUsage = _ProdRtlUnitOfMeasureBOM.ProductBOMUsage and $projection.BillOfMaterialVariant = _ProdRtlUnitOfMeasureBOM.AlternativeBillOfMaterial |
| [1..1] | I_EnterpriseProjectElement | _EnterpriseProjectElement | bom_header.WBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID |
| [0..1] | I_LaboratoryOrDesignOfficeVH | _LaboratoryOrDesignOfficeName | $projection.LaboratoryOrDesignOffice = _LaboratoryOrDesignOfficeName.LaboratoryOrDesignOfficeName |
| [0..*] | I_NoteBasicTP | _NoteBasic | _NoteBasic.NoteBasicObject = $projection.BillOfMaterialNoteIdentifier and _NoteBasic.NoteBasicObjectNodeType = 'WBSBILLOFMATERIAL' |
| [0..*] | R_WBSBillOfMaterialItemTP | _BillOfMaterialItem | |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | 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 | WBSBillOfMaterial | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.elementSuffix | BMH | view | |
| AbapCatalog.extensibility.allowNewDatasources | false | view | |
| AbapCatalog.extensibility.quota.maximumFields | 238 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 2240 | view | |
| EndUserText.label | WBS Bill Of Material Header | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfMaterial | I_WBSBillOfMaterialHeader | BillOfMaterial | BOM |
| KEY | BillOfMaterialCategory | I_WBSBillOfMaterialHeader | BillOfMaterialCategory | BOM category |
| KEY | BillOfMaterialVariant | I_WBSBillOfMaterialHeader | BillOfMaterialVariant | AlternativeBOM |
| KEY | BillOfMaterialVersion | |||
| KEY | EngineeringChangeDocument | I_WBSBillOfMaterialHeader | EngineeringChangeDocument | Change Number |
| KEY | Material | I_WBSBillOfMaterialHeader | Material | Vehicle Model |
| KEY | Plant | I_WBSBillOfMaterialHeader | Plant | Valuation Area |
| ProjectElement | _EnterpriseProjectElement | ProjectElement | Proj Element ID | |
| WBSElementInternalID | WBS Internal ID | |||
| SalesOrder | ||||
| SalesOrderItem | ||||
| SoldToParty | ||||
| PurchaseOrderByCustomer | ||||
| BillOfMaterialHeaderUUID | I_WBSBillOfMaterialHeader | BillOfMaterialHeaderUUID | Guid | |
| BillOfMaterialVariantUsage | I_WBSBillOfMaterialHeader | BillOfMaterialVariantUsage | Usage | |
| EngineeringChangeDocForEdit | I_WBSBillOfMaterialHeader | EngineeringChangeDocument | Change Number | |
| IsMultipleBOMAlt | I_WBSBillOfMaterialHeader | IsMultipleBOMAlt | Alt.det. MBOM | |
| BOMHeaderInternalChangeCount | I_WBSBillOfMaterialHeader | BOMHeaderInternalChangeCount | Counter | |
| BOMUsagePriority | I_WBSBillOfMaterialHeader | BOMUsagePriority | Sel. priority | |
| BillOfMaterialAuthsnGrp | I_WBSBillOfMaterialHeader | BillOfMaterialAuthsnGrp | Auth group | |
| BOMVersionStatus | I_WBSBillOfMaterialHeader | BOMVersionStatus | BOM Version Status | |
| IsVersionBillOfMaterial | I_WBSBillOfMaterialHeader | IsVersionBillOfMaterial | Versioning Relevant | |
| IsLatestBOMVersion | I_WBSBillOfMaterialHeader | IsLatestBOMVersion | Latest Rel Version | |
| IsConfiguredMaterial | I_WBSBillOfMaterialHeader | IsConfiguredMaterial | Configured matl | |
| BOMTechnicalTypeasBOMTechnicalType | ||||
| BOMGroup | I_WBSBillOfMaterialHeader | BOMGroup | BOM group | |
| BOMHeaderText | I_WBSBillOfMaterialHeader | BOMHeaderText | BOM Description | |
| BOMAlternativeText | I_WBSBillOfMaterialHeader | BOMAlternativeText | Alt Text | |
| BillOfMaterialStatus | I_WBSBillOfMaterialHeader | BillOfMaterialStatus | BOM Status | |
| ValidityStartDate | I_WBSBillOfMaterialHeader | HeaderValidityStartDate | Valid From | |
| ValidityEndDate | I_WBSBillOfMaterialHeader | HeaderValidityEndDate | to | |
| ChgToEngineeringChgDocument | I_WBSBillOfMaterialHeader | ChgToEngineeringChgDocument | Change No. To | |
| IsMarkedForDeletion | I_WBSBillOfMaterialHeader | IsMarkedForDeletion | Purch.org. data | |
| IsALE | I_WBSBillOfMaterialHeader | IsALE | ALE indicator | |
| BOMHeaderBaseUnit | I_WBSBillOfMaterialHeader | BOMHeaderBaseUnit | Base UoM | |
| MatFromLotSizeQuantity | I_WBSBillOfMaterialHeader | MatFromLotSizeQuantity | From Lot Size | |
| MaterialToLotSizeQuantity | I_WBSBillOfMaterialHeader | MaterialToLotSizeQuantity | To Lot Size | |
| BOMHeaderQuantityInBaseUnit | I_WBSBillOfMaterialHeader | BOMHeaderQuantityInBaseUnit | Base quantity | |
| RecordCreationDate | I_WBSBillOfMaterialHeader | RecordCreationDate | Created On | |
| LastChangeDate | I_WBSBillOfMaterialHeader | LastChangeDate | Time Stamp | |
| LastChangedByUser | I_WBSBillOfMaterialHeader | LastChangedByUser | User Name | |
| CreatedByUser | I_WBSBillOfMaterialHeader | CreatedByUser | User Name | |
| BOMIsToBeDeleted | I_WBSBillOfMaterialHeader | BOMIsToBeDeleted | Handling Del. Flag | |
| DocumentIsCreatedByCAD | I_WBSBillOfMaterialHeader | DocumentIsCreatedByCAD | CAD Indicator | |
| LaboratoryOrDesignOffice | I_WBSBillOfMaterialHeader | LaboratoryOrDesignOffice | Lab/Office | |
| BOMAssetNtwkHndovrIsRelevant | I_WBSBillOfMaterialHeader | BOMAssetNtwkHndovrIsRelevant | BOM to AIN Handover | |
| LastChangeDateTime | I_WBSBillOfMaterialHeader | LastChangeDateTime | Timestamp | |
| IndicatorIsBOMWithDateHistory | I_WBSBillOfMaterialHeader | IndicatorIsBOMWithDateHistory | Date hist | |
| IndicatorIsBOMChangedWithHist | I_WBSBillOfMaterialHeader | IndicatorIsBOMChangedWithHist | History ID | |
| AlternativeUnit | _ProdRtlUnitOfMeasureBOM | AlternativeUnit | Base UoM | |
| BOMExplosionApplication | I_WBSBillOfMaterialHeader | BOMExplosionApplication | BOM Application | |
| DefaultValidFromDate | ||||
| BillOfMaterialHdrDetailsText | ||||
| ProductDescription | _ProductDescription | ProductDescription | Description | |
| PlantName | _Plant | PlantName | Plant Name | |
| IsAttachmentsEnabled | ||||
| ProductIsConfigurable | ||||
| MaterialType | ||||
| MaterialName | ||||
| MaterialBOMObjectID | ||||
| LongTextLanguage | LongTextLanguage | Long Text Lang | ||
| BOMPrioritizedVersion | BOMPrioritizedVersion | Selection ID | ||
| BOMPredecessorVersion | ||||
| BOMIsConfigurable | BOMIsConfigurable | ConfigurableBOM | ||
| BOMIsArchivedForDeletion | BOMIsArchivedForDeletion | Deletion flag | ||
| BillOfMaterialNoteIdentifier | ||||
| _ChangeNumber | _ChangeNumber | |||
| _BillOfMaterialUsage | _BillOfMaterialUsage | |||
| _BillOfMaterialItem | _BillOfMaterialItem | |||
| _EnterpriseProjectElement | _EnterpriseProjectElement | |||
| _LaboratoryOrDesignOfficeName | _LaboratoryOrDesignOfficeName | |||
| _NoteBasic | _NoteBasic | |||
| _BillOfMaterialStatus | _BillOfMaterialStatus | |||
| _BillOfMaterialStatusText | _BillOfMaterialStatusText | |||
| EngineeringChangeDocForCopy | Change Number |
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_WBSBillOfMaterialTP.
-- 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_WBSBillOfMaterialTP AS
SELECT
bom_header.BillOfMaterial AS BillOfMaterial,
bom_header.BillOfMaterialCategory AS BillOfMaterialCategory,
bom_header.BillOfMaterialVariant AS BillOfMaterialVariant,
cast( ' ' as cs_versn ) AS BillOfMaterialVersion,
bom_header.EngineeringChangeDocument AS EngineeringChangeDocument,
bom_header.Material AS Material,
bom_header.Plant AS Plant,
_EnterpriseProjectElement.ProjectElement AS ProjectElement,
cast(WBSElementInternalID as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
cast(' ' as cs_vbeln preserving type ) AS SalesOrder,
cast('000000' as cs_vbpos preserving type ) AS SalesOrderItem,
cast(' ' as kunag preserving type ) AS SoldToParty,
cast(' ' as bstkd) AS PurchaseOrderByCustomer,
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,
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.BOMHeaderBaseUnit AS BOMHeaderBaseUnit,
bom_header.MatFromLotSizeQuantity AS MatFromLotSizeQuantity,
bom_header.MaterialToLotSizeQuantity AS MaterialToLotSizeQuantity,
bom_header.BOMHeaderQuantityInBaseUnit AS BOMHeaderQuantityInBaseUnit,
bom_header.RecordCreationDate AS RecordCreationDate,
bom_header.LastChangeDate AS LastChangeDate,
bom_header.LastChangedByUser AS LastChangedByUser,
bom_header.CreatedByUser AS CreatedByUser,
bom_header.BOMIsToBeDeleted AS BOMIsToBeDeleted,
bom_header.DocumentIsCreatedByCAD AS DocumentIsCreatedByCAD,
bom_header.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
bom_header.BOMAssetNtwkHndovrIsRelevant AS BOMAssetNtwkHndovrIsRelevant,
bom_header.LastChangeDateTime AS LastChangeDateTime,
bom_header.IndicatorIsBOMWithDateHistory AS IndicatorIsBOMWithDateHistory,
bom_header.IndicatorIsBOMChangedWithHist AS IndicatorIsBOMChangedWithHist,
_ProdRtlUnitOfMeasureBOM.AlternativeUnit AS AlternativeUnit,
bom_header.BOMExplosionApplication AS BOMExplosionApplication,
$session.system_date AS DefaultValidFromDate,
cast(' ' as abap.char( 255 ) ) AS BillOfMaterialHdrDetailsText,
_ProductDescription.ProductDescription AS ProductDescription,
_Plant.PlantName AS PlantName,
cast(' ' as cv_orig preserving type ) AS IsAttachmentsEnabled,
cast( ' ' as productisconfigurable preserving type ) AS ProductIsConfigurable,
cast( ' ' as mtart ) AS MaterialType,
cast( ' ' as maktx ) AS MaterialName,
cast( ' ' as cs_matbom_key ) AS MaterialBOMObjectID,
LongTextLanguage,
BOMPrioritizedVersion,
cast( ' ' as cs_prev_versn ) AS BOMPredecessorVersion,
BOMIsConfigurable,
BOMIsArchivedForDeletion,
bintohex( BillOfMaterialHeaderUUID ) AS BillOfMaterialNoteIdentifier,
cast(EngineeringChangeDocument as aennr ) AS EngineeringChangeDocForCopy
FROM I_WBSBillOfMaterialHeader 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_ChangeMaster AS _ChangeNumber ON EngineeringChangeDocForEdit = _ChangeNumber.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialUsage ON BillOfMaterialVariantUsage = _BillOfMaterialUsage.BillOfMaterialVariantUsage -- 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 -- association [1..1]
LEFT OUTER JOIN I_BillOfMaterialStatus AS _BillOfMaterialStatus ON BillOfMaterialStatus = _BillOfMaterialStatus.BillOfMaterialStatus -- 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_ProdRtlUnitOfMeasureBOM AS _ProdRtlUnitOfMeasureBOM ON Material = _ProdRtlUnitOfMeasureBOM.Product AND BillOfMaterialVariantUsage = _ProdRtlUnitOfMeasureBOM.ProductBOMUsage AND BillOfMaterialVariant = _ProdRtlUnitOfMeasureBOM.AlternativeBillOfMaterial -- association [0..*]
LEFT OUTER JOIN I_EnterpriseProjectElement AS _EnterpriseProjectElement ON bom_header.WBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID -- association [1..1]
LEFT OUTER JOIN I_LaboratoryOrDesignOfficeVH AS _LaboratoryOrDesignOfficeName ON LaboratoryOrDesignOffice = _LaboratoryOrDesignOfficeName.LaboratoryOrDesignOfficeName -- association [0..1]
LEFT OUTER JOIN I_NoteBasicTP AS _NoteBasic ON _NoteBasic.NoteBasicObject = BillOfMaterialNoteIdentifier AND _NoteBasic.NoteBasicObjectNodeType = 'WBSBILLOFMATERIAL' -- association [0..*]
LEFT OUTER JOIN R_WBSBillOfMaterialItemTP AS _BillOfMaterialItem ON /* condition not available in parsed metadata */ -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA