C_AllocTblObjPgReceivingStore

DDL: C_ALLOCTBLOBJPGRECEIVINGSTORE SQL: CALLOCTBLRECSTO Type: view CONSUMPTION Package: RFM_ALLOCATION_TABLE_OP

Allocation Table Object Page - Receiving Stores

C_AllocTblObjPgReceivingStore is a Consumption CDS View that provides data about "Allocation Table Object Page - Receiving Stores" in SAP S/4HANA. It reads from 1 data source (I_AllocationTableRecipient) and exposes 33 fields with key fields AllocationTable, Site. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F0333A). Part of development package RFM_ALLOCATION_TABLE_OP.

Data Sources (1)

SourceAliasJoin Type
I_AllocationTableRecipient I_AllocationTableRecipient from

Associations (3)

CardinalityTargetAliasCondition
[0..*] C_AllocTableStoreObjPgProduct _AllocTableStoreObjPgProduct $projection.AllocationTable = _AllocTableStoreObjPgProduct.AllocationTable and $projection.Site = _AllocTableStoreObjPgProduct.Site
[0..*] C_AllocTableStoreObjPgPurOrd _AllocTableStoreObjPgPurOrd $projection.AllocationTable = _AllocTableStoreObjPgPurOrd.AllocationTable and $projection.Site = _AllocTableStoreObjPgPurOrd.Site
[0..*] C_AllocTableStoreObjPgSTO _AllocTableStoreObjPgSTO $projection.AllocationTable = _AllocTableStoreObjPgSTO.AllocationTable and $projection.Site = _AllocTableStoreObjPgSTO.Site

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName CALLOCTBLRECSTO view
EndUserText.label Allocation Table Object Page - Receiving Stores 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.representativeKey Site view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
UI.presentationVariant.sortOrder.by Site view
UI.presentationVariant.sortOrder.direction #ASC view
UI.headerInfo.typeName Allocation Table: Store view
UI.headerInfo.typeNamePlural Allocation Table: Stores view
UI.headerInfo.title.value Site view
UI.headerInfo.description.value SiteName view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F0333A ASQL_F0333A C2 NOT_RELEASED

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY AllocationTable AllocationTable Alloc. Table
KEY Site Site Plant
_Site _Site
SiteName _Site SiteName
Region
_Region
PostalCode
CityName
Countryasformatted_streetasStreetName
Country
_Country
PhoneExtensionNumber1asPhoneNumber
FaxExtensionNumber1asFaxNumber
EmailAddress
Class _StoreGroupClass Class User Group
StoreGroupInternalID StoreGroupInternalID
_StoreGroupDescription _StoreGroupDescription
AllocationTableType _AllocationTable AllocationTableType
_AllocationTableType _AllocationTable _AllocationTableType
AllocTableActivityStatus _AllocationTable AllocTableActivityStatus
_AllocTableActivityStatus _AllocationTable _AllocTableActivityStatus
MaintenanceStatus _AllocationTable MaintenanceStatus Maint. status
_AllocTableMaintenanceStatus _AllocationTable _AllocTableMaintenanceStatus
RetailPromotion _AllocationTableItem RetailPromotion Promotion
_RetailPromotion _AllocationTableItem _RetailPromotion
RetailPromotionName
RetailPromotionType
_RetailPromotionType
DeliveryDate DeliveryDate Delivery Date
_AllocationTable _AllocationTable
_AllocTableStoreObjPgProduct _AllocTableStoreObjPgProduct
_AllocTableStoreObjPgPurOrd _AllocTableStoreObjPgPurOrd
_AllocTableStoreObjPgSTO _AllocTableStoreObjPgSTO

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_AllocTblObjPgReceivingStore.
-- 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: CALLOCTBLRECSTO

CREATE VIEW C_AllocTblObjPgReceivingStore AS
SELECT
  AllocationTable,
  Site,
  _Site.SiteName AS SiteName,
  _Site._OrganizationAddress[1: AddressRepresentationCode = ''].Region AS Region,
  _Site._OrganizationAddress[1: AddressRepresentationCode = '']._Region AS _Region,
  _Site._OrganizationAddress[1: AddressRepresentationCode = ''].PostalCode AS PostalCode,
  _Site._OrganizationAddress[1: AddressRepresentationCode = ''].CityName AS CityName,
  cast( concat(_Site._OrganizationAddress[1: AddressRepresentationCode = ''].StreetName, concat(';;', concat(_Site._OrganizationAddress[1: AddressRepresentationCode = ''].HouseNumber, concat(';;', _Site._OrganizationAddress[1: AddressRepresentationCode = ''].Country )))) as formatted_street ) as StreetName AS Countryasformatted_streetasStreetName,
  _Site._OrganizationAddress[1: AddressRepresentationCode = ''].Country AS Country,
  _Site._OrganizationAddress[1: AddressRepresentationCode = '']._Country AS _Country,
  concat_with_space(_Site._OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltLandlinePhoneNmbr.InternationalPhoneNumber, _Site._OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltLandlinePhoneNmbr.PhoneExtensionNumber, 1) as PhoneNumber AS PhoneExtensionNumber1asPhoneNumber,
  concat_with_space(_Site._OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltFaxNumber.InternationalFaxNumber, _Site._OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltFaxNumber.FaxExtensionNumber, 1) as FaxNumber AS FaxExtensionNumber1asFaxNumber,
  _Site._AddressEmailAddress.EmailAddress AS EmailAddress,
  _StoreGroupClass.Class AS Class,
  StoreGroupInternalID,
  _AllocationTable.AllocationTableType AS AllocationTableType,
  _AllocationTable._AllocationTableType AS _AllocationTableType,
  _AllocationTable.AllocTableActivityStatus AS AllocTableActivityStatus,
  _AllocationTable._AllocTableActivityStatus AS _AllocTableActivityStatus,
  _AllocationTable.MaintenanceStatus AS MaintenanceStatus,
  _AllocationTable._AllocTableMaintenanceStatus AS _AllocTableMaintenanceStatus,
  _AllocationTableItem.RetailPromotion AS RetailPromotion,
  _AllocationTableItem._RetailPromotion AS _RetailPromotion,
  _AllocationTableItem._RetailPromotion._Text[1:Language=$session.system_language].RetailPromotionName AS RetailPromotionName,
  _AllocationTableItem._RetailPromotion.RetailPromotionType AS RetailPromotionType,
  _AllocationTableItem._RetailPromotion._RetailPromotionType AS _RetailPromotionType,
  DeliveryDate
FROM I_AllocationTableRecipient
LEFT OUTER JOIN C_AllocTableStoreObjPgProduct AS _AllocTableStoreObjPgProduct ON AllocationTable = _AllocTableStoreObjPgProduct.AllocationTable AND Site = _AllocTableStoreObjPgProduct.Site  -- association [0..*]
LEFT OUTER JOIN C_AllocTableStoreObjPgPurOrd AS _AllocTableStoreObjPgPurOrd ON AllocationTable = _AllocTableStoreObjPgPurOrd.AllocationTable AND Site = _AllocTableStoreObjPgPurOrd.Site  -- association [0..*]
LEFT OUTER JOIN C_AllocTableStoreObjPgSTO AS _AllocTableStoreObjPgSTO ON AllocationTable = _AllocTableStoreObjPgSTO.AllocationTable AND Site = _AllocTableStoreObjPgSTO.Site  -- association [0..*]
;