P_BOMHeaderType

DDL: P_BOMHEADERTYPE SQL: PBOMTYPES Type: view BASIC

P_BOMHeaderType is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_MaterialBOMLink, I_SalesOrderBOMLink) and exposes 14 fields with key fields BillOfMaterial, BillOfMaterialVariant, Material, Plant, BillOfMaterialVariantUsage.

Data Sources (2)

SourceAliasJoin Type
I_MaterialBOMLink I_MaterialBOMLink from
I_SalesOrderBOMLink I_SalesOrderBOMLink union_all

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PBOMTYPES view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial BillOfMaterial BOM
KEY BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
KEY SalesOrder SD Document
KEY SalesOrderItem Sales Order Item
KEY BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
KEY SalesOrder SalesOrder SD Document
KEY SalesOrderItem SalesOrderItem Sales Order Item
KEY BillOfMaterialCategory BillOfMaterialCategory BOM category

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 P_BOMHeaderType.
-- 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: PBOMTYPES

CREATE VIEW P_BOMHeaderType AS
SELECT
  BillOfMaterial,
  BillOfMaterialVariant,
  Material,
  Plant,
  BillOfMaterialVariantUsage,
  cast('' as cs_vbeln) AS SalesOrder,
  cast('000000' as cs_vbpos preserving type) AS SalesOrderItem,
  BillOfMaterialCategory
FROM I_MaterialBOMLink
-- UNION ALL with additional select branch(es): I_SalesOrderBOMLink
;