I_MPPURCHASINGSOURCEITEM

CDS View

Source List Item

I_MPPURCHASINGSOURCEITEM is a CDS View in S/4HANA. Source List Item. It contains 39 fields. 13 CDS views read from this table.

CDS Views using this table (13)

ViewTypeJoinVDMDescription
A_PurchasingSource view from BASIC Purchasing Source Type
C_MPPurchasingSLGenerate view from CONSUMPTION Consumption View for Source List Generate records
C_PurchasingSourceItemDEX view from CONSUMPTION Data Extraction for Source List Item
CIC_SOURCE_LIST view_entity from CIC Source of Supply Type A: Source List
I_LoglProdAssgmtSuplrToStore view from COMPOSITE Logistical Product Supplier Store Assgmt
I_LoglProdAssgmtSupplierToDC view from COMPOSITE Logistical Product Supplier DC Assgmt
I_LoglProductAssgmtDCToDC view from COMPOSITE Logistical Product DC DC Assignment
I_LoglProductAssgmtDCToStore view from COMPOSITE Logistical Product DC Store Assignment
I_PurchasingSourceItem view from BASIC Purchasing Source list
P_DDMaterialSOS view left_outer CONSUMPTION
P_MPPurchasingSourceItem view from COMPOSITE
P_SourcesOfSupply view union COMPOSITE
R_PurchasingSourceListItemTP view_entity from TRANSACTIONAL Source List Item

Fields (39)

KeyField CDS FieldsUsed in Views
KEY Material Material,MaterialForEdit 9
KEY Plant Plant,PlantForEdit 5
KEY PurchasingOrganization PurchasingOrganization 9
KEY SourceListRecord SourceListRecord,SourceListRecordForEdit 8
_LogicalSystem _LogicalSystem 2
_Material _Material 1
_MaterialPlanningUsage_SL _MaterialPlanningUsage_SL 1
_MPPurchasingSource _MPPurchasingSource 1
_MPPurchasingSourceStatus _MPPurchasingSourceStatus 1
_Plant _Plant 1
_PurchaseContract _PurchaseContract 2
_PurchaseContractItem _PurchaseContractItem 2
_PurchasingOrganization _PurchasingOrganization 2
_Supplier _Supplier 1
_SupplyingPlant _SupplyingPlant 1
_UnitOfMeasure _UnitOfMeasure 2
CreatedByUserName CreatedByUserName 4
CreationDate CreationDate 5
InventorySpecialStockType InventorySpecialStockType 3
IssgPlantIsFixed IssgPlantIsFixed 4
LastChangeDateTime LastChangeDateTime 7
ManufacturerMaterial ManufacturerMaterial 4
MRPArea MRPArea 3
MRPSourcingControl MRPSourcingControl 4
OrderQuantityUnit OrderQuantityUnit 4
OriginSystem OriginSystem 3
PurchaseOutlineAgreement PurchaseOutlineAgreement,SourceDocument 5
PurchaseOutlineAgreementItem PurchaseOutlineAgreementItem,SourceDocumentItem 5
PurchasingDocumentCategory PurchasingDocumentCategory 3
PurOutlineAgreementIsFixed PurOutlineAgreementIsFixed 4
SourceListRecordCategory SourceListRecordCategory 3
SourceListStatus SourceListStatus 2
SourceOfSupplyIsBlocked SourceOfSupplyIsBlocked 4
SourceOfSupplyIsFixed SourceOfSupplyIsFixed 2
Supplier Supplier 4
SupplierIsFixed SupplierIsFixed 4
SupplyingPlant SupplyingPlant 4
ValidityEndDate ValidityEndDate 5
ValidityStartDate ValidityStartDate 5
@AbapCatalog.sqlViewName: 'IMPPRSRCITM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Source List Item'
@VDM.viewType: #BASIC
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]

define view I_MPPurchasingSourceItem
  as select from eord

  association [1..1] to I_MPPurchasingSource       as _MPPurchasingSource       on  $projection.Material = _MPPurchasingSource.Material
                                                                                and $projection.Plant    = _MPPurchasingSource.Plant

  association [1..1] to I_Material                 as _Material                 on  $projection.Material = _Material.Material

  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_PurchaseContract         as _PurchaseContract         on  $projection.PurchaseOutlineAgreement = _PurchaseContract.PurchaseContract

  association [0..1] to I_PurchaseContractItem     as _PurchaseContractItem     on  $projection.PurchaseOutlineAgreement     = _PurchaseContractItem.PurchaseContract
                                                                                and $projection.PurchaseOutlineAgreementItem = _PurchaseContractItem.PurchaseContractItem

  association [0..1] to I_Plant                    as _SupplyingPlant           on  $projection.SupplyingPlant = _SupplyingPlant.Plant

  association [1..1] to I_PurchasingOrganization   as _PurchasingOrganization   on  $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization

  association [0..1] to I_MaterialPlanningUsage_SL as _MaterialPlanningUsage_SL on  $projection.MRPSourcingControl = _MaterialPlanningUsage_SL.MRPSourcingControl

  association [0..1] to I_MPPurchasingSourceStatus as _MPPurchasingSourceStatus on  $projection.SourceListStatus = _MPPurchasingSourceStatus.SourceListStatus

  association [1..1] to I_UnitOfMeasure            as _UnitOfMeasure            on  $projection.OrderQuantityUnit = _UnitOfMeasure.UnitOfMeasure

  association [0..1] to I_LogicalSystem            as _LogicalSystem            on  $projection.OriginSystem = _LogicalSystem.LogicalSystem

{
      //      //--[ GENERATED:012:GlBfhyJl7jY4iqjegx09IG

      //      @Consumption.valueHelpDefinition: [

      //        { entity:  { name:    'I_MaterialStdVH',

      //                     element: 'Material' }

      //        }]

      //      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_Material'
  key matnr                      as Material,

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

  key zeord                      as SourceListRecord,

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

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

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

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

      //      //--[ GENERATED:012:GlBfhyJl7jY4iqjegx09IG

      //      @Consumption.valueHelpDefinition: [

      //        { entity:  { name:    'I_Supplier_Vh',

      //                     element: 'Supplier' }

      //        }]

      //      // ]--GENERATED

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

      flifn                      as SupplierIsFixed,

      //      //--[ GENERATED:012:GlBfhyJl7jY4iqjegx09IG

      //      @Consumption.valueHelpDefinition: [

      //        { entity:  { name:    'I_PurchaseContractStdVH',

      //                     element: 'PurchaseContract' }

      //        }]

      //      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_PurchaseContract'
      ebeln                      as PurchaseOutlineAgreement,

      ebelp                      as PurchaseOutlineAgreementItem,

      febel                      as PurOutlineAgreementIsFixed,

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

      fresw                      as IssgPlantIsFixed,

      ematn                      as ManufacturerMaterial,

      notkz                      as SourceOfSupplyIsBlocked,

      cast( '' as flag )         as SourceOfSupplyIsFixed,

      @ObjectModel.foreignKey.association: '_MPPurchasingSourceStatus'
      cast( '' as sl_status )    as SourceListStatus,

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

      vrtyp                      as PurchasingDocumentCategory,

      eortp                      as SourceListRecordCategory,

      @ObjectModel.foreignKey.association: '_MaterialPlanningUsage_SL'
      autet                      as MRPSourcingControl,

      cast('' as abap.char(10) ) as MRPArea,

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

      @ObjectModel.foreignKey.association: '_LogicalSystem'
      logsy                      as OriginSystem,

      sobkz                      as InventorySpecialStockType,

      lastchangedatetime         as LastChangeDateTime,

      _MPPurchasingSource,

      /*Exposed Associations*/
      _Material,
      _Plant,
      _Supplier,
      _PurchaseContract,
      _PurchaseContractItem,
      _SupplyingPlant,
      _PurchasingOrganization,
      _MaterialPlanningUsage_SL,
      _MPPurchasingSourceStatus,
      _UnitOfMeasure,
      _LogicalSystem

}
where
     _Supplier.IsBusinessPurposeCompleted = ''
  or _Supplier.IsBusinessPurposeCompleted is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SUPPLIER",
"EORD"
],
"ASSOCIATED":
[
"I_LOGICALSYSTEM",
"I_MATERIAL",
"I_MATERIALPLANNINGUSAGE_SL",
"I_MPPURCHASINGSOURCE",
"I_MPPURCHASINGSOURCESTATUS",
"I_PLANT",
"I_PURCHASECONTRACT",
"I_PURCHASECONTRACTITEM",
"I_PURCHASINGORGANIZATION",
"I_SUPPLIER",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/