I_RetailPromotionItem

DDL: I_RETAILPROMOTIONITEM Type: view_entity BASIC

Retail Promotion Item

I_RetailPromotionItem is a Basic CDS View that provides data about "Retail Promotion Item" in SAP S/4HANA. It reads from 1 data source (wakp) and exposes 46 fields with key fields RetailPromotion, Product, SalesQuantityUnit. It has 14 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wakp wakp from

Associations (14)

CardinalityTargetAliasCondition
[1..1] I_RetailPromotion _RetailPromotion $projection.RetailPromotion = _RetailPromotion.RetailPromotion
[0..*] I_RetailPromotionItemStore _RetailPromotionItemStore $projection.RetailPromotion = _RetailPromotionItemStore.RetailPromotion and $projection.Product = _RetailPromotionItemStore.Product and $projection.SalesQuantityUnit = _RetailPromotionItemStore.SalesQuantityUnit
[1..1] I_RtlPromnBlockingReason _RtlPromnBlockingReason $projection.RetailPromnBlockingReason = _RtlPromnBlockingReason.RetailPromnBlockingReason
[0..1] I_RtlPromnDiscountStatus _RtlPromnDiscountStatus $projection.RetailPromotionDiscountStatus = _RtlPromnDiscountStatus.RetailPromotionDiscountStatus
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Product _GenericProduct $projection.CrossPlantConfigurableProduct = _GenericProduct.Product
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.SalesQuantityUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_ClassHeader _ClassHeader $projection.ProductGroup = _ClassHeader.Class and _ClassHeader.ClassType = '026'
[0..1] I_AllocationTable _AllocationTable $projection.AllocationTable = _AllocationTable.AllocationTable
[0..1] I_AllocationTableItem _AllocationTableItem $projection.AllocationTable = _AllocationTableItem.AllocationTable and $projection.AllocationTableItem = _AllocationTableItem.AllocationTableItem
[0..1] I_Currency _PromnPlnItmCurrency $projection.PromnPlnItmCurrency = _PromnPlnItmCurrency.Currency
[0..1] I_Currency _PromnPlnItmPurchaseCurrency $projection.PromnPlnItmPurchaseCurrency = _PromnPlnItmPurchaseCurrency.Currency
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (8)

NameValueLevelField
Analytics.technicalName IRTLPROMNITEM view
EndUserText.label Retail Promotion Item view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.representativeKey Product view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY RetailPromotion aktnr Promotion
KEY Product Product
_Product _Product
KEY SalesQuantityUnit mebme Sales unit
_UnitOfMeasure _UnitOfMeasure
RetailPromotionItem akpos Item Number
PromnPlnItmCurrency waela Plnd crrncy
_PromnPlnItmCurrency _PromnPlnItmCurrency
PromnPlnItmSalesPrice plvkp Sales Price
RtlPromotionItemSalesPriceQty vpein Sales price un
RetailPromnDiscountAmount reb_value Abs.Discount
QuantityUnit
RetailPromotionDiscountPercent reb_perc Percent.Discnt
RetailPromotionDiscountStatus reb_status Discount Status
_RtlPromnDiscountStatus _RtlPromnDiscountStatus
PromnPlnItmSalesQuantity pabbm Pld sales qty
PromnPlnItmPurchaseCurrency waeek Pur. curr.
_PromnPlnItmPurchaseCurrency _PromnPlnItmPurchaseCurrency
PromnPlnItmPurchasePrice plekp Purchase Price
PrcWithoutPrcCalcIsActive no_kalk w/o calculation
NmbrOfRtlPromnItmPriceActvtn activ Transaction
RetailPromnItemBlockDate spdat Item blocked on
RetailPromnBlockingReason spgru Blocking reason
_RtlPromnBlockingReason _RtlPromnBlockingReason
RetailPromotionSalesFromDate vk_aktiv_ab SP active from
RetailPromotionSalesToDate vk_aktiv_bi Active to
PromnPlnItmTotalQtySalesPrice pumvp Pld sales at SP
PromnPlnItmTotalQtyPurPrice pumep Pld sales at PP
CrossPlantConfigurableProduct Cross-plant CM
_GenericProduct _GenericProduct
ProductGroup matkl Product Sold Group
_ClassHeader _ClassHeader
AllocationTable abeln Alloc. Table
_AllocationTable _AllocationTable
AllocationTableItem abelp Item
_AllocationTableItem _AllocationTableItem
AllocationUnit meauf Alloc. tbl unit
AllocationTableQty aufme Unit of Measure
CreationDate erdat Entered On
CreatedByUser ernam User Name
_CreatedByUser _CreatedByUser
LastChangeDate aedat Obsolete
LastChangedByUser aenam User Name
_LastChangedByUser _LastChangedByUser
_RetailPromotion _RetailPromotion
_RetailPromotionItemStore _RetailPromotionItemStore

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_RetailPromotionItem.
-- 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_RetailPromotionItem AS
SELECT
  aktnr AS RetailPromotion,
  cast(artnr as productnumber preserving type) AS Product,
  mebme AS SalesQuantityUnit,
  akpos AS RetailPromotionItem,
  waela AS PromnPlnItmCurrency,
  plvkp AS PromnPlnItmSalesPrice,
  vpein AS RtlPromotionItemSalesPriceQty,
  reb_value AS RetailPromnDiscountAmount,
  cast( '%' as mebme ) AS QuantityUnit,
  reb_perc AS RetailPromotionDiscountPercent,
  reb_status AS RetailPromotionDiscountStatus,
  pabbm AS PromnPlnItmSalesQuantity,
  waeek AS PromnPlnItmPurchaseCurrency,
  plekp AS PromnPlnItmPurchasePrice,
  no_kalk AS PrcWithoutPrcCalcIsActive,
  activ AS NmbrOfRtlPromnItmPriceActvtn,
  spdat AS RetailPromnItemBlockDate,
  spgru AS RetailPromnBlockingReason,
  vk_aktiv_ab AS RetailPromotionSalesFromDate,
  vk_aktiv_bi AS RetailPromotionSalesToDate,
  pumvp AS PromnPlnItmTotalQtySalesPrice,
  pumep AS PromnPlnItmTotalQtyPurPrice,
  cast(satnr as productnumber preserving type) AS CrossPlantConfigurableProduct,
  matkl AS ProductGroup,
  abeln AS AllocationTable,
  abelp AS AllocationTableItem,
  meauf AS AllocationUnit,
  aufme AS AllocationTableQty,
  erdat AS CreationDate,
  ernam AS CreatedByUser,
  aedat AS LastChangeDate,
  aenam AS LastChangedByUser
FROM wakp
LEFT OUTER JOIN I_RetailPromotion AS _RetailPromotion ON RetailPromotion = _RetailPromotion.RetailPromotion  -- association [1..1]
LEFT OUTER JOIN I_RetailPromotionItemStore AS _RetailPromotionItemStore ON RetailPromotion = _RetailPromotionItemStore.RetailPromotion AND Product = _RetailPromotionItemStore.Product AND SalesQuantityUnit = _RetailPromotionItemStore.SalesQuantityUnit  -- association [0..*]
LEFT OUTER JOIN I_RtlPromnBlockingReason AS _RtlPromnBlockingReason ON RetailPromnBlockingReason = _RtlPromnBlockingReason.RetailPromnBlockingReason  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnDiscountStatus AS _RtlPromnDiscountStatus ON RetailPromotionDiscountStatus = _RtlPromnDiscountStatus.RetailPromotionDiscountStatus  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Product AS _GenericProduct ON CrossPlantConfigurableProduct = _GenericProduct.Product  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON SalesQuantityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_ClassHeader AS _ClassHeader ON ProductGroup = _ClassHeader.Class AND _ClassHeader.ClassType = '026'  -- association [0..1]
LEFT OUTER JOIN I_AllocationTable AS _AllocationTable ON AllocationTable = _AllocationTable.AllocationTable  -- association [0..1]
LEFT OUTER JOIN I_AllocationTableItem AS _AllocationTableItem ON AllocationTable = _AllocationTableItem.AllocationTable AND AllocationTableItem = _AllocationTableItem.AllocationTableItem  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PromnPlnItmCurrency ON PromnPlnItmCurrency = _PromnPlnItmCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PromnPlnItmPurchaseCurrency ON PromnPlnItmPurchaseCurrency = _PromnPlnItmPurchaseCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
;