I_RetailPromotion

DDL: I_RETAILPROMOTION Type: view_entity BASIC

Retail Promotion

I_RetailPromotion is a Basic CDS View that provides data about "Retail Promotion" in SAP S/4HANA. It reads from 1 data source (wakh) and exposes 51 fields with key field RetailPromotion. It has 21 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wakh wakh from

Associations (21)

CardinalityTargetAliasCondition
[0..*] I_RetailPromotionT _Text $projection.RetailPromotion = _Text.RetailPromotion
[1..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[1..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_RtlPromotionAnnouncementSts _RtlPromotionAnnouncementSts $projection.PromotionAnnouncementStatus = _RtlPromotionAnnouncementSts.PromotionAnnouncementStatus
[1..1] I_RtlPromnSalesPriceActvtnSts _RtlPromnSalesPriceActvtnSts $projection.SalesPriceActivationStatus = _RtlPromnSalesPriceActvtnSts.SalesPriceActivationStatus
[1..1] I_RetailPromotionType _RetailPromotionType $projection.RetailPromotionType = _RetailPromotionType.RetailPromotionType
[1..1] I_RtlPromnCrtedByAppl _RtlPromnCrtedByAppl $projection.RetailPromotionCrtedByAppl = _RtlPromnCrtedByAppl.RetailPromotionCrtedByAppl
[1..1] I_RtlPromnBlockingReason _RtlPromnBlockingReason $projection.RetailPromnBlockingReason = _RtlPromnBlockingReason.RetailPromnBlockingReason
[1..1] I_RtlPromnProcessingStatus _RtlPromnProcessingStatus $projection.PromotionProcessingStatus = _RtlPromnProcessingStatus.PromotionProcessingStatus
[1..1] I_RtlPromnLstgStatus _RtlPromnLstgStatus $projection.RtlPromnListingStatus = _RtlPromnLstgStatus.RtlPromnListingStatus
[1..1] I_RtlPromnAllocTblStatus _RtlPromnAllocTblStatus $projection.RtlPromnAllocTableStatus = _RtlPromnAllocTblStatus.RtlPromnAllocTableStatus
[0..1] I_RetailPromotionDiscount _RtlPromnHeaderDiscount $projection.RetailPromotion = _RtlPromnHeaderDiscount.RetailPromotion and _RtlPromnHeaderDiscount.RetailPromnDiscountLevel = '05'
[0..*] I_RetailPromotionItem _RetailPromotionItem $projection.RetailPromotion = _RetailPromotionItem.RetailPromotion
[0..*] I_RetailPromotionDiscount _RetailPromotionDiscount $projection.RetailPromotion = _RetailPromotionDiscount.RetailPromotion
[0..1] I_RetailPromotionCategory _RetailPromotionCategory $projection.RetailPromotionCategory = _RetailPromotionCategory.RetailPromotionCategory
[0..1] I_RetailPromotionCustomerType _RetailPromotionCustomerType $projection.RetailPromotionCustomerType = _RetailPromotionCustomerType.RetailPromotionCustomerType
[0..1] I_Currency _PromnPlnHdrCurrency $projection.PromnPlnHdrCurrency = _PromnPlnHdrCurrency.Currency
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (10)

NameValueLevelField
Analytics.technicalName IRTLPROMN view
EndUserText.label Retail Promotion view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey RetailPromotion view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY RetailPromotion aktnr Promotion
RetailPromotionSalesFromDate vkdab On sale from
RetailPromotionSalesToDate vkdbi to
PurPriceCndnStartDate ekdab Purchase from
PurPriceCndnEndDate ekdbi to
RetailPromotionType akart Promotion Type
_RetailPromotionType _RetailPromotionType
RetailPromotionIsRefPromotion is_ref_promo Higher PromoNo.
RetailPromotionCrtedByAppl erappl Creating applic.
_RtlPromnCrtedByAppl _RtlPromnCrtedByAppl
RetailPromnHeaderBlockDate spdab Pro.blocked on
RetailPromnBlockingReason spgru Blocking reason
_RtlPromnBlockingReason _RtlPromnBlockingReason
RetailPromotionRefPromotion ref_promo HigherLvl Promo
SalesOrganization vkorg SD Sales Org.
_SalesOrganization _SalesOrganization
DistributionChannel vtweg RefDistCh-Cust/Mat.
_DistributionChannel _DistributionChannel
PurchasingOrganization ekorg Purchasing Org.
_PurchasingOrganization _PurchasingOrganization
PurchasingGroup ekgrp Sub. purchasing grp
_PurchasingGroup _PurchasingGroup
RetailPromotionCategory aktyp Promotion Cat.
_RetailPromotionCategory _RetailPromotionCategory
RetailPromotionCustomerType customer_type Part. Type
_RetailPromotionCustomerType _RetailPromotionCustomerType
SalesPriceActivationStatus Prices
_RtlPromnSalesPriceActvtnSts _RtlPromnSalesPriceActvtnSts
PromotionAnnouncementStatus Announcement
_RtlPromotionAnnouncementSts _RtlPromotionAnnouncementSts
RtlPromnListingStatus akbst Listing
_RtlPromnLstgStatus _RtlPromnLstgStatus
RtlPromnAllocTableStatus akast Alloc. tbl stat
_RtlPromnAllocTblStatus _RtlPromnAllocTblStatus
PromotionProcessingStatus akvst Subseq. process
_RtlPromnProcessingStatus _RtlPromnProcessingStatus
PromnPlnHdrCurrency waela Plnd crrncy
_PromnPlnHdrCurrency _PromnPlnHdrCurrency
PromnPlnTotalItemsPurchasePrc pduep Sales at PP
PromnPlnTotalItemsSalesPrice pduvp Sales vol.at SP
PromnPlnNumberOfArticles pdanz No. Items
CreationDate erdat Entered On
CreatedByUser ernam User Name
LastChangeDate aedat Obsolete
LastChangedByUser aenam User Name
_RtlPromnHeaderDiscount _RtlPromnHeaderDiscount
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_Text _Text
_RetailPromotionItem _RetailPromotionItem
_RetailPromotionDiscount _RetailPromotionDiscount

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_RetailPromotion.
-- 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_RetailPromotion AS
SELECT
  aktnr AS RetailPromotion,
  vkdab AS RetailPromotionSalesFromDate,
  vkdbi AS RetailPromotionSalesToDate,
  ekdab AS PurPriceCndnStartDate,
  ekdbi AS PurPriceCndnEndDate,
  akart AS RetailPromotionType,
  is_ref_promo AS RetailPromotionIsRefPromotion,
  erappl AS RetailPromotionCrtedByAppl,
  spdab AS RetailPromnHeaderBlockDate,
  spgru AS RetailPromnBlockingReason,
  ref_promo AS RetailPromotionRefPromotion,
  vkorg AS SalesOrganization,
  vtweg AS DistributionChannel,
  ekorg AS PurchasingOrganization,
  ekgrp AS PurchasingGroup,
  aktyp AS RetailPromotionCategory,
  customer_type AS RetailPromotionCustomerType,
  cast(vkgst as salespriceactivationstatus preserving type ) AS SalesPriceActivationStatus,
  cast(bekst as promotionannouncementstatus preserving type ) AS PromotionAnnouncementStatus,
  akbst AS RtlPromnListingStatus,
  akast AS RtlPromnAllocTableStatus,
  akvst AS PromotionProcessingStatus,
  waela AS PromnPlnHdrCurrency,
  pduep AS PromnPlnTotalItemsPurchasePrc,
  pduvp AS PromnPlnTotalItemsSalesPrice,
  pdanz AS PromnPlnNumberOfArticles,
  erdat AS CreationDate,
  ernam AS CreatedByUser,
  aedat AS LastChangeDate,
  aenam AS LastChangedByUser
FROM wakh
LEFT OUTER JOIN I_RetailPromotionT AS _Text ON RetailPromotion = _Text.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [1..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_RtlPromotionAnnouncementSts AS _RtlPromotionAnnouncementSts ON PromotionAnnouncementStatus = _RtlPromotionAnnouncementSts.PromotionAnnouncementStatus  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnSalesPriceActvtnSts AS _RtlPromnSalesPriceActvtnSts ON SalesPriceActivationStatus = _RtlPromnSalesPriceActvtnSts.SalesPriceActivationStatus  -- association [1..1]
LEFT OUTER JOIN I_RetailPromotionType AS _RetailPromotionType ON RetailPromotionType = _RetailPromotionType.RetailPromotionType  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnCrtedByAppl AS _RtlPromnCrtedByAppl ON RetailPromotionCrtedByAppl = _RtlPromnCrtedByAppl.RetailPromotionCrtedByAppl  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnBlockingReason AS _RtlPromnBlockingReason ON RetailPromnBlockingReason = _RtlPromnBlockingReason.RetailPromnBlockingReason  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnProcessingStatus AS _RtlPromnProcessingStatus ON PromotionProcessingStatus = _RtlPromnProcessingStatus.PromotionProcessingStatus  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnLstgStatus AS _RtlPromnLstgStatus ON RtlPromnListingStatus = _RtlPromnLstgStatus.RtlPromnListingStatus  -- association [1..1]
LEFT OUTER JOIN I_RtlPromnAllocTblStatus AS _RtlPromnAllocTblStatus ON RtlPromnAllocTableStatus = _RtlPromnAllocTblStatus.RtlPromnAllocTableStatus  -- association [1..1]
LEFT OUTER JOIN I_RetailPromotionDiscount AS _RtlPromnHeaderDiscount ON RetailPromotion = _RtlPromnHeaderDiscount.RetailPromotion AND _RtlPromnHeaderDiscount.RetailPromnDiscountLevel = '05'  -- association [0..1]
LEFT OUTER JOIN I_RetailPromotionItem AS _RetailPromotionItem ON RetailPromotion = _RetailPromotionItem.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN I_RetailPromotionDiscount AS _RetailPromotionDiscount ON RetailPromotion = _RetailPromotionDiscount.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN I_RetailPromotionCategory AS _RetailPromotionCategory ON RetailPromotionCategory = _RetailPromotionCategory.RetailPromotionCategory  -- association [0..1]
LEFT OUTER JOIN I_RetailPromotionCustomerType AS _RetailPromotionCustomerType ON RetailPromotionCustomerType = _RetailPromotionCustomerType.RetailPromotionCustomerType  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PromnPlnHdrCurrency ON PromnPlnHdrCurrency = _PromnPlnHdrCurrency.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]
;