R_WBSBillOfMaterialItemDraft
Draft View for WBS Bill Of Material Item
R_WBSBillOfMaterialItemDraft is a Basic CDS View that provides data about "Draft View for WBS Bill Of Material Item" in SAP S/4HANA. It reads from 1 data source (stpo_d) and exposes 123 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion, BillOfMaterialItemNodeNumber. Part of development package CS_RAP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| stpo_d | BillOfMaterialItemDraft | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.elementSuffix | BMH | view | |
| AbapCatalog.extensibility.quota.maximumFields | 238 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 2240 | view | |
| EndUserText.label | Draft View for WBS Bill Of Material Item | view |
Fields (123)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfMaterial | BOM | ||
| KEY | BillOfMaterialCategory | billofmaterialcategory | BOM category | |
| KEY | BillOfMaterialVariant | billofmaterialvariant | AlternativeBOM | |
| KEY | BillOfMaterialVersion | billofmaterialversion | BOM Version | |
| KEY | BillOfMaterialItemNodeNumber | billofmaterialitemnodenumber | Item node | |
| KEY | HeaderChangeDocument | headerchangedocument | Change Number | |
| KEY | Material | material | Vehicle Model | |
| KEY | Plant | plant | Valuation Area | |
| KEY | DraftUUID | draftuuid | UUID | |
| ParentDraftUUID | parentdraftuuid | NodeID | ||
| BillOfMaterialItemUUID | billofmaterialitemuuid | Guid | ||
| BillOfMaterialHeaderUUID | billofmaterialheaderuuid | Guid | ||
| BOMItemInternalChangeCount | bomiteminternalchangecount | Counter | ||
| ValidityStartDate | validitystartdate | Validity Start Date | ||
| ValidityEndDate | validityenddate | ValidTo | ||
| EngineeringChangeDocument | engineeringchangedocument | Change Number | ||
| EngineeringChangeDocForEdit | engineeringchangedocforedit | Change Number | ||
| BillOfMaterialVariantUsage | billofmaterialvariantusage | Usage | ||
| ChgToEngineeringChgDocument | chgtoengineeringchgdocument | Change No. To | ||
| InheritedNodeNumberForBOMItem | inheritednodenumberforbomitem | Nodes | ||
| BOMItemRecordCreationDate | bomitemrecordcreationdate | Created On | ||
| BOMItemCreatedByUser | bomitemcreatedbyuser | Created by | ||
| BOMItemLastChangeDate | bomitemlastchangedate | Changed On | ||
| BOMItemLastChangedByUser | bomitemlastchangedbyuser | Changed By | ||
| BillOfMaterialComponent | billofmaterialcomponent | Component | ||
| BillOfMaterialItemCategory | billofmaterialitemcategory | Item Category | ||
| BillOfMaterialItemNumber | billofmaterialitemnumber | Item | ||
| BillOfMaterialItemUnit | billofmaterialitemunit | Component UoM | ||
| BillOfMaterialItemQuantity | billofmaterialitemquantity | Quantity | ||
| IsAssembly | isassembly | Single-Character Flag | ||
| IsSubItem | issubitem | Sub-item ID | ||
| BOMItemSorter | bomitemsorter | Sort String | ||
| BOMItemHasFixedQuantity | bomitemhasfixedquantity | Fixed Quantity | ||
| PurchasingGroup | purchasinggroup | Purchasing Group | ||
| Currency | currency | Valuation Crcy | ||
| MaterialComponentPrice | materialcomponentprice | Price | ||
| IdentifierBOMItem | identifierbomitem | Item ID | ||
| MaterialPriceUnitQty | materialpriceunitqty | Price unit | ||
| ComponentScrapInPercent | componentscrapinpercent | Component Scrap | ||
| OperationScrapInPercent | operationscrapinpercent | Operation Scrap | ||
| IsNetScrap | isnetscrap | Net Indicator | ||
| VariableSizeItemQuantity | variablesizeitemquantity | VSI Quantity | ||
| VariableSizeCompUnitOfMeasure | VSI unit | |||
| VariableSizeCompUnitOfMeasure | VSI unit | |||
| QuantityVariableSizeItem | VSI Quantity | |||
| FormulaKey | formulakey | VSI Formula | ||
| ComponentDescription | componentdescription | Item Text | ||
| BOMItemDescription | bomitemdescription | Item Text | ||
| BOMItemText2 | bomitemtext2 | Item Text | ||
| MaterialGroup | materialgroup | Product Group | ||
| DocumentType | documenttype | Order Type | ||
| DocNumber | docnumber | Document Number | ||
| DocumentVersion | documentversion | Docu. Version | ||
| DocumentPart | documentpart | Document Part | ||
| ClassNumber | classnumber | Class | ||
| ClassType | classtype | X Flag | ||
| ResultingItemCategory | resultingitemcategory | Res. item cat. | ||
| DependencyObjectNumber | dependencyobjectnumber | Assgmt no. | ||
| BillOfMaterialItemObjectType | billofmaterialitemobjecttype | Object Type | ||
| IsClassificationRelevant | isclassificationrelevant | as sel. cond. | ||
| IsBulkMaterial | isbulkmaterial | Bulk material | ||
| BOMItemIsSparePart | bomitemissparepart | Spare Part ID | ||
| BOMItemIsSalesRelevant | bomitemissalesrelevant | Sales | ||
| IsProductionRelevant | isproductionrelevant | Production | ||
| BOMItemIsPlantMaintRelevant | bomitemisplantmaintrelevant | Plant maint. | ||
| BOMItemIsCostingRelevant | bomitemiscostingrelevant | CostingRelevncy | ||
| IsEngineeringRelevant | isengineeringrelevant | Engineering | ||
| SpecialProcurementType | specialprocurementtype | SpecProcurement | ||
| IsBOMRecursiveAllowed | isbomrecursiveallowed | Rec. allowed | ||
| OperationLeadTimeOffset | operationleadtimeoffset | Oper. LT offset | ||
| OpsLeadTimeOffsetUnit | opsleadtimeoffsetunit | Oper. LTO unit | ||
| IsMaterialProvision | ismaterialprovision | Mat. Prov. Ind. | ||
| BOMIsRecursive | bomisrecursive | Recursive | ||
| DocumentIsCreatedByCAD | documentiscreatedbycad | CAD Indicator | ||
| DistrKeyCompConsumption | distrkeycompconsumption | Distribution | ||
| DeliveryDurationInDays | deliverydurationindays | Del time (days) | ||
| Creditor | creditor | Supplier | ||
| CostElement | costelement | G/L Account | ||
| Size1 | size1 | Size 1 | ||
| Size2 | size2 | Size 2 | ||
| Size3 | size3 | Size 3 | ||
| UnitOfMeasureForSize1To3 | unitofmeasureforsize1to3 | Size unit | ||
| GoodsReceiptDuration | goodsreceiptduration | GR proc. time | ||
| PurchasingOrganization | purchasingorganization | Purchasing Organization | ||
| RequiredComponent | requiredcomponent | Reqd Component | ||
| MultipleSelectionAllowed | multipleselectionallowed | Multiple Sel. | ||
| ProdOrderIssueLocation | prodorderissuelocation | StorageLocation | ||
| MaterialIsCoProduct | materialiscoproduct | Co-product | ||
| ExplosionType | explosiontype | Explosion type | ||
| AlternativeItemGroup | alternativeitemgroup | AltItemGroup | ||
| AlternativeItemPriority | alternativeitempriority | Priority | ||
| AlternativeItemStrategy | alternativeitemstrategy | Strategy | ||
| UsageProbabilityPercent | usageprobabilitypercent | Usage Prob. | ||
| FollowUpGroup | followupgroup | Follow-up group | ||
| DiscontinuationGroup | discontinuationgroup | Discont. group | ||
| IsConfigurableBOM | isconfigurablebom | Sel. ind. | ||
| ReferencePoint | referencepoint | Reference point | ||
| LeadTimeOffset | leadtimeoffset | Lead-tm offset | ||
| ProductionSupplyArea | productionsupplyarea | Supply Area | ||
| IsDeleted | isdeleted | TRUE | ||
| IsALE | isale | ALE indicator | ||
| BillOfMaterialItmNTEIdentifier | billofmaterialitmnteidentifier | |||
| ProductIsConfigurable | productisconfigurable | Configurable | ||
| IsBulkMaterialComponent | isbulkmaterialcomponent | Bulk material | ||
| ProductExternalID | productexternalid | Material | ||
| SalesOrder | salesorder | SD Document | ||
| SalesOrderItem | salesorderitem | Sales Order Item | ||
| IsPhantomItem | isphantomitem | Phantom item | ||
| LastChangeDateTime | lastchangedatetime | Timestamp | ||
| PreliminaryComponent | preliminarycomponent | Description | ||
| VariableSizeItemIsHidden | variablesizeitemishidden | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| ClassDetailsIsHidden | classdetailsishidden | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| NonStockItemDetailsIsHidden | nonstockitemdetailsishidden | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| DocumentItemDetailsIsHidden | documentitemdetailsishidden | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| IsItemDraftModified | isitemdraftmodified | Single-Character Flag | ||
| BillOfMaterialIsSubitemHidden | billofmaterialissubitemhidden | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftFieldChanges | draftfieldchanges | Field Changes | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| IsPMAssemblyRelevant | ispmassemblyrelevant | PM assembly |
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_WBSBillOfMaterialItemDraft.
-- 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_WBSBillOfMaterialItemDraft AS
SELECT
cast( billofmaterial as cs_stlnr preserving type ) AS BillOfMaterial,
BillOfMaterialCategory,
BillOfMaterialVariant,
BillOfMaterialVersion,
BillOfMaterialItemNodeNumber,
HeaderChangeDocument,
Material,
Plant,
DraftUUID,
ParentDraftUUID,
BillOfMaterialItemUUID,
BillOfMaterialHeaderUUID,
BOMItemInternalChangeCount,
ValidityStartDate,
ValidityEndDate,
EngineeringChangeDocument,
EngineeringChangeDocForEdit,
BillOfMaterialVariantUsage,
ChgToEngineeringChgDocument,
InheritedNodeNumberForBOMItem,
BOMItemRecordCreationDate,
BOMItemCreatedByUser,
BOMItemLastChangeDate,
BOMItemLastChangedByUser,
BillOfMaterialComponent,
BillOfMaterialItemCategory,
BillOfMaterialItemNumber,
BillOfMaterialItemUnit,
BillOfMaterialItemQuantity,
IsAssembly,
IsSubItem,
BOMItemSorter,
BOMItemHasFixedQuantity,
PurchasingGroup,
Currency,
MaterialComponentPrice,
IdentifierBOMItem,
MaterialPriceUnitQty,
ComponentScrapInPercent,
OperationScrapInPercent,
IsNetScrap,
VariableSizeItemQuantity,
cast( variablesizecompunitofmeasure as msehi preserving type ) AS VariableSizeCompUnitOfMeasure,
cast(quantityvariablesizeitem as romen preserving type ) AS QuantityVariableSizeItem,
FormulaKey,
ComponentDescription,
BOMItemDescription,
BOMItemText2,
MaterialGroup,
DocumentType,
DocNumber,
DocumentVersion,
DocumentPart,
ClassNumber,
ClassType,
ResultingItemCategory,
DependencyObjectNumber,
BillOfMaterialItemObjectType,
IsClassificationRelevant,
IsBulkMaterial,
BOMItemIsSparePart,
BOMItemIsSalesRelevant,
IsProductionRelevant,
BOMItemIsPlantMaintRelevant,
BOMItemIsCostingRelevant,
IsEngineeringRelevant,
SpecialProcurementType,
IsBOMRecursiveAllowed,
OperationLeadTimeOffset,
OpsLeadTimeOffsetUnit,
IsMaterialProvision,
BOMIsRecursive,
DocumentIsCreatedByCAD,
DistrKeyCompConsumption,
DeliveryDurationInDays,
Creditor,
CostElement,
Size1,
Size2,
Size3,
UnitOfMeasureForSize1To3,
GoodsReceiptDuration,
PurchasingOrganization,
RequiredComponent,
MultipleSelectionAllowed,
ProdOrderIssueLocation,
MaterialIsCoProduct,
ExplosionType,
AlternativeItemGroup,
AlternativeItemPriority,
AlternativeItemStrategy,
UsageProbabilityPercent,
FollowUpGroup,
DiscontinuationGroup,
IsConfigurableBOM,
ReferencePoint,
LeadTimeOffset,
ProductionSupplyArea,
IsDeleted,
IsALE,
BillOfMaterialItmNTEIdentifier,
ProductIsConfigurable,
IsBulkMaterialComponent,
ProductExternalID,
SalesOrder,
SalesOrderItem,
IsPhantomItem,
LastChangeDateTime,
PreliminaryComponent,
VariableSizeItemIsHidden,
ClassDetailsIsHidden,
NonStockItemDetailsIsHidden,
DocumentItemDetailsIsHidden,
IsItemDraftModified,
BillOfMaterialIsSubitemHidden,
DraftEntityOperationCode,
DraftAdministrativeDataUUID,
DraftFieldChanges,
HasActiveEntity,
DraftEntityLastChangeDateTime,
DraftEntityCreationDateTime,
IsPMAssemblyRelevant
FROM stpo_d AS BillOfMaterialItemDraft
;
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