P_ModProdSpecItemDraft
Model Product Specification Item Draft
P_ModProdSpecItemDraft is a Basic CDS View that provides data about "Model Product Specification Item Draft" in SAP S/4HANA. It reads from 1 data source (mmpur_mps_itm_d) and exposes 33 fields with key field ModProdSpecItemUUID. It has 8 associations to related views. Part of development package VDM_MM_PUR_MPS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mmpur_mps_itm_d | mmpur_mps_itm_d | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_ModelProductSpecification | _ModelProductSpecification | $projection.ModelProductSpecificationUUID = _ModelProductSpecification.ModelProductSpecificationUUID |
| [0..1] | P_ModProdSpecItemDraft | _Parent | $projection.ModProdSpecItemParentID = _Parent.ModelProductSpecificationItem and $projection.ModelProductSpecificationUUID = _Parent.ModelProductSpecificationUUID |
| [0..1] | I_UnitOfMeasure | _UnitValueHelp | $projection.OrderQuantityUnit = _UnitValueHelp.UnitOfMeasure |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Material | _Product | $projection.Product = _Product.Material |
| [0..1] | I_PurgDocumentItemCategory | _PurgDocumentItemCategory | $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory |
| [0..1] | I_ProductTypeCode | _ProductTypeCode | $projection.ProductTypeCode = _ProductTypeCode.ProductTypeCode |
| [0..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | PMODPRODSPECITMD | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ModProdSpecItemUUID | modprodspecitemuuid | MPS Item UUID | |
| ModelProductSpecificationUUID | modelproductspecificationuuid | UUID | ||
| ModelProductSpecification | modelproductspecification | ID | ||
| ModelProductSpecificationItem | modelproductspecificationitem | Item ID | ||
| ModProdSpecAlternativeItemID | modprodspecalternativeitemid | Alt. Item ID | ||
| ModProdSpecFormattedItemID | modprodspecformatteditemid | Hierarchy Number | ||
| Plant | plant | Valuation Area | ||
| ModProdSpecItemParentID | modprodspecitemparentid | Parent ID | ||
| PurchasingIsItemSet | purchasingisitemset | Item Set | ||
| PurchasingDocumentItemCategory | purchasingdocumentitemcategory | Item Category | ||
| ModProdSpecItemDescription | modprodspecitemdescription | Description | ||
| Product | product | Product Sold | ||
| ProductTypeCode | producttypecode | Product Type Group | ||
| MaterialGroup | materialgroup | Product Group | ||
| OrderQuantity | orderquantity | Quantity | ||
| OrderQuantityUnit | orderquantityunit | Sales Unit | ||
| CreationDateTime | creationdatetime | Timestamp | ||
| CreatedByUser | createdbyuser | User Name | ||
| LastChangeDateTime | lastchangedatetime | Timestamp | ||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| DraftEntityCreationDateTime | draftentitycreationdatetime | Draft Created On | ||
| DraftEntityLastChangeDateTime | draftentitylastchangedatetime | Draft Last Changed On | ||
| HasActiveEntity | hasactiveentity | TRUE | ||
| DraftAdministrativeDataUUID | draftadministrativedatauuid | UUID | ||
| DraftEntityOperationCode | draftentityoperationcode | Draft - Operation Code | ||
| _ModelProductSpecification | _ModelProductSpecification | |||
| _Parent | _Parent | |||
| _UnitValueHelp | _UnitValueHelp | |||
| _Plant | _Plant | |||
| _Product | _Product | |||
| _PurgDocumentItemCategory | _PurgDocumentItemCategory | |||
| _ProductTypeCode | _ProductTypeCode | |||
| _MaterialGroup | _MaterialGroup |
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 P_ModProdSpecItemDraft.
-- 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: PMODPRODSPECITMD
CREATE VIEW P_ModProdSpecItemDraft AS
SELECT
ModProdSpecItemUUID,
ModelProductSpecificationUUID,
ModelProductSpecification,
ModelProductSpecificationItem,
ModProdSpecAlternativeItemID,
ModProdSpecFormattedItemID,
Plant,
ModProdSpecItemParentID,
PurchasingIsItemSet,
PurchasingDocumentItemCategory,
ModProdSpecItemDescription,
Product,
ProductTypeCode,
MaterialGroup,
OrderQuantity,
OrderQuantityUnit,
CreationDateTime,
CreatedByUser,
LastChangeDateTime,
LastChangedByUser,
DraftEntityCreationDateTime,
DraftEntityLastChangeDateTime,
HasActiveEntity,
DraftAdministrativeDataUUID,
DraftEntityOperationCode
FROM mmpur_mps_itm_d
LEFT OUTER JOIN R_ModelProductSpecification AS _ModelProductSpecification ON ModelProductSpecificationUUID = _ModelProductSpecification.ModelProductSpecificationUUID -- association [1..1]
LEFT OUTER JOIN P_ModProdSpecItemDraft AS _Parent ON ModProdSpecItemParentID = _Parent.ModelProductSpecificationItem AND ModelProductSpecificationUUID = _Parent.ModelProductSpecificationUUID -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitValueHelp ON OrderQuantityUnit = _UnitValueHelp.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Material AS _Product ON Product = _Product.Material -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductTypeCode ON ProductTypeCode = _ProductTypeCode.ProductTypeCode -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [0..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