C_RetailPromotionObjPg

DDL: C_RETAILPROMOTIONOBJPG SQL: CRTLPROMNOBJPG Type: view CONSUMPTION

Retail Promotion Object Page

C_RetailPromotionObjPg is a Consumption CDS View that provides data about "Retail Promotion Object Page" in SAP S/4HANA. It reads from 1 data source (I_RetailPromotion) and exposes 59 fields with key field RetailPromotion. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_RetailPromotion I_RetailPromotion from

Associations (7)

CardinalityTargetAliasCondition
[0..*] C_RetailPromotionItemObjPg _RetailPromotionItemObjPg $projection.RetailPromotion = _RetailPromotionItemObjPg.RetailPromotion
[0..*] C_RtlPromnSiteObjPg _RtlPromnSiteObjPg $projection.RetailPromotion = _RtlPromnSiteObjPg.RetailPromotion
[0..*] C_RtlPromnObjPgProdGrpDisc _RtlPromnObjPgProdGrpDisc $projection.RetailPromotion = _RtlPromnObjPgProdGrpDisc.RetailPromotion
[0..*] C_RtlPromnObjPgArticleHierDisc _RtlPromnObjPgArticleHierDisc $projection.RetailPromotion = _RtlPromnObjPgArticleHierDisc.RetailPromotion
[0..*] C_RtlPromnObjPgStoreGroup _RtlPromnObjPgStoreGroup $projection.RetailPromotion = _RtlPromnObjPgStoreGroup.RetailPromotion
[0..*] C_RtlPromnObjPgAllocationTable _RtlPromnObjPgAllocationTable $projection.RetailPromotion = _RtlPromnObjPgAllocationTable.RetailPromotion
[0..*] C_RtlPromnObjPgPurchaseOrder _RtlPromnObjPgPurchaseOrder $projection.RetailPromotion = _RtlPromnObjPgPurchaseOrder.RetailPromotion

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName CRTLPROMNOBJPG view
EndUserText.label Retail Promotion Object Page view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey RetailPromotion view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
Consumption.semanticObject RetailPromotion view
UI.headerInfo.typeName Retail Promotion view
UI.headerInfo.typeNamePlural Retail Promotions view
UI.headerInfo.title.value RetailPromotion view
UI.headerInfo.description.value RetailPromotionName view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY RetailPromotion RetailPromotion Retail Promotion
RetailPromotionName
RetailPromotionSalesFromDate RetailPromotionSalesFromDate On sale from
RetailPromotionSalesToDate RetailPromotionSalesToDate to
CreationDate CreationDate Time Stamp
UserDescriptionendasCreatedByUser
LastChangeDate LastChangeDate Time Stamp
UserDescriptionendasLastChangedByUser
PurPriceCndnPeriod
PurPriceCndnStartDate PurPriceCndnStartDate Purchase from
PurPriceCndnEndDate PurPriceCndnEndDate to
RetailPromotionType RetailPromotionType Promotion Type
_RetailPromotionType _RetailPromotionType
RetailPromotionIsRefPromotion Higher PromoNo.
RetailPromotionCrtedByAppl RetailPromotionCrtedByAppl Creating Application
_RtlPromnCrtedByAppl _RtlPromnCrtedByAppl
RetailPromotionRefPromotion RetailPromotionRefPromotion HigherLvl Promo
RtlPromnBlkgDateWthReasonName
RetailPromnHeaderBlockDate RetailPromnHeaderBlockDate Pro.blocked on
RetailPromnBlockingReason RetailPromnBlockingReason Blocking reason
RetailPromnBlockReasonName
_RtlPromnBlockingReason _RtlPromnBlockingReason
PromotionProcessingStatus PromotionProcessingStatus Subseq. process
_RtlPromnProcessingStatus _RtlPromnProcessingStatus
RtlPromnListingStatus RtlPromnListingStatus Listing
_RtlPromnLstgStatus _RtlPromnLstgStatus
RtlPromnAllocTableStatus RtlPromnAllocTableStatus Alloc. tbl stat
_RtlPromnAllocTblStatus _RtlPromnAllocTblStatus
PromotionAnnouncementStatus PromotionAnnouncementStatus
_RtlPromotionAnnouncementSts _RtlPromotionAnnouncementSts
SalesPriceActivationStatus SalesPriceActivationStatus
_RtlPromnSalesPriceActvtnSts _RtlPromnSalesPriceActvtnSts
SalesOrganization SalesOrganization Sales Organization
_SalesOrganization _SalesOrganization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
_DistributionChannel _DistributionChannel
PurchasingOrganization PurchasingOrganization Purchasing Organization
_PurchasingOrganization _PurchasingOrganization
PurchasingGroup PurchasingGroup Purchasing Group
_PurchasingGroup _PurchasingGroup
PromnPlnTotalItemsPurchasePrc PromnPlnTotalItemsPurchasePrc Sales at PP
PromnPlnHdrCurrency PromnPlnHdrCurrency Plnd crrncy
PromnPlnTotalItemsSalesPrice PromnPlnTotalItemsSalesPrice Sales vol.at SP
PromnPlnNumberOfArticles PromnPlnNumberOfArticles No. Items
RetailPromotionDiscountPercent _RtlPromnHeaderDiscount RetailPromotionDiscountPercent
QuantityUnit _RtlPromnHeaderDiscount QuantityUnit Unit of measure
RetailPromnDiscountAmount _RtlPromnHeaderDiscount RetailPromnDiscountAmount
RetailPromnDiscountCurrency _RtlPromnHeaderDiscount RetailPromnDiscountCurrency
_Currency _RtlPromnHeaderDiscount _Currency
RetailPromnDiscountUnit _RtlPromnHeaderDiscount RetailPromnDiscountUnit Sales Unit
RetailPromotionDiscountStatus _RtlPromnHeaderDiscount RetailPromotionDiscountStatus
_RtlPromnDiscountStatus _RtlPromnHeaderDiscount _RtlPromnDiscountStatus
_RetailPromotionItemObjPg _RetailPromotionItemObjPg
_RtlPromnObjPgProdGrpDisc _RtlPromnObjPgProdGrpDisc
_RtlPromnObjPgArticleHierDisc _RtlPromnObjPgArticleHierDisc
_RtlPromnObjPgStoreGroup _RtlPromnObjPgStoreGroup
_RtlPromnSiteObjPg _RtlPromnSiteObjPg
_RtlPromnObjPgAllocationTable _RtlPromnObjPgAllocationTable
_RtlPromnObjPgPurchaseOrder _RtlPromnObjPgPurchaseOrder

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 C_RetailPromotionObjPg.
-- 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: CRTLPROMNOBJPG

CREATE VIEW C_RetailPromotionObjPg AS
SELECT
  RetailPromotion,
  _Text[1:Language=$session.system_language].RetailPromotionName AS RetailPromotionName,
  RetailPromotionSalesFromDate,
  RetailPromotionSalesToDate,
  CreationDate,
  case when _CreatedByUser.UserID is null then CreatedByUser when _CreatedByUser.UserDescription = '' then _CreatedByUser.UserID else _CreatedByUser.UserDescription end as CreatedByUser AS UserDescriptionendasCreatedByUser,
  LastChangeDate,
  case when _LastChangedByUser.UserID is null then LastChangedByUser when _LastChangedByUser.UserDescription = '' then _LastChangedByUser.UserID else _LastChangedByUser.UserDescription end as LastChangedByUser AS UserDescriptionendasLastChangedByUser,
  cast('' as char80) AS PurPriceCndnPeriod,
  PurPriceCndnStartDate,
  PurPriceCndnEndDate,
  RetailPromotionType,
  cast(RetailPromotionIsRefPromotion as boolean preserving type) AS RetailPromotionIsRefPromotion,
  RetailPromotionCrtedByAppl,
  RetailPromotionRefPromotion,
  cast(rpad('',80,' ') as abap.sstring(80)) AS RtlPromnBlkgDateWthReasonName,
  RetailPromnHeaderBlockDate,
  RetailPromnBlockingReason,
  _RtlPromnBlockingReason._Text[1:Language=$session.system_language].RetailPromnBlockReasonName AS RetailPromnBlockReasonName,
  PromotionProcessingStatus,
  RtlPromnListingStatus,
  RtlPromnAllocTableStatus,
  PromotionAnnouncementStatus,
  SalesPriceActivationStatus,
  SalesOrganization,
  DistributionChannel,
  PurchasingOrganization,
  PurchasingGroup,
  PromnPlnTotalItemsPurchasePrc,
  PromnPlnHdrCurrency,
  PromnPlnTotalItemsSalesPrice,
  PromnPlnNumberOfArticles,
  _RtlPromnHeaderDiscount.RetailPromotionDiscountPercent AS RetailPromotionDiscountPercent,
  _RtlPromnHeaderDiscount.QuantityUnit AS QuantityUnit,
  _RtlPromnHeaderDiscount.RetailPromnDiscountAmount AS RetailPromnDiscountAmount,
  _RtlPromnHeaderDiscount.RetailPromnDiscountCurrency AS RetailPromnDiscountCurrency,
  _RtlPromnHeaderDiscount._Currency AS _Currency,
  _RtlPromnHeaderDiscount.RetailPromnDiscountUnit AS RetailPromnDiscountUnit,
  _RtlPromnHeaderDiscount.RetailPromotionDiscountStatus AS RetailPromotionDiscountStatus,
  _RtlPromnHeaderDiscount._RtlPromnDiscountStatus AS _RtlPromnDiscountStatus
FROM I_RetailPromotion
LEFT OUTER JOIN C_RetailPromotionItemObjPg AS _RetailPromotionItemObjPg ON RetailPromotion = _RetailPromotionItemObjPg.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnSiteObjPg AS _RtlPromnSiteObjPg ON RetailPromotion = _RtlPromnSiteObjPg.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnObjPgProdGrpDisc AS _RtlPromnObjPgProdGrpDisc ON RetailPromotion = _RtlPromnObjPgProdGrpDisc.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnObjPgArticleHierDisc AS _RtlPromnObjPgArticleHierDisc ON RetailPromotion = _RtlPromnObjPgArticleHierDisc.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnObjPgStoreGroup AS _RtlPromnObjPgStoreGroup ON RetailPromotion = _RtlPromnObjPgStoreGroup.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnObjPgAllocationTable AS _RtlPromnObjPgAllocationTable ON RetailPromotion = _RtlPromnObjPgAllocationTable.RetailPromotion  -- association [0..*]
LEFT OUTER JOIN C_RtlPromnObjPgPurchaseOrder AS _RtlPromnObjPgPurchaseOrder ON RetailPromotion = _RtlPromnObjPgPurchaseOrder.RetailPromotion  -- association [0..*]
;