C_SiteObjPg

DDL: C_SITEOBJPG Type: view CONSUMPTION Package: RFM_SITE_OP

Site Object Page

C_SiteObjPg is a Consumption CDS View that provides data about "Site Object Page" in SAP S/4HANA. It reads from 1 data source (I_Site) and exposes 40 fields with key field Site. It has 7 associations to related views. Part of development package RFM_SITE_OP.

Data Sources (1)

SourceAliasJoin Type
I_Site I_Site from

Associations (7)

CardinalityTargetAliasCondition
[0..*] C_SiteObjPgRetailPromotion _SiteObjPgRetailPromotion $projection.SiteCustomer = _SiteObjPgRetailPromotion.SiteCustomer
[0..*] C_SiteObjPgProductGroup _SiteObjPgProductGroup $projection.SiteCustomer = _SiteObjPgProductGroup.SiteCustomer
[0..*] C_SiteObjPgSupplyingSite _SiteObjPgSupplyingSite $projection.SiteCustomer = _SiteObjPgSupplyingSite.SiteCustomer
[0..*] C_SiteObjPgAssortment _SiteObjPgAssortment $projection.SiteCustomer = _SiteObjPgAssortment.SiteCustomer
[0..*] C_SiteObjPgAllocationTable _SiteObjPgAllocationTable $projection.Site = _SiteObjPgAllocationTable.Site
[0..*] C_SiteObjPgPurchaseOrder _SiteObjPgPurchaseOrder $projection.Site = _SiteObjPgPurchaseOrder.Site
[0..*] C_SiteObjPgReceivingPoint _SiteObjPgReceivingPoint $projection.SiteCustomer = _SiteObjPgReceivingPoint.SiteCustomer

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName CSITEOBJPG view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Site Object Page 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.semanticKey Site view
ObjectModel.representativeKey Site view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
Consumption.semanticObject Site view
UI.headerInfo.typeName Site view
UI.headerInfo.typeNamePlural Sites view
UI.headerInfo.title.value Site view
UI.headerInfo.description.value SiteName view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY Site Site Plant
SiteName SiteName
SiteCustomer SiteCustomer
SiteCategory SiteCategory
SiteCategoryName
SiteOpeningStatusName
AddressTimeZone
NumberOfOpenGoodsReceipts
PostalCode
CityName
InternationalPhoneNumber
InternationalFaxNumber
EmailAddress _AddressEmailAddress EmailAddress E-Mail Address
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DefaultPurchasingOrganization DefaultPurchasingOrganization
FactoryCalendar FactoryCalendar Factory Calendar
PointOfSaleOutboundProfile _SitePointOfSale PointOfSaleOutboundProfile
PointOfSaleInboundProfile _SitePointOfSale PointOfSaleInboundProfile
PointOfSaleCurrency _SitePointOfSale PointOfSaleCurrency
SiteBlockingPeriod
SiteBlockingFromDate _SiteBlocking SiteBlockingFromDate
SiteBlockingToDate _SiteBlocking SiteBlockingToDate
SiteBlockingReason _SiteBlocking SiteBlockingReason
SiteOpeningDate _SiteOpeningHours SiteOpeningDate
SiteClosingDate _SiteOpeningHours SiteClosingDate
_PointOfSaleOutboundProfile _SitePointOfSale _PointOfSaleOutboundProfile
_PointOfSaleInboundProfile _SitePointOfSale _PointOfSaleInboundProfile
_SiteBlockingReason _SiteBlocking _SiteBlockingReason
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_DefaultPurchasingOrganization _DefaultPurchasingOrganization
_FactoryCalendar _FactoryCalendar
_SiteObjPgProductGroup _SiteObjPgProductGroup
_SiteObjPgAssortment _SiteObjPgAssortment
_SiteObjPgSupplyingSite _SiteObjPgSupplyingSite
_SiteObjPgReceivingPoint _SiteObjPgReceivingPoint
_SiteObjPgPurchaseOrder _SiteObjPgPurchaseOrder
_SiteObjPgAllocationTable _SiteObjPgAllocationTable
_SiteObjPgRetailPromotion _SiteObjPgRetailPromotion

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_SiteObjPg.
-- 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 C_SiteObjPg AS
SELECT
  Site,
  SiteName,
  SiteCustomer,
  SiteCategory,
  cast(_SiteCategoryText[1: Language=$session.system_language].PlantCategoryName as sitecategoryname preserving type) AS SiteCategoryName,
  cast(rpad('',60,' ') as siteopeningstatusname preserving type ) AS SiteOpeningStatusName,
  _OrganizationAddress[1: AddressRepresentationCode = ''].AddressTimeZone AS AddressTimeZone,
  cast(0 as numberofopengoodsreceipts) AS NumberOfOpenGoodsReceipts,
  _OrganizationAddress[1: AddressRepresentationCode = ''].PostalCode AS PostalCode,
  _OrganizationAddress[1: AddressRepresentationCode = ''].CityName AS CityName,
  _OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltLandlinePhoneNmbr.InternationalPhoneNumber AS InternationalPhoneNumber,
  _OrganizationAddress[1: AddressRepresentationCode = '']._CurrentDfltFaxNumber.InternationalFaxNumber AS InternationalFaxNumber,
  _AddressEmailAddress.EmailAddress AS EmailAddress,
  SalesOrganization,
  DistributionChannel,
  DefaultPurchasingOrganization,
  FactoryCalendar,
  _SitePointOfSale.PointOfSaleOutboundProfile AS PointOfSaleOutboundProfile,
  _SitePointOfSale.PointOfSaleInboundProfile AS PointOfSaleInboundProfile,
  _SitePointOfSale.PointOfSaleCurrency AS PointOfSaleCurrency,
  cast(rpad('',80,' ') as siteblockingperiod preserving type ) AS SiteBlockingPeriod,
  _SiteBlocking.SiteBlockingFromDate AS SiteBlockingFromDate,
  _SiteBlocking.SiteBlockingToDate AS SiteBlockingToDate,
  _SiteBlocking.SiteBlockingReason AS SiteBlockingReason,
  _SiteOpeningHours.SiteOpeningDate AS SiteOpeningDate,
  _SiteOpeningHours.SiteClosingDate AS SiteClosingDate,
  _SitePointOfSale._PointOfSaleOutboundProfile AS _PointOfSaleOutboundProfile,
  _SitePointOfSale._PointOfSaleInboundProfile AS _PointOfSaleInboundProfile,
  _SiteBlocking._SiteBlockingReason AS _SiteBlockingReason
FROM I_Site
LEFT OUTER JOIN C_SiteObjPgRetailPromotion AS _SiteObjPgRetailPromotion ON SiteCustomer = _SiteObjPgRetailPromotion.SiteCustomer  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgProductGroup AS _SiteObjPgProductGroup ON SiteCustomer = _SiteObjPgProductGroup.SiteCustomer  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgSupplyingSite AS _SiteObjPgSupplyingSite ON SiteCustomer = _SiteObjPgSupplyingSite.SiteCustomer  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgAssortment AS _SiteObjPgAssortment ON SiteCustomer = _SiteObjPgAssortment.SiteCustomer  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgAllocationTable AS _SiteObjPgAllocationTable ON Site = _SiteObjPgAllocationTable.Site  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgPurchaseOrder AS _SiteObjPgPurchaseOrder ON Site = _SiteObjPgPurchaseOrder.Site  -- association [0..*]
LEFT OUTER JOIN C_SiteObjPgReceivingPoint AS _SiteObjPgReceivingPoint ON SiteCustomer = _SiteObjPgReceivingPoint.SiteCustomer  -- association [0..*]
;