I_ProdToExplicitAsstmtModule

DDL: I_PRODTOEXPLICITASSTMTMODULE SQL: IPRODTOEXPLASM Type: view COMPOSITE

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)

SourceAliasJoin Type
I_ExplicitAssortmentModule module from
I_ProductToAssortmentModule product_assignments inner
I_ExplicitAsstmtModuleVersion version inner

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;