I_ProdToExplctAsstmtMdlVersTP

DDL: I_PRODTOEXPLCTASSTMTMDLVERSTP Type: view_entity TRANSACTIONAL Package: RFM_ASSORTMENT_RAP_EXPLICIT

Product Assignment to Asstmt Mdl Version

I_ProdToExplctAsstmtMdlVersTP is a Transactional CDS View that provides data about "Product Assignment to Asstmt Mdl Version" in SAP S/4HANA. It reads from 2 data sources (I_ExplicitAsstmtMdlVersionTP, I_ProductToAssortmentModule) and exposes 16 fields with key fields AssortmentModuleUUID, Product, ValidityStartDate, ValidityEndDate. It has 4 associations to related views. Part of development package RFM_ASSORTMENT_RAP_EXPLICIT.

Data Sources (2)

SourceAliasJoin Type
I_ExplicitAsstmtMdlVersionTP ExplicitModule inner
I_ProductToAssortmentModule Product from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_ExplicitAsstmtMdlVersionTP _ExplicitAssortmentModuleVers $projection.AssortmentModuleUUID = _ExplicitAssortmentModuleVers.AssortmentModuleVersionUUID
[1..1] I_ProdAssgblToExplctModuleTP _ExplctAssortmentMdlProduct $projection.Product = _ExplctAssortmentMdlProduct.Product
[0..1] I_UserContactCard _User _User.ContactCardID = $projection.LastChangedByUserName
[0..1] I_ExclsnRatioForAsstmtMdlProd _ExclusionRatio $projection.AssortmentModuleObjectUUID = _ExclusionRatio.AssortmentModuleObjectUUID and $projection.Product = _ExclusionRatio.Product

Annotations (8)

NameValueLevelField
EndUserText.label Product Assignment to Asstmt Mdl Version view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name AssortmentModuleVersionProduct view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY AssortmentModuleUUID I_ProductToAssortmentModule AssortmentModuleUUID Recipe GUID
KEY Product I_ProductToAssortmentModule Product Product Sold
KEY ValidityStartDate I_ProductToAssortmentModule ValidityStartDate Validity Start Date
KEY ValidityEndDate I_ProductToAssortmentModule ValidityEndDate ValidTo
ProductIsMandatoryInAssortment I_ProductToAssortmentModule ProductIsMandatoryInAssortment Yes/No
AssortmentModuleName I_ExplicitAsstmtMdlVersionTP AssortmentModuleName
LastChangeDate I_ProductToAssortmentModule LastChangeDate Time Stamp
LastChangeDateTime I_ProductToAssortmentModule LastChangeDateTime Timestamp
LastChangedByUserName I_ProductToAssortmentModule LastChangedByUserName User Name
AssortmentModuleObjectUUID I_ExplicitAsstmtMdlVersionTP AssortmentModuleUUID Recipe GUID
_ExplicitAssortmentModuleVers _ExplicitAssortmentModuleVers
_ExplctAssortmentMdlProduct _ExplctAssortmentMdlProduct
_User _User
_Product I_ProductToAssortmentModule _Product
_ExclusionRatio _ExclusionRatio
_ProdToExplicitAsstmtMdl _ProdToExplicitAsstmtMdl

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_ProdToExplctAsstmtMdlVersTP.
-- 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.

CREATE VIEW I_ProdToExplctAsstmtMdlVersTP AS
SELECT
  Product.AssortmentModuleUUID AS AssortmentModuleUUID,
  Product.Product AS Product,
  Product.ValidityStartDate AS ValidityStartDate,
  Product.ValidityEndDate AS ValidityEndDate,
  Product.ProductIsMandatoryInAssortment AS ProductIsMandatoryInAssortment,
  ExplicitModule.AssortmentModuleName AS AssortmentModuleName,
  Product.LastChangeDate AS LastChangeDate,
  Product.LastChangeDateTime AS LastChangeDateTime,
  Product.LastChangedByUserName AS LastChangedByUserName,
  ExplicitModule.AssortmentModuleUUID AS AssortmentModuleObjectUUID,
  Product._Product AS _Product
FROM I_ProductToAssortmentModule AS Product
INNER JOIN I_ExplicitAsstmtMdlVersionTP AS ExplicitModule ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ExplicitAsstmtMdlVersionTP AS _ExplicitAssortmentModuleVers ON AssortmentModuleUUID = _ExplicitAssortmentModuleVers.AssortmentModuleVersionUUID  -- association [1..1]
LEFT OUTER JOIN I_ProdAssgblToExplctModuleTP AS _ExplctAssortmentMdlProduct ON Product = _ExplctAssortmentMdlProduct.Product  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _User ON _User.ContactCardID = LastChangedByUserName  -- association [0..1]
LEFT OUTER JOIN I_ExclsnRatioForAsstmtMdlProd AS _ExclusionRatio ON AssortmentModuleObjectUUID = _ExclusionRatio.AssortmentModuleObjectUUID AND Product = _ExclusionRatio.Product  -- association [0..1]
;