P_ProjMatBOMAssembly
P_ProjMatBOMAssembly is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (I_SalesOrderBOMLink, I_Mast, I_Prst) and exposes 13 fields. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrderBOMLink | _kdst | union_all |
| I_Mast | _Mast | from |
| I_Prst | _prst | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_MaterialText | _MaterialText | $projection.Assembly = _MaterialText.Material |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATBOMASSEMBLY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| BillOfMaterialCategory | BillOfMaterialCategory | |||
| BillOfMaterial | BillOfMaterial | |||
| BillOfMaterialVariant | BillOfMaterialVariant | |||
| Assembly | Material | |||
| MaterialBillOfMaterialCategory | ||||
| BillOfMaterial | BillOfMaterial | |||
| BillOfMaterialVariant | BillOfMaterialVariant | |||
| Assembly | Material | |||
| MaterialBillOfMaterialCategory | ||||
| BillOfMaterial | BillOfMaterial | |||
| BillOfMaterialVariant | BillOfMaterialVariant | |||
| Assembly | Material | |||
| AssemblyName |
@AbapCatalog.sqlViewName: 'PMATBOMASSEMBLY'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private: true
define view P_ProjMatBOMAssembly
as select from I_Mast as _Mast
/*
inner join resb on _Mast.BillOfMaterialCategory = resb.stlty
and _Mast.BillOfMaterial = resb.stlnr
and _Mast.BillOfMaterialVariant = resb.stlal
*/
association [0..*] to I_MaterialText as _MaterialText on $projection.Assembly = _MaterialText.Material
{
BillOfMaterialCategory,
BillOfMaterial,
BillOfMaterialVariant,
Material as Assembly,
_MaterialText[Language = $session.system_language].MaterialName as AssemblyName
}
union all select from I_SalesOrderBOMLink as _kdst
/*
inner join rsadd on _kdst.BillOfMaterial = rsadd.bstln
and _kdst.BillOfMaterialCategory = rsadd.bstlt
*/
association [0..*] to I_MaterialText as _MaterialText on $projection.Assembly = _MaterialText.Material
{
BillOfMaterialCategory,
BillOfMaterial,
BillOfMaterialVariant,
Material as Assembly,
_MaterialText[Language = $session.system_language].MaterialName as AssemblyName
}
union all select from I_Prst as _prst
/*
inner join rsadd on _prst.BillOfMaterial = rsadd.bstln
*/
association [0..*] to I_MaterialText as _MaterialText on $projection.Assembly = _MaterialText.Material
{
BillOfMaterialCategory,
BillOfMaterial,
BillOfMaterialVariant,
Material as Assembly,
_MaterialText[Language = $session.system_language].MaterialName as AssemblyName
}
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