I_BOMHeaderDraft
Billof material header draft data
I_BOMHeaderDraft is a Basic CDS View that provides data about "Billof material header draft data" in SAP S/4HANA. It reads from 2 data sources (I_DraftAdministrativeData, stko_draft_v2) and exposes 7 fields with key field DraftUUID. Part of development package CS_MODEL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_DraftAdministrativeData | admindraft | inner |
| stko_draft_v2 | bomdraft | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Billof material header draft data | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DraftUUID | stko_draft_v2 | draftuuid | |
| BillOfMaterialCategory | stko_draft_v2 | billofmaterialcategory | ||
| BillOfMaterialVariantUsage | stko_draft_v2 | billofmaterialvariantusage | ||
| PlantForEdit | stko_draft_v2 | plantforedit | ||
| MaterialForEdit | stko_draft_v2 | materialforedit | ||
| SalesOrder | stko_draft_v2 | salesorder | ||
| SalesOrderItem | stko_draft_v2 | salesorderitem |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
@VDM.viewType: #BASIC
@EndUserText.label: 'Billof material header draft data'
define view entity I_BOMHeaderDraft
as select from stko_draft_v2 as bomdraft
inner join I_DraftAdministrativeData as admindraft on
( admindraft.InProcessByUser = $session.user or admindraft.CreatedByUser = $session.user )
and admindraft.DraftUUID = bomdraft.draftuuid and admindraft.DraftEntityType = 'I_BILLOFMATERIALTP'
{
key bomdraft.draftuuid as DraftUUID ,
// bomdraft.billofmaterial as BillOfMaterial ,
bomdraft.billofmaterialcategory as BillOfMaterialCategory,
bomdraft.billofmaterialvariantusage as BillOfMaterialVariantUsage,
bomdraft.plantforedit as PlantForEdit,
bomdraft.materialforedit as MaterialForEdit,
bomdraft.salesorder as SalesOrder,
bomdraft.salesorderitem as SalesOrderItem
}
where
bomdraft.draftentityoperationcode <> 'D' or bomdraft.draftentityoperationcode <> 'L'
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