P_MATLBILLOFMATERIALITEMDEX
Private view for Material BOM item
P_MATLBILLOFMATERIALITEMDEX is a Basic CDS View that provides data about "Private view for Material BOM item" in SAP S/4HANA. It reads from 2 data sources (stas, stpo) and exposes 98 fields with key fields BillOfMaterialCategory, BillOfMaterial, BillOfMaterialVariant, BillOfMaterialItemNodeNumber, BOMInstceInternalChangeNumber. Part of development package CS_MODEL.
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (98)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfMaterialCategory | stas | stlty | Single-Character Flag |
| KEY | BillOfMaterial | |||
| KEY | BillOfMaterialVariant | stas | stlal | AlternativeBOM |
| KEY | BillOfMaterialItemNodeNumber | stas | stlkn | Single-Character Flag |
| KEY | BOMInstceInternalChangeNumber | stas | stasz | Counter |
| BOMItemInternalChangeCount | stpo | stpoz | Counter | |
| BillOfMaterialItemUUID | stpo | guidx | Guid | |
| InheritedNodeNumberForBOMItem | stas | stvkn | Nodes | |
| InheritedNodeNumberVersionBOM | stpo | stvkn_versn | Nodes | |
| BillOfMaterialVersion | stas | bom_versn | BOM Version | |
| ValidityStartDate | stpo | datuv | Valid-from date | |
| EngineeringChangeDocument | stpo | aennr | Change Number | |
| ChgToEngineeringChgDocument | stpo | ecn_to | Change No. To | |
| ValidityEndDate | ||||
| BOMItemRecordCreationDate | stpo | andat | Created On | |
| BOMItemCreatedByUser | stpo | annam | Created By | |
| BOMItemLastChangeDate | stpo | aedat | Obsolete | |
| BOMItemLastChangedByUser | stpo | aenam | User Name | |
| BillOfMaterialComponent | stpo | idnrk | Component | |
| BillOfMaterialItemCategory | stpo | postp | Item Category | |
| BillOfMaterialItemNumber | ||||
| BillOfMaterialItemUnit | stpo | meins | Valuation Unit | |
| BillOfMaterialItemQuantity | stpo | menge | WarrCountValue | |
| IsSubItem | stpo | upskz | Sub-item ID | |
| BOMItemSorter | stpo | sortf | Sort string | |
| BOMItemHasFixedQuantity | stpo | fmeng | Qty. is fixed | |
| PurchasingGroup | stpo | ekgrp | Sub. purchasing grp | |
| Currency | stpo | waers | Transaction Currency | |
| MaterialComponentPrice | stpo | preis | Valuation Price | |
| itmidendasIdentifierBOMItem | ||||
| MaterialPriceUnitQty | stpo | peinh | Unit of measure | |
| ComponentScrapInPercent | stpo | ausch | Sep. Scrap CostComps | |
| OperationScrapInPercent | stpo | avoau | Operation Scrap | |
| IsNetScrap | stpo | netau | Net Indicator | |
| QuantityVariableSizeItem | stpo | romen | VSI Quantity | |
| FormulaKey | stpo | rform | VSI Formula | |
| BOMItemDescription | stpo | potx1 | Item Text | |
| BOMItemText2 | stpo | potx2 | Item Text | |
| LongTextLanguage | stpo | ltxsp | Long text lang | |
| MaterialGroup | stpo | matkl | Product Sold Group | |
| DocumentType | stpo | dokar | SW Document Type | |
| DocNumber | stpo | doknr | Document | |
| DocumentVersion | stpo | dokvr | Doc. Version | |
| DocumentPart | stpo | doktl | Document Part | |
| ClassNumber | stpo | class | User Group | |
| ClassType | stpo | klart | Class Type | |
| ResultingItemCategory | stpo | potpr | Res. item cat. | |
| DependencyObjectNumber | stpo | knobj | Assgmt no. | |
| BillOfMaterialObjectType | stpo | objty | Prj. Obj. Type | |
| IsClassificationRelevant | stpo | kzclb | as sel. cond. | |
| IsBulkMaterial | stpo | schgt | Bulk material | |
| BOMItemIsSparePart | stpo | erskz | Spare Part ID | |
| BOMItemIsSalesRelevant | stpo | rvrel | Sales | |
| IsProductionRelevant | stpo | sanfe | Production | |
| BOMItemIsPlantMaintRelevant | stpo | sanin | Plant maint. | |
| BOMItemIsCostingRelevant | stpo | sanka | CostingRelevncy | |
| IsEngineeringRelevant | stpo | sanko | Engineering | |
| SpecialProcurementType | stpo | itsob | SpecProcurement | |
| IsBOMRecursiveAllowed | stpo | rekrs | Rec. allowed | |
| OperationLeadTimeOffset | stpo | nlfzv | Oper. LT offset | |
| OpsLeadTimeOffsetUnit | stpo | nlfmv | Oper. LTO unit | |
| IsMaterialProvision | stpo | beikz | Mat. Prov. Ind. | |
| BOMIsRecursive | stpo | rekri | Recursive | |
| DocumentIsCreatedByCAD | stpo | cadpo | CAD Indicator | |
| DistrKeyCompConsumption | stpo | verti | Distribution | |
| DeliveryDurationInDays | stpo | lifzt | Del time (days) | |
| CostElement | stpo | sakto | G/L Account | |
| Size1 | stpo | roms1 | Size 1 | |
| Size2 | stpo | roms2 | Size 2 | |
| Size3 | stpo | roms3 | Size 3 | |
| UnitOfMeasureForSize1To3 | stpo | romei | Size unit | |
| GoodsReceiptDuration | stpo | webaz | GR Proc. Time | |
| PurchasingOrganization | stpo | ekorg | Purchasing Org. | |
| RequiredComponent | stpo | clobk | Reqd Component | |
| MultipleSelectionAllowed | stpo | clmul | Multiple Sel. | |
| ProdOrderIssueLocation | stpo | lgort | Sublocation | |
| MaterialIsCoProduct | stpo | kzkup | Co-Product | |
| ExplosionType | stpo | dspst | Explosion type | |
| FollowUpGroup | stpo | nfgrp | Follow-up group | |
| DiscontinuationGroup | stpo | nfeag | Discont. group | |
| ReinsurContrOrgUnit | stpo | cview | Org.area | |
| IsConfigurableBOM | stpo | awakz | Sel. ind. | |
| ReferencePoint | stpo | rfpnt | Reference point | |
| LeadTimeOffset | stpo | nlfzt | Lead-tm offset | |
| IsSoftwareComponent | stpo | sfwind | Software component | |
| ProductionSupplyArea | stpo | prvbe | Supply Area | |
| IsDeleted | stpo | lkenz | Deletion Ind. | |
| IsALE | stpo | alekz | PurchOrder | |
| AlternativeItemGroup | stpo | alpgr | AltItemGroup | |
| AlternativeItemPriority | stpo | alprf | Priority | |
| AlternativeItemStrategy | stpo | alpst | Strategy | |
| UsageProbabilityPercent | stpo | ewahr | Usg Probability | |
| IsPMAssemblyRelevant | stpo | stkkz | PM assembly | |
| LastChangeDateTime | stpo | lastchangedatetime | Timestamp | |
| OrigSalesOrderBOMItmCategory | stpo | kstty | CCtr Categories | |
| OrigSalesOrderBOMItmNodeNumber | stpo | kstkn | Item node | |
| OrigSalesOrderBOMItmNumber | stpo | kstpz | Counter | |
| PreliminaryMaterial |
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_MATLBILLOFMATERIALITEMDEX.
-- 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 P_MATLBILLOFMATERIALITEMDEX AS
SELECT
stas.stlty AS BillOfMaterialCategory,
cast(stas.stlnr as cs_stlnr preserving type ) AS BillOfMaterial,
stas.stlal AS BillOfMaterialVariant,
stas.stlkn AS BillOfMaterialItemNodeNumber,
stas.stasz AS BOMInstceInternalChangeNumber,
stpo.stpoz AS BOMItemInternalChangeCount,
stpo.guidx AS BillOfMaterialItemUUID,
stas.stvkn AS InheritedNodeNumberForBOMItem,
stpo.stvkn_versn AS InheritedNodeNumberVersionBOM,
stas.bom_versn AS BillOfMaterialVersion,
stpo.datuv AS ValidityStartDate,
stpo.aennr AS EngineeringChangeDocument,
stpo.ecn_to AS ChgToEngineeringChgDocument,
cast( stpo.valid_to as datub preserving type ) AS ValidityEndDate,
stpo.andat AS BOMItemRecordCreationDate,
stpo.annam AS BOMItemCreatedByUser,
stpo.aedat AS BOMItemLastChangeDate,
stpo.aenam AS BOMItemLastChangedByUser,
stpo.idnrk AS BillOfMaterialComponent,
stpo.postp AS BillOfMaterialItemCategory,
cast(stpo.posnr as char4 preserving type ) AS BillOfMaterialItemNumber,
stpo.meins AS BillOfMaterialItemUnit,
stpo.menge AS BillOfMaterialItemQuantity,
stpo.upskz AS IsSubItem,
stpo.sortf AS BOMItemSorter,
stpo.fmeng AS BOMItemHasFixedQuantity,
stpo.ekgrp AS PurchasingGroup,
stpo.waers AS Currency,
stpo.preis AS MaterialComponentPrice,
case when ( stpo.itmid is null or stpo.itmid = '') then stpo.stvkn else stpo.itmid end as IdentifierBOMItem AS itmidendasIdentifierBOMItem,
stpo.peinh AS MaterialPriceUnitQty,
stpo.ausch AS ComponentScrapInPercent,
stpo.avoau AS OperationScrapInPercent,
stpo.netau AS IsNetScrap,
stpo.romen AS QuantityVariableSizeItem,
stpo.rform AS FormulaKey,
stpo.potx1 AS BOMItemDescription,
stpo.potx2 AS BOMItemText2,
stpo.ltxsp AS LongTextLanguage,
stpo.matkl AS MaterialGroup,
stpo.dokar AS DocumentType,
stpo.doknr AS DocNumber,
stpo.dokvr AS DocumentVersion,
stpo.doktl AS DocumentPart,
stpo.class AS ClassNumber,
stpo.klart AS ClassType,
stpo.potpr AS ResultingItemCategory,
stpo.knobj AS DependencyObjectNumber,
stpo.objty AS BillOfMaterialObjectType,
stpo.kzclb AS IsClassificationRelevant,
stpo.schgt AS IsBulkMaterial,
stpo.erskz AS BOMItemIsSparePart,
stpo.rvrel AS BOMItemIsSalesRelevant,
stpo.sanfe AS IsProductionRelevant,
stpo.sanin AS BOMItemIsPlantMaintRelevant,
stpo.sanka AS BOMItemIsCostingRelevant,
stpo.sanko AS IsEngineeringRelevant,
stpo.itsob AS SpecialProcurementType,
stpo.rekrs AS IsBOMRecursiveAllowed,
stpo.nlfzv AS OperationLeadTimeOffset,
stpo.nlfmv AS OpsLeadTimeOffsetUnit,
stpo.beikz AS IsMaterialProvision,
stpo.rekri AS BOMIsRecursive,
stpo.cadpo AS DocumentIsCreatedByCAD,
stpo.verti AS DistrKeyCompConsumption,
stpo.lifzt AS DeliveryDurationInDays,
stpo.sakto AS CostElement,
stpo.roms1 AS Size1,
stpo.roms2 AS Size2,
stpo.roms3 AS Size3,
stpo.romei AS UnitOfMeasureForSize1To3,
stpo.webaz AS GoodsReceiptDuration,
stpo.ekorg AS PurchasingOrganization,
stpo.clobk AS RequiredComponent,
stpo.clmul AS MultipleSelectionAllowed,
stpo.lgort AS ProdOrderIssueLocation,
stpo.kzkup AS MaterialIsCoProduct,
stpo.dspst AS ExplosionType,
stpo.nfgrp AS FollowUpGroup,
stpo.nfeag AS DiscontinuationGroup,
stpo.cview AS ReinsurContrOrgUnit,
stpo.awakz AS IsConfigurableBOM,
stpo.rfpnt AS ReferencePoint,
stpo.nlfzt AS LeadTimeOffset,
stpo.sfwind AS IsSoftwareComponent,
stpo.prvbe AS ProductionSupplyArea,
stpo.lkenz AS IsDeleted,
stpo.alekz AS IsALE,
stpo.alpgr AS AlternativeItemGroup,
stpo.alprf AS AlternativeItemPriority,
stpo.alpst AS AlternativeItemStrategy,
stpo.ewahr AS UsageProbabilityPercent,
stpo.stkkz AS IsPMAssemblyRelevant,
stpo.lastchangedatetime AS LastChangeDateTime,
stpo.kstty AS OrigSalesOrderBOMItmCategory,
stpo.kstkn AS OrigSalesOrderBOMItmNodeNumber,
stpo.kstpz AS OrigSalesOrderBOMItmNumber,
cast(stpo.preliminary_material as matnr preserving type ) AS PreliminaryMaterial
FROM stas
INNER JOIN stpo ON /* join condition not captured in parsed metadata */
;
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