I_PurchasingDocumentItem

DDL: I_PURCHASINGDOCUMENTITEM SQL: IMMPURGDOCITEM Type: view BASIC

Purchasing Document Item

I_PurchasingDocumentItem is a Basic CDS View that provides data about "Purchasing Document Item" in SAP S/4HANA. It reads from 1 data source (ekpo). It has 41 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ekpo ekpo from

Associations (41)

CardinalityTargetAliasCondition
[1..1] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[0..*] I_PurgDocScheduleLine _ScheduleLine $projection.PurchasingDocument = _ScheduleLine.PurchasingDocument and $projection.PurchasingDocumentItem = _ScheduleLine.PurchasingDocumentItem
[0..1] I_Purchaserequisition _PurchaseRequisition $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
[0..1] I_Purchaserequisitionitem _PurchaseRequisitionItem $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
[0..1] I_PurchaseContract _PurchaseContract $projection.PurchaseContract = _PurchaseContract.PurchaseContract
[0..1] I_PurchaseContractItem _PurchaseContractItem $projection.PurchaseContract = _PurchaseContractItem.PurchaseContract and $projection.PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem
[0..1] I_PurchasingInfoRecordApi01 _PurchasingInfoRecord $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Material _ManufacturerMaterial $projection.ManufacturerMaterial = _ManufacturerMaterial.Material
[0..1] I_Material _ConfigurableProduct $projection.CrossPlantConfigurableProduct = _ConfigurableProduct.Material
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _WeightUnit $projection.WeightUnit = _WeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderPriceUnit $projection.OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure
[0..1] I_Address _ManualDeliveryAddress $projection.ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID
[0..1] I_Address _ReferenceDeliveryAddress $projection.ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID
[0..1] I_PurchasingDocumentCategory _PurgDocumentCategory $projection.PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory
[0..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[0..1] I_Supplier _Manufacturer $projection.Manufacturer = _Manufacturer.Supplier
[0..1] I_Supplier _Subcontractor $projection.Subcontractor = _Subcontractor.Supplier
[0..1] I_Supplier _PriorSupplier $projection.PriorSupplier = _PriorSupplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_IncotermsClassification _IncotermsClassification $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification
[0..1] I_BusinessPartner _ServicePerformer $projection.ServicePerformer = _ServicePerformer.BusinessPartner
[0..1] I_ProductTypeCode _ProductType $projection.ProductType = _ProductType.ProductTypeCode
[0..1] I_ProductCategory _ProductCategory $projection.ArticleCategory = _ProductCategory.ProductCategory
[0..1] I_AccountAssignmentCategory _AccountAssignmentCategory $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory
[0..1] I_ConsumptionPosting _ConsumptionPosting $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting
[0..1] I_AllocationTable _AllocationTable $projection.AllocationTable = _AllocationTable.AllocationTable
[0..1] I_AllocationTableItem _AllocationTableItem $projection.AllocationTableItem = _AllocationTableItem.AllocationTableItem and $projection.AllocationTable = _AllocationTableItem.AllocationTable
[0..1] I_RetailPromotion _RetailPromotion $projection.RetailPromotion = _RetailPromotion.RetailPromotion
[0..1] E_PurchasingDocumentItem _ItemExtension $projection.PurchasingDocument = _ItemExtension.PurchasingDocument and $projection.PurchasingDocumentItem = _ItemExtension.PurchasingDocumentItem ----Brazil Extension Associations
[0..1] I_BR_MaterialOrigin _BR_MaterialOrigin _BR_MaterialOrigin.BR_MaterialOrigin = $projection.BR_MaterialOrigin
[0..1] I_BR_MaterialUsage _BR_MaterialUsage _BR_MaterialUsage.BR_MaterialUsage = $projection.BR_MaterialUsage
[0..1] I_BR_CFOPCategory _BR_CFOPCategory _BR_CFOPCategory.BR_CFOPCategory = $projection.BR_CFOPCategory
[0..1] I_BR_NCM _BR_NCM _BR_NCM.CountryCode = 'BR' and _BR_NCM.BR_NCM = $projection.BR_NCM

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchasing Document Item view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMMPURGDOCITEM view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey PurchasingDocumentItem view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

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 I_PurchasingDocumentItem.
-- 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: IMMPURGDOCITEM

CREATE VIEW I_PurchasingDocumentItem AS
SELECT *  -- field list not available in parsed metadata
FROM ekpo
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurgDocScheduleLine AS _ScheduleLine ON PurchasingDocument = _ScheduleLine.PurchasingDocument AND PurchasingDocumentItem = _ScheduleLine.PurchasingDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_Purchaserequisition AS _PurchaseRequisition ON PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition  -- association [0..1]
LEFT OUTER JOIN I_Purchaserequisitionitem AS _PurchaseRequisitionItem ON PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContract AS _PurchaseContract ON PurchaseContract = _PurchaseContract.PurchaseContract  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItem AS _PurchaseContractItem ON PurchaseContract = _PurchaseContractItem.PurchaseContract AND PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem  -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecordApi01 AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_Material AS _ManufacturerMaterial ON ManufacturerMaterial = _ManufacturerMaterial.Material  -- association [0..1]
LEFT OUTER JOIN I_Material AS _ConfigurableProduct ON CrossPlantConfigurableProduct = _ConfigurableProduct.Material  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _WeightUnit ON WeightUnit = _WeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderPriceUnit ON OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Address AS _ManualDeliveryAddress ON ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_Address AS _ReferenceDeliveryAddress ON ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurgDocumentCategory ON PurchasingDocumentCategory = _PurgDocumentCategory.PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Manufacturer ON Manufacturer = _Manufacturer.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Subcontractor ON Subcontractor = _Subcontractor.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _PriorSupplier ON PriorSupplier = _PriorSupplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _ServicePerformer ON ServicePerformer = _ServicePerformer.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductType ON ProductType = _ProductType.ProductTypeCode  -- association [0..1]
LEFT OUTER JOIN I_ProductCategory AS _ProductCategory ON ArticleCategory = _ProductCategory.ProductCategory  -- association [0..1]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory  -- association [0..1]
LEFT OUTER JOIN I_ConsumptionPosting AS _ConsumptionPosting ON ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting  -- association [0..1]
LEFT OUTER JOIN I_AllocationTable AS _AllocationTable ON AllocationTable = _AllocationTable.AllocationTable  -- association [0..1]
LEFT OUTER JOIN I_AllocationTableItem AS _AllocationTableItem ON AllocationTableItem = _AllocationTableItem.AllocationTableItem AND AllocationTable = _AllocationTableItem.AllocationTable  -- association [0..1]
LEFT OUTER JOIN I_RetailPromotion AS _RetailPromotion ON RetailPromotion = _RetailPromotion.RetailPromotion  -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _ItemExtension ON PurchasingDocument = _ItemExtension.PurchasingDocument AND PurchasingDocumentItem = _ItemExtension.PurchasingDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialOrigin AS _BR_MaterialOrigin ON _BR_MaterialOrigin.BR_MaterialOrigin = BR_MaterialOrigin  -- association [0..1]
LEFT OUTER JOIN I_BR_MaterialUsage AS _BR_MaterialUsage ON _BR_MaterialUsage.BR_MaterialUsage = BR_MaterialUsage  -- association [0..1]
LEFT OUTER JOIN I_BR_CFOPCategory AS _BR_CFOPCategory ON _BR_CFOPCategory.BR_CFOPCategory = BR_CFOPCategory  -- association [0..1]
LEFT OUTER JOIN I_BR_NCM AS _BR_NCM ON _BR_NCM.CountryCode = 'BR' AND _BR_NCM.BR_NCM = BR_NCM  -- association [0..1]
;