P_Valid_VersionBomitems

DDL: P_VALID_VERSIONBOMITEMS SQL: PVALIDVERSNBOM Type: view BASIC

P_Valid_VersionBomitems is a Basic CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 88 fields with key field BillOfMaterialItemUUID.

Data Sources (6)

SourceAliasJoin Type
I_Mast ChildMaterialBOM left_outer
I_Mast MaterialBOM left_outer
stpo stpo inner
t414 t414 left_outer
t460a t460a left_outer
tcs03 tcs03 inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PVALIDVERSNBOM view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #AUTOMATED view
VDM.private true view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.lifecycle.contract.type #NONE view

Fields (88)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterialItemUUID stpo guidx Guid
SAPClient stpo mandt Editing Client
BillOfMaterialCategory valid_items stlty Single-Character Flag
BillOfMaterial valid_items stlnr BOM
BillOfMaterialVariant valid_items stlal AlternativeBOM
BillOfMaterialItemNodeNumber valid_items stlkn Single-Character Flag
BOMItemInternalChangeCount stpo stpoz Counter
InheritedNodeNumberForBOMItem valid_items stvkn Nodes
InheritedNodeNumberVersionBOM stpo stvkn_versn Nodes
BillOfMaterialVersion valid_items bom_versn BOM Version
ValidityStartDate valid_items datuv Valid-from date
valid_toendasValidityEndDate
ChangeNumberFrom stpo aennr Change Number
ChangeNumberTo stpo ecn_to Change No. To
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 stpo posnr WBS Element
BillOfMaterialItemUnit stpo meins Valuation Unit
BillOfMaterialItemQuantity stpo menge WarrCountValue
IsSubItem stpo upskz Sub-item ID
SortString stpo sortf Sort string
BOMItemSorter stpo sortf Sort string
FixedQuantity stpo fmeng Qty. is fixed
PurchasingGroup stpo ekgrp Sub. purchasing grp
Currency stpo waers Transaction Currency
MaterialComponentPrice stpo preis Valuation Price
IdentifierBOMItem stpo itmid Item ID
MaterialPriceUnitQty stpo peinh Unit of measure
ComponentScrapInPercent stpo ausch Sep. Scrap CostComps
OperationScrapInPercent stpo avoau Operation Scrap
IsNetScrap stpo netau Net Indicator
NumberOfVariableSizeItem stpo roanz Number Required
QuantityVariableSizeItem stpo romen VSI Quantity
FormulaKey stpo rform VSI Formula
BOMItemDescription stpo potx1 Item Text
BOMItemText2 stpo potx2 Item Text
MaterialGroup stpo matkl Product Sold Group
ClassNumber stpo class User Group
ClassType stpo klart Class Type
ResultingItemCategory stpo potpr Res. item cat.
DependencyObjectNumber stpo knobj Assgmt no.
ObjectType 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
BOMItemChangeDate stpo aedat Obsolete
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)
Creditor stpo lifnr Vendor no.
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
AlternativeItemGroup stpo alpgr AltItemGroup
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
ProductionSupplyArea stpo prvbe Supply Area
IsDeleted stpo lkenz Deletion Ind.
IsALE stpo alekz PurchOrder
UnitOfMeasureForVarSizeItem tcs03 bmein Unit 'piece'

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_Valid_VersionBomitems.
-- 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: PVALIDVERSNBOM

CREATE VIEW P_Valid_VersionBomitems AS
SELECT
  stpo.guidx AS BillOfMaterialItemUUID,
  stpo.mandt AS SAPClient,
  valid_items.stlty AS BillOfMaterialCategory,
  valid_items.stlnr AS BillOfMaterial,
  valid_items.stlal AS BillOfMaterialVariant,
  valid_items.stlkn AS BillOfMaterialItemNodeNumber,
  stpo.stpoz AS BOMItemInternalChangeCount,
  valid_items.stvkn AS InheritedNodeNumberForBOMItem,
  stpo.stvkn_versn AS InheritedNodeNumberVersionBOM,
  valid_items.bom_versn AS BillOfMaterialVersion,
  valid_items.datuv AS ValidityStartDate,
  case when stpo.valid_to is null then cast('99991231' as datub ) else stpo.valid_to end as ValidityEndDate AS valid_toendasValidityEndDate,
  stpo.aennr AS ChangeNumberFrom,
  stpo.ecn_to AS ChangeNumberTo,
  stpo.andat AS BOMItemRecordCreationDate,
  stpo.annam AS BOMItemCreatedByUser,
  stpo.aedat AS BOMItemLastChangeDate,
  stpo.aenam AS BOMItemLastChangedByUser,
  stpo.idnrk AS BillOfMaterialComponent,
  stpo.postp AS BillOfMaterialItemCategory,
  stpo.posnr AS BillOfMaterialItemNumber,
  stpo.meins AS BillOfMaterialItemUnit,
  stpo.menge AS BillOfMaterialItemQuantity,
  stpo.upskz AS IsSubItem,
  stpo.sortf AS SortString,
  stpo.sortf AS BOMItemSorter,
  stpo.fmeng AS FixedQuantity,
  stpo.ekgrp AS PurchasingGroup,
  stpo.waers AS Currency,
  stpo.preis AS MaterialComponentPrice,
  stpo.itmid AS IdentifierBOMItem,
  stpo.peinh AS MaterialPriceUnitQty,
  stpo.ausch AS ComponentScrapInPercent,
  stpo.avoau AS OperationScrapInPercent,
  stpo.netau AS IsNetScrap,
  stpo.roanz AS NumberOfVariableSizeItem,
  stpo.romen AS QuantityVariableSizeItem,
  stpo.rform AS FormulaKey,
  stpo.potx1 AS BOMItemDescription,
  stpo.potx2 AS BOMItemText2,
  stpo.matkl AS MaterialGroup,
  stpo.class AS ClassNumber,
  stpo.klart AS ClassType,
  stpo.potpr AS ResultingItemCategory,
  stpo.knobj AS DependencyObjectNumber,
  stpo.objty AS ObjectType,
  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.aedat AS BOMItemChangeDate,
  stpo.beikz AS IsMaterialProvision,
  stpo.rekri AS BOMIsRecursive,
  stpo.cadpo AS DocumentIsCreatedByCAD,
  stpo.verti AS DistrKeyCompConsumption,
  stpo.lifzt AS DeliveryDurationInDays,
  stpo.lifnr AS Creditor,
  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.alpgr AS AlternativeItemGroup,
  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.prvbe AS ProductionSupplyArea,
  stpo.lkenz AS IsDeleted,
  stpo.alekz AS IsALE,
  tcs03.bmein AS UnitOfMeasureForVarSizeItem
INNER JOIN stpo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Mast AS MaterialBOM ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Mast AS ChildMaterialBOM ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t460a ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t414 ON /* join condition not captured in parsed metadata */
INNER JOIN tcs03 ON /* join condition not captured in parsed metadata */
;