R_BillOfMaterialDraft
Draft view for Bill of Material
R_BillOfMaterialDraft is a Basic CDS View that provides data about "Draft view for Bill of Material" in SAP S/4HANA. It reads from 1 data source (stko_d) and exposes 75 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion, EngineeringChangeDocument. It has 1 association to related views. Part of development package CS_RAP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| stko_d | BillOfMaterialDraft | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_BillOfMaterialDraft | _BillOfMaterialExtension | $projection.BillOfMaterial = _BillOfMaterialExtension.BillOfMaterial and $projection.BillOfMaterialCategory = _BillOfMaterialExtension.BillOfMaterialCategory and $projection.BillOfMaterialVariant = _BillOfMaterialExtension.BillOfMaterialVariant and $projection.BOMHeaderInternalChangeCount = _BillOfMaterialExtension.BOMHeaderInternalChangeCount and $projection.DraftUUID = _BillOfMaterialExtension.DraftUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | 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 Bill of Material | view |
Fields (75)
| 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 | EngineeringChangeDocument | engineeringchangedocument | Change Number | |
| KEY | Material | material | Vehicle Model | |
| KEY | Plant | plant | Valuation Area | |
| KEY | DraftUUID | draftuuid | UUID | |
| SalesOrder | salesorder | SD Document | ||
| SalesOrderItem | salesorderitem | Sales Order Item | ||
| ProjectElement | ||||
| WBSElementInternalID | ||||
| BillOfMaterialHeaderUUID | billofmaterialheaderuuid | Guid | ||
| BillOfMaterialVariantUsage | billofmaterialvariantusage | Usage | ||
| EngineeringChangeDocForEdit | engineeringchangedocforedit | Change Number | ||
| IsMultipleBOMAlt | ismultiplebomalt | Alt.det. MBOM | ||
| BOMHeaderInternalChangeCount | bomheaderinternalchangecount | Counter | ||
| BOMUsagePriority | bomusagepriority | Sel. priority | ||
| BillOfMaterialAuthsnGrp | billofmaterialauthsngrp | Auth group | ||
| BOMVersionStatus | bomversionstatus | BOM Version Status | ||
| IsVersionBillOfMaterial | isversionbillofmaterial | Versioning Relevant | ||
| IsLatestBOMVersion | islatestbomversion | Latest Rel Version | ||
| IsConfiguredMaterial | isconfiguredmaterial | Configured matl | ||
| BOMTechnicalType | bomtechnicaltype | Tech type | ||
| BOMGroup | bomgroup | BOM group | ||
| BOMHeaderText | bomheadertext | BOM Description | ||
| BOMAlternativeText | bomalternativetext | Alt Text | ||
| BillOfMaterialStatus | billofmaterialstatus | BOM Status | ||
| ValidityStartDate | validitystartdate | Validity Start Date | ||
| ValidityEndDate | validityenddate | ValidTo | ||
| ChgToEngineeringChgDocument | chgtoengineeringchgdocument | Change No. To | ||
| IsMarkedForDeletion | ismarkedfordeletion | Purch.org. data | ||
| IsALE | isale | ALE indicator | ||
| MatFromLotSizeQuantity | matfromlotsizequantity | From Lot Size | ||
| MaterialToLotSizeQuantity | materialtolotsizequantity | To Lot Size | ||
| BOMHeaderBaseUnit | bomheaderbaseunit | Base UoM | ||
| BOMHeaderQuantityInBaseUnit | bomheaderquantityinbaseunit | Base quantity | ||
| RecordCreationDate | recordcreationdate | Created On | ||
| LastChangeDate | lastchangedate | Time Stamp | ||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| CreatedByUser | createdbyuser | User Name | ||
| BOMIsToBeDeleted | bomistobedeleted | Handling Del. Flag | ||
| DocumentIsCreatedByCAD | documentiscreatedbycad | CAD Indicator | ||
| LaboratoryOrDesignOffice | laboratoryordesignoffice | Lab/Office | ||
| BOMAssetNtwkHndovrIsRelevant | bomassetntwkhndovrisrelevant | BOM to AIN Handover | ||
| LastChangeDateTime | lastchangedatetime | Timestamp | ||
| SoldToParty | soldtoparty | Sold-to Party | ||
| PurchaseOrderByCustomer | purchaseorderbycustomer | Purchase Order Number | ||
| IndicatorIsBOMWithDateHistory | indicatorisbomwithdatehistory | Date hist | ||
| IndicatorIsBOMChangedWithHist | indicatorisbomchangedwithhist | History ID | ||
| AlternativeUnit | alternativeunit | Base UoM | ||
| DefaultValidFromDate | defaultvalidfromdate | |||
| BillOfMaterialHdrDetailsText | billofmaterialhdrdetailstext | |||
| ProductDescription | productdescription | Description | ||
| PlantName | plantname | Plant Name | ||
| IsAttachmentsEnabled | isattachmentsenabled | Originals | ||
| QuantityInBaseUnitIsHidden | quantityinbaseunitishidden | Hidden | ||
| ProductIsConfigurable | productisconfigurable | Configurable | ||
| MaterialType | materialtype | Material Type | ||
| MaterialName | materialname | Material Description | ||
| MaterialBOMObjectID | materialbomobjectid | MBOM key | ||
| LongTextLanguage | longtextlanguage | Long Text Lang | ||
| BOMPrioritizedVersion | bomprioritizedversion | Selection ID | ||
| BOMPredecessorVersion | bompredecessorversion | Predecessor Version | ||
| BOMIsConfigurable | bomisconfigurable | ConfigurableBOM | ||
| BOMIsArchivedForDeletion | bomisarchivedfordeletion | Deletion flag | ||
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftFieldChanges | draftfieldchanges | Field Changes | ||
| BillOfMaterialNoteIdentifier | ||||
| BOMSelectedKeyDate | bomselectedkeydate | Valid From | ||
| EngineeringChangeDocForCopy | engineeringchangedocforcopy | Change Number |
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_BillOfMaterialDraft.
-- 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_BillOfMaterialDraft AS
SELECT
cast( billofmaterial as cs_stlnr preserving type ) AS BillOfMaterial,
BillOfMaterialCategory,
BillOfMaterialVariant,
BillOfMaterialVersion,
EngineeringChangeDocument,
Material,
Plant,
DraftUUID,
SalesOrder,
SalesOrderItem,
cast ( ' ' as /s4ppm/project_ele_id preserving type ) AS ProjectElement,
cast( '00000000' as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
BillOfMaterialHeaderUUID,
BillOfMaterialVariantUsage,
EngineeringChangeDocForEdit,
IsMultipleBOMAlt,
BOMHeaderInternalChangeCount,
BOMUsagePriority,
BillOfMaterialAuthsnGrp,
BOMVersionStatus,
IsVersionBillOfMaterial,
IsLatestBOMVersion,
IsConfiguredMaterial,
BOMTechnicalType,
BOMGroup,
BOMHeaderText,
BOMAlternativeText,
BillOfMaterialStatus,
ValidityStartDate,
ValidityEndDate,
ChgToEngineeringChgDocument,
IsMarkedForDeletion,
IsALE,
MatFromLotSizeQuantity,
MaterialToLotSizeQuantity,
BOMHeaderBaseUnit,
BOMHeaderQuantityInBaseUnit,
RecordCreationDate,
LastChangeDate,
LastChangedByUser,
CreatedByUser,
BOMIsToBeDeleted,
DocumentIsCreatedByCAD,
LaboratoryOrDesignOffice,
BOMAssetNtwkHndovrIsRelevant,
LastChangeDateTime,
SoldToParty,
PurchaseOrderByCustomer,
IndicatorIsBOMWithDateHistory,
IndicatorIsBOMChangedWithHist,
AlternativeUnit,
DefaultValidFromDate,
BillOfMaterialHdrDetailsText,
ProductDescription,
PlantName,
IsAttachmentsEnabled,
QuantityInBaseUnitIsHidden,
ProductIsConfigurable,
MaterialType,
MaterialName,
MaterialBOMObjectID,
LongTextLanguage,
BOMPrioritizedVersion,
BOMPredecessorVersion,
BOMIsConfigurable,
BOMIsArchivedForDeletion,
DraftEntityCreationDateTime,
DraftEntityLastChangeDateTime,
DraftAdministrativeDataUUID,
DraftEntityOperationCode,
HasActiveEntity,
DraftFieldChanges,
bintohex( billofmaterialheaderuuid ) AS BillOfMaterialNoteIdentifier,
BOMSelectedKeyDate,
EngineeringChangeDocForCopy
FROM stko_d AS BillOfMaterialDraft
LEFT OUTER JOIN E_BillOfMaterialDraft AS _BillOfMaterialExtension ON BillOfMaterial = _BillOfMaterialExtension.BillOfMaterial AND BillOfMaterialCategory = _BillOfMaterialExtension.BillOfMaterialCategory AND BillOfMaterialVariant = _BillOfMaterialExtension.BillOfMaterialVariant AND BOMHeaderInternalChangeCount = _BillOfMaterialExtension.BOMHeaderInternalChangeCount AND DraftUUID = _BillOfMaterialExtension.DraftUUID -- association [1..1]
;
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