C_RetailPromotionObjPg
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 64 fields with key field RetailPromotion. It has 7 associations to related views. Part of development package RFM_PROMOTION_OP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RetailPromotion | I_RetailPromotion | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | ||
| RetailPromotionTypeName | ||||
| _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 | ||
| SalesOrganizationName | ||||
| _SalesOrganization | _SalesOrganization | |||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| DistributionChannelName | ||||
| _DistributionChannel | _DistributionChannel | |||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| _PurchasingOrganization | _PurchasingOrganization | |||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| _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,
_RetailPromotionType._Text[ 1: Language = $session.system_language ].RetailPromotionTypeName AS RetailPromotionTypeName,
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,
_SalesOrganization._Text[ 1: Language = $session.system_language ].SalesOrganizationName AS SalesOrganizationName,
DistributionChannel,
_DistributionChannel._Text[ 1: Language = $session.system_language ].DistributionChannelName AS DistributionChannelName,
PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA