C_AllocationTableItemObjPg

DDL: C_ALLOCATIONTABLEITEMOBJPG SQL: CALCTBLITEMOBJPG Type: view CONSUMPTION

Allocation Table Item Object Page

C_AllocationTableItemObjPg is a Consumption CDS View that provides data about "Allocation Table Item Object Page" in SAP S/4HANA. It reads from 1 data source (I_AllocationTableItem) and exposes 39 fields with key fields AllocationTable, AllocationTableItem. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AllocationTableItem I_AllocationTableItem from

Associations (7)

CardinalityTargetAliasCondition
[0..*] C_AllocTblItemObjPgRcvgStore _AllocTblItemObjPgRcvgStore $projection.AllocationTable = _AllocTblItemObjPgRcvgStore.AllocationTable and $projection.AllocationTableItem = _AllocTblItemObjPgRcvgStore.AllocationTableItem
[0..*] C_AllocTblItmObjPgRcvgDistrCtr _AllocTblItmObjPgRcvgDistrCtr $projection.AllocationTable = _AllocTblItmObjPgRcvgDistrCtr.AllocationTable and $projection.AllocationTableItem = _AllocTblItmObjPgRcvgDistrCtr.AllocationTableItem
[0..*] C_AllocTblItemObjPgRcvgCust _AllocTblItemObjPgRcvgCust $projection.AllocationTable = _AllocTblItemObjPgRcvgCust.AllocationTable and $projection.AllocationTableItem = _AllocTblItemObjPgRcvgCust.AllocationTableItem
[0..*] C_AllocTblItemObjPgSuplgDC _AllocTblItemObjPgSuplgDC $projection.AllocationTable = _AllocTblItemObjPgSuplgDC.AllocationTable and $projection.AllocationTableItem = _AllocTblItemObjPgSuplgDC.AllocationTableItem
[0..*] C_AllocTblItemObjPgVariant _AllocTblItemObjPgVariant $projection.AllocationTable = _AllocTblItemObjPgVariant.AllocationTable and $projection.AllocationTableItem = _AllocTblItemObjPgVariant.AllocTblItemOfConfigblProduct
[0..1] I_NrOfRecipientsOfAllocTblItem _NrOfRecipientsOfAllocTblItem $projection.AllocationTable = _NrOfRecipientsOfAllocTblItem.AllocationTable and $projection.AllocationTableItem = _NrOfRecipientsOfAllocTblItem.AllocationTableItem
[0..1] I_AllocTblItemWithSubsqntDocs _AllocTblItemWithSubsqntDocs $projection.AllocationTable = _AllocTblItemWithSubsqntDocs.AllocationTable and $projection.AllocationTableItem = _AllocTblItemWithSubsqntDocs.AllocationTableItem

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName CALCTBLITEMOBJPG view
EndUserText.label Allocation Table Item 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.representativeKey AllocationTableItem view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Consumption.semanticObject AllocationTableItem view
UI.presentationVariant.sortOrder.by AllocationTableItem view
UI.presentationVariant.sortOrder.direction #ASC view
UI.headerInfo.typeName Allocation Table: Item view
UI.headerInfo.typeNamePlural Allocation Table: Items view
UI.headerInfo.title.value ProductName view
UI.headerInfo.description.value Product view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY AllocationTable AllocationTable Alloc. Table
KEY AllocationTableItem AllocationTableItem Item
Product Product Product Sold
_Product _Product
ProductName
ProductCategory _Product ProductCategory Prod Category
_ProductCategory _Product _ProductCategory
AllocTableActivityStatus _AllocationTable AllocTableActivityStatus
_AllocTableActivityStatus _AllocationTable _AllocTableActivityStatus
MaintenanceStatus _AllocationTable MaintenanceStatus Maint. status
_AllocTableMaintenanceStatus _AllocationTable _AllocTableMaintenanceStatus
CreationDate CreationDate Time Stamp
UserDescriptionendasCreatedByUser
LastChangeDate LastChangeDate Time Stamp
UserDescriptionendasLastChangedByUser
CrossPlantConfigurableProduct _Product CrossPlantConfigurableProduct Cross-Plant Configurable Product
_CrossPlantConfigurableProduct _Product _CrossPlantConfigurableProduct
CrsPlntConfigurableProductName
AllocTblItemOfConfigblProduct Item of Configurable Product
MaterialGroup MaterialGroup Product Group
_MaterialGroup _MaterialGroup
MaterialGroupName
PlannedQuantity PlannedQuantity Plan Quantity
ConfirmedQuantity ConfirmedQuantity Quantity in UnE
QuantityUnit QuantityUnit Unit of measure
_QuantityUnit _QuantityUnit
PurchaseOrder PurchaseOrder Purchasing Document
RetailPromotion RetailPromotion Promotion
_RetailPromotion _RetailPromotion
RetailPromotionName
PurchaseContract PurchaseContract Reference Contract
InboundDelivery InboundDelivery Reference Shipping Notification
NumberOfRecipients Number of Recipients
_AllocationTable _AllocationTable
_AllocTblItemObjPgRcvgStore _AllocTblItemObjPgRcvgStore
_AllocTblItmObjPgRcvgDistrCtr _AllocTblItmObjPgRcvgDistrCtr
_AllocTblItemObjPgRcvgCust _AllocTblItemObjPgRcvgCust
_AllocTblItemObjPgSuplgDC _AllocTblItemObjPgSuplgDC
_AllocTblItemObjPgVariant _AllocTblItemObjPgVariant

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_AllocationTableItemObjPg.
-- 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: CALCTBLITEMOBJPG

CREATE VIEW C_AllocationTableItemObjPg AS
SELECT
  AllocationTable,
  AllocationTableItem,
  Product,
  _Product._Text[1:Language=$session.system_language].ProductName AS ProductName,
  _Product.ProductCategory AS ProductCategory,
  _Product._ProductCategory AS _ProductCategory,
  _AllocationTable.AllocTableActivityStatus AS AllocTableActivityStatus,
  _AllocationTable._AllocTableActivityStatus AS _AllocTableActivityStatus,
  _AllocationTable.MaintenanceStatus AS MaintenanceStatus,
  _AllocationTable._AllocTableMaintenanceStatus AS _AllocTableMaintenanceStatus,
  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,
  _Product.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  _Product._CrossPlantConfigurableProduct AS _CrossPlantConfigurableProduct,
  _Product._CrossPlantConfigurableProduct._Text[1:Language=$session.system_language].ProductName AS CrsPlntConfigurableProductName,
  ltrim(AllocTblItemOfConfigblProduct, '0') AS AllocTblItemOfConfigblProduct,
  MaterialGroup,
  _MaterialGroup._Text[1:Language=$session.system_language].MaterialGroupName AS MaterialGroupName,
  PlannedQuantity,
  ConfirmedQuantity,
  QuantityUnit,
  PurchaseOrder,
  RetailPromotion,
  _RetailPromotion._Text[1:Language=$session.system_language].RetailPromotionName AS RetailPromotionName,
  PurchaseContract,
  InboundDelivery,
  coalesce(_NrOfRecipientsOfAllocTblItem.NumberOfRecipients, 0 ) AS NumberOfRecipients
FROM I_AllocationTableItem
LEFT OUTER JOIN C_AllocTblItemObjPgRcvgStore AS _AllocTblItemObjPgRcvgStore ON AllocationTable = _AllocTblItemObjPgRcvgStore.AllocationTable AND AllocationTableItem = _AllocTblItemObjPgRcvgStore.AllocationTableItem  -- association [0..*]
LEFT OUTER JOIN C_AllocTblItmObjPgRcvgDistrCtr AS _AllocTblItmObjPgRcvgDistrCtr ON AllocationTable = _AllocTblItmObjPgRcvgDistrCtr.AllocationTable AND AllocationTableItem = _AllocTblItmObjPgRcvgDistrCtr.AllocationTableItem  -- association [0..*]
LEFT OUTER JOIN C_AllocTblItemObjPgRcvgCust AS _AllocTblItemObjPgRcvgCust ON AllocationTable = _AllocTblItemObjPgRcvgCust.AllocationTable AND AllocationTableItem = _AllocTblItemObjPgRcvgCust.AllocationTableItem  -- association [0..*]
LEFT OUTER JOIN C_AllocTblItemObjPgSuplgDC AS _AllocTblItemObjPgSuplgDC ON AllocationTable = _AllocTblItemObjPgSuplgDC.AllocationTable AND AllocationTableItem = _AllocTblItemObjPgSuplgDC.AllocationTableItem  -- association [0..*]
LEFT OUTER JOIN C_AllocTblItemObjPgVariant AS _AllocTblItemObjPgVariant ON AllocationTable = _AllocTblItemObjPgVariant.AllocationTable AND AllocationTableItem = _AllocTblItemObjPgVariant.AllocTblItemOfConfigblProduct  -- association [0..*]
LEFT OUTER JOIN I_NrOfRecipientsOfAllocTblItem AS _NrOfRecipientsOfAllocTblItem ON AllocationTable = _NrOfRecipientsOfAllocTblItem.AllocationTable AND AllocationTableItem = _NrOfRecipientsOfAllocTblItem.AllocationTableItem  -- association [0..1]
LEFT OUTER JOIN I_AllocTblItemWithSubsqntDocs AS _AllocTblItemWithSubsqntDocs ON AllocationTable = _AllocTblItemWithSubsqntDocs.AllocationTable AND AllocationTableItem = _AllocTblItemWithSubsqntDocs.AllocationTableItem  -- association [0..1]
;