I_AllocationTable

DDL: I_ALLOCATIONTABLE SQL: IALLOCATIONTABLE Type: view BASIC Package: VDM_RFM_ALLOCATION_TABLE

Allocation Table

I_AllocationTable is a Basic CDS View that provides data about "Allocation Table" in SAP S/4HANA. It reads from 1 data source (auko) and exposes 23 fields with key field AllocationTable. It has 11 associations to related views. Part of development package VDM_RFM_ALLOCATION_TABLE.

Data Sources (1)

SourceAliasJoin Type
auko auko from

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_AllocationTableType _AllocationTableType $projection.AllocationTableType = _AllocationTableType.AllocationTableType
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_AllocTableActivityStatus _AllocTableActivityStatus $projection.AllocTableActivityStatus = _AllocTableActivityStatus.AllocTableActivityStatus
[1..1] I_AllocTableMaintenanceStatus _AllocTableMaintenanceStatus $projection.MaintenanceStatus = _AllocTableMaintenanceStatus.MaintenanceStatus
[1..1] I_AllocTableCreatingAppl _CreatingApplication $projection.AllocTableCreatingApplication = _CreatingApplication.AllocTableCreatingApplication
[0..*] I_AllocationTableItem _AllocationTableItem $projection.AllocationTable = _AllocationTableItem.AllocationTable
[0..1] I_AllocationTableDeliveryPhase _DefaultDeliveryPhase $projection.AllocationTable = _DefaultDeliveryPhase.AllocationTable and _DefaultDeliveryPhase.AllocationTableItem = '00000' and _DefaultDeliveryPhase.AllocationTableItemRcpntGrp = '00000' and _DefaultDeliveryPhase.AllocationTableItemRecipient = '00000' and _DefaultDeliveryPhase.AllocationTableDeliveryPhase = '001'
[0..1] I_AllocTableDistrCtrDelivPhase _DefaultDistrCtrDelivPhase $projection.AllocationTable = _DefaultDistrCtrDelivPhase.AllocationTable and _DefaultDistrCtrDelivPhase.AllocationTableItem = '00000' and _DefaultDistrCtrDelivPhase.AllocationTableDeliveryPhase = '001' and _DefaultDistrCtrDelivPhase.DistributionCenter = ''
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IALLOCATIONTABLE view
EndUserText.label Allocation Table view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey AllocationTable view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY AllocationTable abeln
AllocationTableDescription
AllocationTableType
PurchasingOrganization ekorg
PurchasingGroup ekgrp
AllocTableActivityStatus
MaintenanceStatus pstak
AllocTableCreatingApplication
CreationDate erdat
CreatedByUser ernam
LastChangeDate aedat
LastChangedByUser aenam
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_AllocationTableType _AllocationTableType
_CreatingApplication _CreatingApplication
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_AllocTableActivityStatus _AllocTableActivityStatus
_AllocTableMaintenanceStatus _AllocTableMaintenanceStatus
_AllocationTableItem _AllocationTableItem
_DefaultDeliveryPhase _DefaultDeliveryPhase
_DefaultDistrCtrDelivPhase _DefaultDistrCtrDelivPhase
@AbapCatalog.sqlViewName: 'IALLOCATIONTABLE'
@EndUserText.label: 'Allocation Table'

@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #BASIC
@ObjectModel: {
    compositionRoot: true,
    semanticKey: ['AllocationTable'],
    representativeKey: 'AllocationTable',
    usageType.serviceQuality: #A,
    usageType.sizeCategory: #L,
    usageType.dataClass: #TRANSACTIONAL
}

define view I_AllocationTable
  as select from auko

  association [1..1] to I_AllocationTableType          as _AllocationTableType         on  $projection.AllocationTableType = _AllocationTableType.AllocationTableType
  association [1..1] to I_PurchasingOrganization       as _PurchasingOrganization      on  $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
  association [1..1] to I_PurchasingGroup              as _PurchasingGroup             on  $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
  association [1..1] to I_AllocTableActivityStatus     as _AllocTableActivityStatus    on  $projection.AllocTableActivityStatus = _AllocTableActivityStatus.AllocTableActivityStatus
  association [1..1] to I_AllocTableMaintenanceStatus  as _AllocTableMaintenanceStatus on  $projection.MaintenanceStatus = _AllocTableMaintenanceStatus.MaintenanceStatus
  association [1..1] to I_AllocTableCreatingAppl       as _CreatingApplication         on  $projection.AllocTableCreatingApplication = _CreatingApplication.AllocTableCreatingApplication

  association [0..*] to I_AllocationTableItem          as _AllocationTableItem         on  $projection.AllocationTable = _AllocationTableItem.AllocationTable
  association [0..1] to I_AllocationTableDeliveryPhase as _DefaultDeliveryPhase        on  $projection.AllocationTable                        = _DefaultDeliveryPhase.AllocationTable
                                                                                       and _DefaultDeliveryPhase.AllocationTableItem          = '00000'
                                                                                       and _DefaultDeliveryPhase.AllocationTableItemRcpntGrp  = '00000'
                                                                                       and _DefaultDeliveryPhase.AllocationTableItemRecipient = '00000'
                                                                                       and _DefaultDeliveryPhase.AllocationTableDeliveryPhase = '001'
  association [0..1] to I_AllocTableDistrCtrDelivPhase as _DefaultDistrCtrDelivPhase   on  $projection.AllocationTable                             = _DefaultDistrCtrDelivPhase.AllocationTable
                                                                                       and _DefaultDistrCtrDelivPhase.AllocationTableItem          = '00000'
                                                                                       and _DefaultDistrCtrDelivPhase.AllocationTableDeliveryPhase = '001'
                                                                                       and _DefaultDistrCtrDelivPhase.DistributionCenter           = ''
  // 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.text.element: 'AllocationTableDescription'
  key abeln                                                          as AllocationTable,
      @Semantics.text:true
      cast( bezch as allocationtabledescription preserving type )    as AllocationTableDescription,

      @ObjectModel.foreignKey.association: '_AllocationTableType'
      cast( aufar as allocationtabletype preserving type )           as AllocationTableType,
      @ObjectModel.foreignKey.association: '_PurchasingOrganization'
      ekorg                                                          as PurchasingOrganization,
      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      ekgrp                                                          as PurchasingGroup,

      @ObjectModel.foreignKey.association: '_AllocTableActivityStatus'
      cast( astak as alloctableactivitystatus preserving type )      as AllocTableActivityStatus,
      @ObjectModel.foreignKey.association: '_AllocTableMaintenanceStatus'
      pstak                                                          as MaintenanceStatus,
      @ObjectModel.foreignKey.association: '_CreatingApplication'
      cast( ervon as alloctablecreatingapplication preserving type ) as AllocTableCreatingApplication,

      // Administrative Data

      @Semantics.systemDate.createdAt: true
      erdat                                                          as CreationDate,
      ernam                                                          as CreatedByUser,
      @Semantics.systemDate.lastChangedAt: true
      aedat                                                          as LastChangeDate,
      aenam                                                          as LastChangedByUser,
      _CreatedByUser,
      _LastChangedByUser,

      _AllocationTableType,
      _CreatingApplication,
      _PurchasingOrganization,
      _PurchasingGroup,
      _AllocTableActivityStatus,
      _AllocTableMaintenanceStatus,

      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _AllocationTableItem,
      _DefaultDeliveryPhase,
      _DefaultDistrCtrDelivPhase
}