I_ProdToExplicitAsstmtModule
Product Assignment to Assortment Module
I_ProdToExplicitAsstmtModule is a Composite CDS View that provides data about "Product Assignment to Assortment Module" in SAP S/4HANA. It reads from 3 data sources (I_ExplicitAssortmentModule, I_ProductToAssortmentModule, I_ExplicitAsstmtModuleVersion) and exposes 12 fields with key fields AssortmentModuleUUID, Product, AssortmentModuleName. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ExplicitAssortmentModule | module | from |
| I_ProductToAssortmentModule | product_assignments | inner |
| I_ExplicitAsstmtModuleVersion | version | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ExplctAsstmtMdlExclsnRatio | _ExclusionRatio | $projection.AssortmentModuleUUID = _ExclusionRatio.AssortmentModuleGroupUUID and $projection.Product = _ExclusionRatio.Product |
| [1..*] | I_ProdAssgblToExplctMdlVersTP | _ModuleVersion | $projection.AssortmentModuleName = _ModuleVersion.AssortmentModuleName and $projection.Product = _ModuleVersion.Product |
| [1..*] | I_AssortmentModuleText | _Text | _Text.AssortmentModuleUUID = $projection.AssortmentModuleUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRODTOEXPLASM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Product Assignment to Assortment Module | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssortmentModuleUUID | I_ExplicitAssortmentModule | AssortmentModuleUUID | Recipe GUID |
| KEY | Product | I_ProductToAssortmentModule | Product | Product Sold |
| KEY | AssortmentModuleName | I_ExplicitAssortmentModule | AssortmentModuleName | Assortment Module |
| ProductIsMandatoryInAssortment | I_ProductToAssortmentModule | ProductIsMandatoryInAssortment | Yes/No | |
| ValidityStartDate | ||||
| ValidityEndDate | ||||
| LastChangeDateTime | ||||
| LastChangeDate | ||||
| _ModuleVersion | _ModuleVersion | |||
| _Text | _Text | |||
| _Product | I_ProductToAssortmentModule | _Product | ||
| _ExclusionRatio | _ExclusionRatio |
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_ProdToExplicitAsstmtModule.
-- 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: IPRODTOEXPLASM
CREATE VIEW I_ProdToExplicitAsstmtModule AS
SELECT
module.AssortmentModuleUUID AS AssortmentModuleUUID,
product_assignments.Product AS Product,
module.AssortmentModuleName AS AssortmentModuleName,
product_assignments.ProductIsMandatoryInAssortment AS ProductIsMandatoryInAssortment,
cast ( min( product_assignments.ValidityStartDate ) as rfm_asm_valid_from preserving type ) AS ValidityStartDate,
cast ( max( product_assignments.ValidityEndDate ) as rfm_asm_valid_to preserving type ) AS ValidityEndDate,
cast ( max( product_assignments.LastChangeDateTime ) as tzntstmps preserving type ) AS LastChangeDateTime,
max( product_assignments.LastChangeDate ) AS LastChangeDate,
product_assignments._Product AS _Product
FROM I_ExplicitAssortmentModule AS module
INNER JOIN I_ExplicitAsstmtModuleVersion AS version ON /* join condition not captured in parsed metadata */
INNER JOIN I_ProductToAssortmentModule AS product_assignments ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ExplctAsstmtMdlExclsnRatio AS _ExclusionRatio ON AssortmentModuleUUID = _ExclusionRatio.AssortmentModuleGroupUUID AND Product = _ExclusionRatio.Product -- association [0..1]
LEFT OUTER JOIN I_ProdAssgblToExplctMdlVersTP AS _ModuleVersion ON AssortmentModuleName = _ModuleVersion.AssortmentModuleName AND Product = _ModuleVersion.Product -- association [1..*]
LEFT OUTER JOIN I_AssortmentModuleText AS _Text ON _Text.AssortmentModuleUUID = AssortmentModuleUUID -- association [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