I_PRODUCTTOASSORTMENTMODULE

CDS View

Product Assignment to Assortment Object

I_PRODUCTTOASSORTMENTMODULE is a CDS View in S/4HANA. Product Assignment to Assortment Object. It contains 9 fields. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
I_ExplctAsstmtMdlExclsnRatio view_entity inner COMPOSITE
I_ExternalStoreListingTP view_entity from TRANSACTIONAL Product Assignment to Store by External Source
I_ProdToExplctAsstmtMdlVersTP view_entity from TRANSACTIONAL Product Assignable to Assortment Module Version
I_ProdToExplicitAsstmtModule view inner COMPOSITE Product Assignment to Assortment Module

Fields (9)

KeyField CDS FieldsUsed in Views
KEY AssortmentModuleUUID AssortmentModuleUUID 1
KEY Product Product 4
KEY ValidityEndDate ValidityEndDate 2
KEY ValidityStartDate ValidityStartDate 2
_Product _Product 2
LastChangeDate LastChangeDate 1
LastChangeDateTime LastChangeDateTime 1
LastChangedByUserName LastChangedByUserName 1
ProductIsMandatoryInAssortment ProductIsMandatoryInAssortment 2
@AbapCatalog.sqlViewName: 'IPRODTOASMMOD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Product Assignment to Assortment Object'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #BASIC,

  lifecycle: {
    contract: {
      type: #PUBLIC_LOCAL_API
    }
  }
}
@ObjectModel: {
    usageType: {
        serviceQuality: #A,
        sizeCategory: #M,
        dataClass: #MASTER
   }
}

define view I_ProductToAssortmentModule
  as select from rfm_asm_article
    inner join   mara on  rfm_asm_article.article = mara.matnr
                      and mara.lvorm              is initial

  association [1..1] to I_Product                   as _Product   on  $projection.Product = _Product.Product
  association [1..1] to E_ProductToAssortmentModule as _Extension on  $projection.AssortmentModuleUUID          = _Extension.AssortmentModuleUUID
                                                                  and $projection.Product                       = _Extension.Product
                                                                  and $projection.ProductOfSuprordLstgCondition = _Extension.ProductOfSuprordLstgCondition
                                                                  and $projection.ValidityEndDate               = _Extension.ValidityEndDate
                                                                  and $projection.ValidityStartDate             = _Extension.ValidityStartDate
{
  key object_guid                                                                       as AssortmentModuleUUID,
      @ObjectModel.foreignKey.association: '_Product'
  key article                                                                           as Product,
  key struct_article                                                                    as ProductOfSuprordLstgCondition,
  key valid_from                                                                        as ValidityStartDate,
  key valid_to                                                                          as ValidityEndDate,

      mandatory                                                                         as ProductIsMandatoryInAssortment,
      @Semantics.user.lastChangedBy: true
      last_changed_by                                                                   as LastChangedByUserName,
      @Semantics.systemDateTime.lastChangedAt:true
      last_changed_at                                                                   as LastChangeDateTime,
      TSTMP_TO_DATS( last_changed_at, $session.user_timezone, $session.client, 'NULL' ) as LastChangeDate,

      _Product

}