I_AllocationTableItem
Allocation Table Item
I_AllocationTableItem is a Basic CDS View that provides data about "Allocation Table Item" in SAP S/4HANA. It reads from 1 data source (aupo) and exposes 35 fields with key fields AllocationTable, AllocationTableItem. It has 12 associations to related views. Part of development package VDM_RFM_ALLOCATION_TABLE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| aupo | aupo | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_AllocationTable | _AllocationTable | $projection.AllocationTable = _AllocationTable.AllocationTable |
| [0..*] | I_AllocationTableItemRcpntGrp | _AllocationTableItemRcpntGrp | $projection.AllocationTable = _AllocationTableItemRcpntGrp.AllocationTable and $projection.AllocationTableItem = _AllocationTableItemRcpntGrp.AllocationTableItem |
| [0..*] | I_AllocationTableItemRecipient | _AllocationTableItemRecipient | $projection.AllocationTable = _AllocationTableItemRecipient.AllocationTable and $projection.AllocationTableItem = _AllocationTableItemRecipient.AllocationTableItem |
| [0..*] | I_AllocTableItemSuplgDistrCtr | _AllocTableItemSuplgDistrCtr | $projection.AllocationTable = _AllocTableItemSuplgDistrCtr.AllocationTable and $projection.AllocationTableItem = _AllocTableItemSuplgDistrCtr.AllocationTableItem |
| [0..1] | I_UnitOfMeasure | _QuantityUnit | $projection.QuantityUnit = _QuantityUnit.UnitOfMeasure |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [0..1] | I_RetailPromotion | _RetailPromotion | $projection.RetailPromotion = _RetailPromotion.RetailPromotion |
| [0..1] | I_AllocTableBlockingReason | _AllocTableBlockingReason | $projection.AllocTblItmBlockReason = _AllocTableBlockingReason.AllocTblBlockReason |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IALLOCTBLITEM | view | |
| EndUserText.label | Allocation Table Item | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | AllocationTableItem | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationTable | abeln | ||
| KEY | AllocationTableItem | abelp | ||
| PurchaseContract | rfktn | |||
| PurchaseContractItem | rfktp | |||
| PurchaseOrder | ||||
| RetailPromotion | aktnr | |||
| Product | ||||
| DistributionCenter | vzwrk | |||
| Supplier | lifnr | |||
| PlannedQuantity | pmnge | |||
| ConfirmedQuantity | imnge | |||
| QuantityUnit | aufme | |||
| AllocationStrategy | astra | |||
| MaterialGroup | matkl | |||
| InboundDelivery | vbeln | |||
| InboundDeliveryItem | vbelp | |||
| AllocTableCreatingApplication | ervon | |||
| AllocTblItemOfConfigblProduct | sapos | |||
| ArticleCategory | attyp | |||
| AllocTblItmBlockReason | sperr | |||
| CreationDate | erdat | |||
| CreatedByUser | ernam | |||
| LastChangeDate | aedat | |||
| LastChangedByUser | aenam | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _QuantityUnit | _QuantityUnit | |||
| _Supplier | _Supplier | |||
| _Product | _Product | |||
| _MaterialGroup | _MaterialGroup | |||
| _RetailPromotion | _RetailPromotion | |||
| _AllocTableBlockingReason | _AllocTableBlockingReason | |||
| _AllocationTable | _AllocationTable | |||
| _AllocTableItemSuplgDistrCtr | _AllocTableItemSuplgDistrCtr | |||
| _AllocationTableItemRcpntGrp | _AllocationTableItemRcpntGrp |
@AbapCatalog.sqlViewName: 'IALLOCTBLITEM'
@EndUserText.label: 'Allocation Table Item'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #REQUIRED
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@ObjectModel: {
semanticKey: ['AllocationTable', 'AllocationTableItem'],
representativeKey: 'AllocationTableItem',
usageType.serviceQuality: #A,
usageType.sizeCategory: #L,
usageType.dataClass: #TRANSACTIONAL
}
define view I_AllocationTableItem
as select from aupo
association [1..1] to I_AllocationTable as _AllocationTable on $projection.AllocationTable = _AllocationTable.AllocationTable
association [0..*] to I_AllocationTableItemRcpntGrp as _AllocationTableItemRcpntGrp on $projection.AllocationTable = _AllocationTableItemRcpntGrp.AllocationTable
and $projection.AllocationTableItem = _AllocationTableItemRcpntGrp.AllocationTableItem
association [0..*] to I_AllocationTableItemRecipient as _AllocationTableItemRecipient on $projection.AllocationTable = _AllocationTableItemRecipient.AllocationTable
and $projection.AllocationTableItem = _AllocationTableItemRecipient.AllocationTableItem
association [0..*] to I_AllocTableItemSuplgDistrCtr as _AllocTableItemSuplgDistrCtr on $projection.AllocationTable = _AllocTableItemSuplgDistrCtr.AllocationTable
and $projection.AllocationTableItem = _AllocTableItemSuplgDistrCtr.AllocationTableItem
association [0..1] to I_UnitOfMeasure as _QuantityUnit on $projection.QuantityUnit = _QuantityUnit.UnitOfMeasure
association [0..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
association [1..1] to I_Product as _Product on $projection.Product = _Product.Product
association [0..1] to I_MaterialGroup as _MaterialGroup on $projection.MaterialGroup = _MaterialGroup.MaterialGroup
association [0..1] to I_RetailPromotion as _RetailPromotion on $projection.RetailPromotion = _RetailPromotion.RetailPromotion
association [0..1] to I_AllocTableBlockingReason as _AllocTableBlockingReason on $projection.AllocTblItmBlockReason = _AllocTableBlockingReason.AllocTblBlockReason
// Administrative data
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
{
@ObjectModel.foreignKey.association: '_AllocationTable'
key abeln as AllocationTable,
key abelp as AllocationTableItem,
rfktn as PurchaseContract,
rfktp as PurchaseContractItem,
cast(ebeln as vdm_purchaseorder preserving type) as PurchaseOrder,
cast ( case ebelp
when '00000' then '' else ebelp
end as ebelp ) as PurchaseOrderItem,
@ObjectModel.foreignKey.association: '_RetailPromotion'
aktnr as RetailPromotion,
@ObjectModel.foreignKey.association: '_Product'
cast(matnr as productnumber preserving type) as Product,
vzwrk as DistributionCenter,
@ObjectModel.foreignKey.association: '_Supplier'
lifnr as Supplier,
@Semantics.quantity.unitOfMeasure: 'QuantityUnit'
pmnge as PlannedQuantity,
@Semantics.quantity.unitOfMeasure: 'QuantityUnit'
imnge as ConfirmedQuantity,
@Semantics.unitOfMeasure: true
@ObjectModel.foreignKey.association: '_QuantityUnit'
aufme as QuantityUnit,
astra as AllocationStrategy,
@ObjectModel.foreignKey.association: '_MaterialGroup'
matkl as MaterialGroup,
vbeln as InboundDelivery,
vbelp as InboundDeliveryItem,
ervon as AllocTableCreatingApplication,
sapos as AllocTblItemOfConfigblProduct,
attyp as ArticleCategory,
@ObjectModel.foreignKey.association: '_AllocTableBlockingReason'
sperr as AllocTblItmBlockReason,
// Administrative Data
@Semantics.systemDate.createdAt: true
erdat as CreationDate,
ernam as CreatedByUser,
@Semantics.systemDate.lastChangedAt: true
aedat as LastChangeDate,
aenam as LastChangedByUser,
_CreatedByUser,
_LastChangedByUser,
_QuantityUnit,
_Supplier,
_Product,
_MaterialGroup,
_RetailPromotion,
_AllocTableBlockingReason,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT]
_AllocationTable,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_AllocTableItemSuplgDistrCtr,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_AllocationTableItemRcpntGrp
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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