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 | |
| KEY | BillOfMaterial | |||
| KEY | BillOfMaterialVariant | stas | stlal | |
| KEY | BillOfMaterialItemNodeNumber | stas | stlkn | |
| KEY | BOMInstceInternalChangeNumber | stas | stasz | |
| BOMItemInternalChangeCount | stpo | stpoz | ||
| BillOfMaterialItemUUID | stpo | guidx | ||
| InheritedNodeNumberForBOMItem | stas | stvkn | ||
| InheritedNodeNumberVersionBOM | stpo | stvkn_versn | ||
| BillOfMaterialVersion | stas | bom_versn | ||
| ValidityStartDate | stpo | datuv | ||
| EngineeringChangeDocument | stpo | aennr | ||
| ChgToEngineeringChgDocument | stpo | ecn_to | ||
| ValidityEndDate | ||||
| BOMItemRecordCreationDate | stpo | andat | ||
| BOMItemCreatedByUser | stpo | annam | ||
| BOMItemLastChangeDate | stpo | aedat | ||
| BOMItemLastChangedByUser | stpo | aenam | ||
| BillOfMaterialComponent | stpo | idnrk | ||
| BillOfMaterialItemCategory | stpo | postp | ||
| BillOfMaterialItemNumber | ||||
| BillOfMaterialItemUnit | stpo | meins | ||
| BillOfMaterialItemQuantity | stpo | menge | ||
| IsSubItem | stpo | upskz | ||
| BOMItemSorter | stpo | sortf | ||
| BOMItemHasFixedQuantity | stpo | fmeng | ||
| PurchasingGroup | stpo | ekgrp | ||
| Currency | stpo | waers | ||
| MaterialComponentPrice | stpo | preis | ||
| itmidendasIdentifierBOMItem | ||||
| MaterialPriceUnitQty | stpo | peinh | ||
| ComponentScrapInPercent | stpo | ausch | ||
| OperationScrapInPercent | stpo | avoau | ||
| IsNetScrap | stpo | netau | ||
| QuantityVariableSizeItem | stpo | romen | ||
| FormulaKey | stpo | rform | ||
| BOMItemDescription | stpo | potx1 | ||
| BOMItemText2 | stpo | potx2 | ||
| LongTextLanguage | stpo | ltxsp | ||
| MaterialGroup | stpo | matkl | ||
| DocumentType | stpo | dokar | ||
| DocNumber | stpo | doknr | ||
| DocumentVersion | stpo | dokvr | ||
| DocumentPart | stpo | doktl | ||
| ClassNumber | stpo | class | ||
| ClassType | stpo | klart | ||
| ResultingItemCategory | stpo | potpr | ||
| DependencyObjectNumber | stpo | knobj | ||
| BillOfMaterialObjectType | stpo | objty | ||
| IsClassificationRelevant | stpo | kzclb | ||
| IsBulkMaterial | stpo | schgt | ||
| BOMItemIsSparePart | stpo | erskz | ||
| BOMItemIsSalesRelevant | stpo | rvrel | ||
| IsProductionRelevant | stpo | sanfe | ||
| BOMItemIsPlantMaintRelevant | stpo | sanin | ||
| BOMItemIsCostingRelevant | stpo | sanka | ||
| IsEngineeringRelevant | stpo | sanko | ||
| SpecialProcurementType | stpo | itsob | ||
| IsBOMRecursiveAllowed | stpo | rekrs | ||
| OperationLeadTimeOffset | stpo | nlfzv | ||
| OpsLeadTimeOffsetUnit | stpo | nlfmv | ||
| IsMaterialProvision | stpo | beikz | ||
| BOMIsRecursive | stpo | rekri | ||
| DocumentIsCreatedByCAD | stpo | cadpo | ||
| DistrKeyCompConsumption | stpo | verti | ||
| DeliveryDurationInDays | stpo | lifzt | ||
| CostElement | stpo | sakto | ||
| Size1 | stpo | roms1 | ||
| Size2 | stpo | roms2 | ||
| Size3 | stpo | roms3 | ||
| UnitOfMeasureForSize1To3 | stpo | romei | ||
| GoodsReceiptDuration | stpo | webaz | ||
| PurchasingOrganization | stpo | ekorg | ||
| RequiredComponent | stpo | clobk | ||
| MultipleSelectionAllowed | stpo | clmul | ||
| ProdOrderIssueLocation | stpo | lgort | ||
| MaterialIsCoProduct | stpo | kzkup | ||
| ExplosionType | stpo | dspst | ||
| FollowUpGroup | stpo | nfgrp | ||
| DiscontinuationGroup | stpo | nfeag | ||
| ReinsurContrOrgUnit | stpo | cview | ||
| IsConfigurableBOM | stpo | awakz | ||
| ReferencePoint | stpo | rfpnt | ||
| LeadTimeOffset | stpo | nlfzt | ||
| IsSoftwareComponent | stpo | sfwind | ||
| ProductionSupplyArea | stpo | prvbe | ||
| IsDeleted | stpo | lkenz | ||
| IsALE | stpo | alekz | ||
| AlternativeItemGroup | stpo | alpgr | ||
| AlternativeItemPriority | stpo | alprf | ||
| AlternativeItemStrategy | stpo | alpst | ||
| UsageProbabilityPercent | stpo | ewahr | ||
| IsPMAssemblyRelevant | stpo | stkkz | ||
| LastChangeDateTime | stpo | lastchangedatetime | ||
| OrigSalesOrderBOMItmCategory | stpo | kstty | ||
| OrigSalesOrderBOMItmNodeNumber | stpo | kstkn | ||
| OrigSalesOrderBOMItmNumber | stpo | kstpz | ||
| PreliminaryMaterial |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #BASIC
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
define view entity P_MATLBILLOFMATERIALITEMDEX as select from stas as stas
inner join stpo as stpo on stas.stlty = stpo.stlty
and stas.stlnr = stpo.stlnr
and stas.stlkn = stpo.stlkn
and stas.lkenz = ' '
{
key stas.stlty as BillOfMaterialCategory,
key cast(stas.stlnr as cs_stlnr preserving type ) as BillOfMaterial,
key stas.stlal as BillOfMaterialVariant,
key stas.stlkn as BillOfMaterialItemNodeNumber,
key 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,
@Semantics.businessDate.from: true
stpo.datuv as ValidityStartDate,
stpo.aennr as EngineeringChangeDocument,
stpo.ecn_to as ChgToEngineeringChgDocument,
@Semantics.businessDate.to: true
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,
@Semantics.quantity.unitOfMeasure: '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,
@Semantics.amount.currencyCode : 'Currency'
stpo.preis as MaterialComponentPrice,
case when
( stpo.itmid is null or stpo.itmid = '')
then stpo.stvkn
else
stpo.itmid
end as IdentifierBOMItem,
@Semantics.quantity.unitOfMeasure: 'BillOfMaterialItemUnit'
stpo.peinh as MaterialPriceUnitQty,
stpo.ausch as ComponentScrapInPercent,
stpo.avoau as OperationScrapInPercent,
stpo.netau as IsNetScrap,
@Semantics.quantity.unitOfMeasure: 'BillOfMaterialItemUnit'
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,
@Semantics.booleanIndicator:true
stpo.erskz as BOMItemIsSparePart,
@Semantics.booleanIndicator:true
stpo.rvrel as BOMItemIsSalesRelevant,
stpo.sanfe as IsProductionRelevant,
stpo.sanin as BOMItemIsPlantMaintRelevant,
@Semantics.booleanIndicator:true
stpo.sanka as BOMItemIsCostingRelevant,
stpo.sanko as IsEngineeringRelevant,
stpo.itsob as SpecialProcurementType,
stpo.rekrs as IsBOMRecursiveAllowed,
stpo.nlfzv as OperationLeadTimeOffset,
stpo.nlfmv as OpsLeadTimeOffsetUnit,
@Semantics.booleanIndicator:true
stpo.beikz as IsMaterialProvision,
stpo.rekri as BOMIsRecursive,
stpo.cadpo as DocumentIsCreatedByCAD,
stpo.verti as DistrKeyCompConsumption,
stpo.lifzt as DeliveryDurationInDays,
stpo.sakto as CostElement,
@Semantics.quantity.unitOfMeasure: 'BillOfMaterialItemUnit'
stpo.roms1 as Size1,
@Semantics.quantity.unitOfMeasure: 'BillOfMaterialItemUnit'
stpo.roms2 as Size2,
@Semantics.quantity.unitOfMeasure: 'BillOfMaterialItemUnit'
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,
@Semantics.booleanIndicator:true
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
}
where stas.stlty = 'M'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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