C_PurchasingSourceItemDEX

DDL: C_PURCHASINGSOURCEITEMDEX SQL: CMMPPRSRCITMDEX Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Data Extraction for Source List Item

C_PurchasingSourceItemDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Source List Item" in SAP S/4HANA. It reads from 1 data source (I_MPPurchasingSourceItem) and exposes 37 fields with key fields Material, Plant, SourceListRecord. It has 9 associations to related views. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
I_MPPurchasingSourceItem I_MPPurchasingSourceItem from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant
[0..1] I_Product _ManufacturerMaterial $projection.ManufacturerMaterial = _ManufacturerMaterial.Product
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingDocumentCategory _PurchasingDocumentCategory $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory
[1..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_InventorySpecialStockType _InventorySpecialStockType $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CMMPPRSRCITMDEX view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Data Extraction for Source List Item view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
ObjectModel.sapObjectNodeType.name PurchasingSourceListItem view
ObjectModel.modelingPattern #ANALYTICAL_FACT view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY Material Material
KEY Plant Plant
KEY SourceListRecord SourceListRecord
CreationDate CreationDate
CreatedByUserName CreatedByUserName
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
Supplier Supplier
SupplierIsFixed SupplierIsFixed
PurchaseOutlineAgreement PurchaseOutlineAgreement
PurchaseOutlineAgreementItem PurchaseOutlineAgreementItem
PurOutlineAgreementIsFixed PurOutlineAgreementIsFixed
SupplyingPlant SupplyingPlant
IssgPlantIsFixed IssgPlantIsFixed
ManufacturerMaterial ManufacturerMaterial
SourceOfSupplyIsBlocked SourceOfSupplyIsBlocked
SourceOfSupplyIsFixed SourceOfSupplyIsFixed
SourceListStatus SourceListStatus
PurchasingOrganization PurchasingOrganization
PurchasingDocumentCategory PurchasingDocumentCategory
SourceListRecordCategory SourceListRecordCategory
MRPSourcingControl MRPSourcingControl
MRPArea MRPArea
OrderQuantityUnit OrderQuantityUnit
OriginSystem OriginSystem
InventorySpecialStockType InventorySpecialStockType
LastChangeDateTime LastChangeDateTime
_Product _Product
_Plant _Plant
_Supplier _Supplier
_PurchaseContract _PurchaseContract
_SupplyingPlant _SupplyingPlant
_ManufacturerMaterial _ManufacturerMaterial
_PurchasingOrganization _PurchasingOrganization
_PurchasingDocumentCategory _PurchasingDocumentCategory
_OrderQuantityUnit _OrderQuantityUnit
_InventorySpecialStockType _InventorySpecialStockType
@AbapCatalog.sqlViewName: 'CMMPPRSRCITMDEX'
@AbapCatalog.compiler.compareFilter: true
@AccessControl:{ authorizationCheck             : #CHECK,
                 personalData.blocking          : #BLOCKED_DATA_EXCLUDED
               }
@EndUserText.label: 'Data Extraction for Source List Item'

@ClientHandling.algorithm                       : #SESSION_VARIABLE
@ObjectModel :{ usageType.dataClass             : #TRANSACTIONAL,
                usageType.sizeCategory          : #L,
                usageType.serviceQuality        : #D,
                supportedCapabilities           : [ #EXTRACTION_DATA_SOURCE ]
              }
     
@VDM.viewType                                   : #CONSUMPTION

@Metadata.ignorePropagatedAnnotations           : true

@Analytics: { dataCategory                      : #FACT,
              dataExtraction: {
                enabled                         : true,
                delta.changeDataCapture         : {
                    mapping:[ { table           : 'eord', role: #MAIN,
                                viewElement     : ['Material', 'Plant','SourceListRecord'],
                                tableElement    : ['matnr','werks','zeord']
                              }
                            ]
                }
              }
}
@ObjectModel.sapObjectNodeType.name: 'PurchasingSourceListItem'
@ObjectModel.modelingPattern: #ANALYTICAL_FACT
define view C_PurchasingSourceItemDEX
  as select from I_MPPurchasingSourceItem

  association [1..1] to I_Product                    as _Product                    on  $projection.Material = _Product.Product

  association [1..1] to I_Plant                      as _Plant                      on  $projection.Plant = _Plant.Plant
  
  association [0..1] to I_Supplier                   as _Supplier                   on  $projection.Supplier = _Supplier.Supplier
  
  association [0..1] to I_Plant                      as _SupplyingPlant             on  $projection.SupplyingPlant = _SupplyingPlant.Plant
  
  association [0..1] to I_Product                    as _ManufacturerMaterial       on  $projection.ManufacturerMaterial = _ManufacturerMaterial.Product
  
  association [1..1] to I_PurchasingOrganization     as _PurchasingOrganization     on $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
  
  association [1..1] to I_PurchasingDocumentCategory as _PurchasingDocumentCategory on $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory
  
  association [1..1] to I_UnitOfMeasure              as _OrderQuantityUnit          on  $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
  
  association [0..1] to I_InventorySpecialStockType  as _InventorySpecialStockType  on  $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
{
       @ObjectModel.foreignKey.association: '_Product'
  key  Material                     as Material,

       @ObjectModel.foreignKey.association: '_Plant'
  key  Plant                        as Plant,

  key  SourceListRecord             as SourceListRecord,

       @Semantics.businessDate.createdAt: true
       CreationDate                 as CreationDate,

       @Semantics.user.createdBy: true
       CreatedByUserName            as CreatedByUserName,

       @Semantics.businessDate.from: true
       ValidityStartDate            as ValidityStartDate,

       @Semantics.businessDate.to: true
       ValidityEndDate              as ValidityEndDate,

       @ObjectModel.foreignKey.association: '_Supplier'
       Supplier                     as Supplier,

       SupplierIsFixed              as SupplierIsFixed,

       PurchaseOutlineAgreement     as PurchaseOutlineAgreement,
       
       PurchaseOutlineAgreementItem as PurchaseOutlineAgreementItem,
       
       PurOutlineAgreementIsFixed   as PurOutlineAgreementIsFixed,

       @ObjectModel.foreignKey.association: '_SupplyingPlant'
       SupplyingPlant               as SupplyingPlant,

       IssgPlantIsFixed             as IssgPlantIsFixed,

       @ObjectModel.foreignKey.association: '_ManufacturerMaterial'
       ManufacturerMaterial         as ManufacturerMaterial,

       SourceOfSupplyIsBlocked      as SourceOfSupplyIsBlocked,

       SourceOfSupplyIsFixed        as SourceOfSupplyIsFixed,

       SourceListStatus             as SourceListStatus,

       @ObjectModel.foreignKey.association: '_PurchasingOrganization'
       PurchasingOrganization       as PurchasingOrganization,

       @ObjectModel.foreignKey.association: '_PurchasingDocumentCategory'
       PurchasingDocumentCategory   as PurchasingDocumentCategory,

       SourceListRecordCategory     as SourceListRecordCategory,

       MRPSourcingControl           as MRPSourcingControl,

       @ObjectModel.sapObjectNodeTypeReference: 'MRPArea'
       MRPArea                      as MRPArea,

       @ObjectModel.foreignKey.association: '_OrderQuantityUnit'
       @Semantics.unitOfMeasure: true
       OrderQuantityUnit            as OrderQuantityUnit,

       OriginSystem                 as OriginSystem,

       @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
       InventorySpecialStockType    as InventorySpecialStockType,

       @Semantics.systemDateTime.lastChangedAt: true
       LastChangeDateTime           as LastChangeDateTime,
       
      _Product,
      _Plant,
      _Supplier,
      _PurchaseContract,
      _SupplyingPlant,
      _ManufacturerMaterial,
      _PurchasingOrganization,
      _PurchasingDocumentCategory,
      _OrderQuantityUnit,
      _InventorySpecialStockType
}