I_Billofmaterialdraft

DDL: I_BILLOFMATERIALDRAFT SQL: IBOMDETAILSDRAFT Type: view BASIC Package: CS_MODEL

Interface view for BillOfMaterial Header Draft details

I_Billofmaterialdraft is a Basic CDS View that provides data about "Interface view for BillOfMaterial Header Draft details" in SAP S/4HANA. It reads from 1 data source (stko_draft) and exposes 50 fields with key field DraftUUID. It has 4 associations to related views. Part of development package CS_MODEL.

Data Sources (1)

SourceAliasJoin Type
stko_draft stko_draft from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_BillOfMaterialUsage _BillOfMaterialVariantUsage $projection.BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.BOMHeaderBaseUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBOMDETAILSDRAFT view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Interface view for BillOfMaterial Header Draft details view
Search.searchable true view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY DraftUUID stko_draft draftuuid UUID
BillOfMaterialHeaderUUID stko_draft billofmaterialheaderuuid Guid
Material stko_draft material Vehicle Model
Plant stko_draft plant Valuation Area
BillOfMaterialVariantUsage stko_draft billofmaterialvariantusage Usage
BillOfMaterialCategory stko_draft billofmaterialcategory BOM category
BillOfMaterial stko_draft billofmaterial BOM
BillOfMaterialVariant stko_draft billofmaterialvariant AlternativeBOM
MatFromLotSizeQuantity stko_draft matfromlotsizequantity From Lot Size
MatToLotSizeQuantity
IsMultipleBOMAlt stko_draft ismultiplebomalt Alt.det. MBOM
BOMHeaderInternalChangeCount stko_draft bomheaderinternalchangecount Counter
IsConfiguredMaterial stko_draft isconfiguredmaterial Configured matl
BOMPrioritizedVersion stko_draft bomprioritizedversion Selection ID
BOMExplosionApplication stko_draft bomexplosionapplication BOM Application
BOMUsagePriority stko_draft bomusagepriority Sel. priority
BillOfMaterialAuthsnGrp stko_draft billofmaterialauthsngrp Auth group
BOMTechnicalType
BOMGroup stko_draft bomgroup BOM group
BOMHeaderText stko_draft bomheadertext BOM Description
BOMAlternativeText stko_draft bomalternativetext Alt Text
BillOfMaterialStatus stko_draft billofmaterialstatus BOM Status
HeaderValidityStartDate stko_draft headervaliditystartdate Valid From
HeaderValidityEndDate stko_draft headervalidityenddate to
EngineeringChangeDocument stko_draft engineeringchangedocument Change Number
ChgToEngineeringChgDocument stko_draft chgtoengineeringchgdocument Change No. To
IsMarkedForDeletion stko_draft ismarkedfordeletion Purch.org. data
DocumentIsCreatedByCAD stko_draft documentiscreatedbycad CAD Indicator
LaboratoryOrDesignOffice stko_draft laboratoryordesignoffice Lab/Office
IsALE stko_draft isale ALE indicator
BOMHeaderBaseUnit stko_draft bomheaderbaseunit Base UoM
BOMHeaderQuantityInBaseUnit stko_draft bomheaderquantityinbaseunit Base quantity
RecordCreationDate stko_draft recordcreationdate Created On
LastChangeDate stko_draft lastchangedate Time Stamp
CreatedByUser stko_draft createdbyuser User Name
LastChangedByUser stko_draft lastchangedbyuser User Name
BOMIsToBeDeleted stko_draft bomistobedeleted Handling Del. Flag
IsHeaderDraftModified stko_draft isheaderdraftmodified Single-Character Flag
IsActiveEntity stko_draft isactiveentity Is active
HasActiveEntity stko_draft hasactiveentity TRUE
HasDraftEntity stko_draft hasdraftentity Has Draft
BillOfMaterialVersion stko_draft billofmaterialversion BOM Version
BOMVersionStatus stko_draft bomversionstatus BOM Version Status
BOMVersionStatusDescription
IsVersionBillOfMaterial stko_draft isversionbillofmaterial Versioning Relevant
IsLatestBOMVersion stko_draft islatestbomversion Latest Rel Version
_Material _Material
_BillOfMaterialVariantUsage _BillOfMaterialVariantUsage
_Plant _Plant
_UnitOfMeasure _UnitOfMeasure

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 I_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.
-- SQL view name: IBOMDETAILSDRAFT

CREATE VIEW I_Billofmaterialdraft AS
SELECT
  stko_draft.draftuuid AS DraftUUID,
  stko_draft.billofmaterialheaderuuid AS BillOfMaterialHeaderUUID,
  stko_draft.material AS Material,
  stko_draft.plant AS Plant,
  stko_draft.billofmaterialvariantusage AS BillOfMaterialVariantUsage,
  stko_draft.billofmaterialcategory AS BillOfMaterialCategory,
  stko_draft.billofmaterial AS BillOfMaterial,
  stko_draft.billofmaterialvariant AS BillOfMaterialVariant,
  stko_draft.matfromlotsizequantity AS MatFromLotSizeQuantity,
  cast( stko_draft.mattolotsizequantity as losbs preserving type ) AS MatToLotSizeQuantity,
  stko_draft.ismultiplebomalt AS IsMultipleBOMAlt,
  stko_draft.bomheaderinternalchangecount AS BOMHeaderInternalChangeCount,
  stko_draft.isconfiguredmaterial AS IsConfiguredMaterial,
  stko_draft.bomprioritizedversion AS BOMPrioritizedVersion,
  stko_draft.bomexplosionapplication AS BOMExplosionApplication,
  stko_draft.bomusagepriority AS BOMUsagePriority,
  stko_draft.billofmaterialauthsngrp AS BillOfMaterialAuthsnGrp,
  cast ( stko_draft.bomtechnicaltype as tetyp_d preserving type ) AS BOMTechnicalType,
  stko_draft.bomgroup AS BOMGroup,
  stko_draft.bomheadertext AS BOMHeaderText,
  stko_draft.bomalternativetext AS BOMAlternativeText,
  stko_draft.billofmaterialstatus AS BillOfMaterialStatus,
  stko_draft.headervaliditystartdate AS HeaderValidityStartDate,
  stko_draft.headervalidityenddate AS HeaderValidityEndDate,
  stko_draft.engineeringchangedocument AS EngineeringChangeDocument,
  stko_draft.chgtoengineeringchgdocument AS ChgToEngineeringChgDocument,
  stko_draft.ismarkedfordeletion AS IsMarkedForDeletion,
  stko_draft.documentiscreatedbycad AS DocumentIsCreatedByCAD,
  stko_draft.laboratoryordesignoffice AS LaboratoryOrDesignOffice,
  stko_draft.isale AS IsALE,
  stko_draft.bomheaderbaseunit AS BOMHeaderBaseUnit,
  stko_draft.bomheaderquantityinbaseunit AS BOMHeaderQuantityInBaseUnit,
  stko_draft.recordcreationdate AS RecordCreationDate,
  stko_draft.lastchangedate AS LastChangeDate,
  stko_draft.createdbyuser AS CreatedByUser,
  stko_draft.lastchangedbyuser AS LastChangedByUser,
  stko_draft.bomistobedeleted AS BOMIsToBeDeleted,
  stko_draft.isheaderdraftmodified AS IsHeaderDraftModified,
  stko_draft.isactiveentity AS IsActiveEntity,
  stko_draft.hasactiveentity AS HasActiveEntity,
  stko_draft.hasdraftentity AS HasDraftEntity,
  stko_draft.billofmaterialversion AS BillOfMaterialVersion,
  stko_draft.bomversionstatus AS BOMVersionStatus,
  cast('' as val_text) AS BOMVersionStatusDescription,
  stko_draft.isversionbillofmaterial AS IsVersionBillOfMaterial,
  stko_draft.islatestbomversion AS IsLatestBOMVersion
FROM stko_draft
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialVariantUsage ON BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage AND _BillOfMaterialVariantUsage.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BOMHeaderBaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
;