Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

C_PurDocListPODtl

DDL: C_PURDOCLISTPODTL SQL: CDOCLPODTL Type: view

Purchase Order Details

C_PurDocListPODtl is a CDS View that provides data about "Purchase Order Details" in SAP S/4HANA. It has 14 associations to related views.

Associations (14)

CardinalityTargetAliasCondition
[0..*] I_CountryText _CountryName $projection.SupplierAddressCountry = _CountryName.Country
[0..1] C_Purdoclistsuppaddr _Sup_addr $projection.supplier = _Sup_addr.Supplier
[0..*] I_MaterialText _MatText $projection.Material = _MatText.Material
[0..1] I_BusinessPartner _ServicePerformer $projection.ServicePerformer = _ServicePerformer.BusinessPartner
[0..*] I_MaterialGroupText _MatGroupText $projection.MaterialGroup = _MatGroupText.MaterialGroup
[0..1] dd07t _StatusText $projection.status = _StatusText.domvalue_l and _StatusText.domname = 'MMPUR_DOC_STATUS' and _StatusText.as4local = 'A'
[0..1] E_PurchasingDocument _HeaderExtension $projection.PurchaseOrder = _HeaderExtension.PurchasingDocument
[0..1] E_PurchasingDocumentItem _Extension $projection.PurchaseOrder = _Extension.PurchasingDocument and $projection.PurchaseOrderItem = _Extension.PurchasingDocumentItem
[0..1] I_PurchaseOrderItemRelevance _OvdPoAvgRel $projection.PurchaseOrder = _OvdPoAvgRel.PurchaseOrder and $projection.PurchaseOrderItem = _OvdPoAvgRel.PurchaseOrderItem
[1..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant
[0..*] I_PurgDocumentItemCategoryText _ItemCategoryText $projection.PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory
[0..*] I_AcctAssignmentCategoryText _AcctAssignmentCategoryText $projection.AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory
[0..*] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.purchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory
[1..1] I_CostCenterText _CCText _CCText.CostCenter = $projection.CostCenter and _CCText.ControllingArea = $projection.ControllingArea and _CCText.Language = $session.system_language and _CCText.ValidityStartDate <= $session.system_date and _CCText.ValidityEndDate >= $session.system_date

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.sqlViewName CDOCLPODTL view
EndUserText.label Purchase Order Details view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.lifecycle.status #DEPRECATED view

Fields (85)

KeyFieldSource TableSource FieldDescription
PurchaseOrder
KEY PurchaseOrderItem poall PurchaseOrderItem Purchasing Document Item
KEY AccountAssignmentNumber poall AccountAssignmentNumber Account Assgmt No.
SupplierAddressCity _Sup_addr SupplierAddressCity
PurchaseOrderItemText poall PurchaseOrderItemText Short Text
Material poall Material Vehicle Model
MaterialGroup poall MaterialGroup Product Group
Plant poall Plant Valuation Area
BaseUnit poall BaseUnit Unit of Measure
StorageLocation poall StorageLocation StorageLocation
CompanyCode poall CompanyCode Receiver Company Code
PurchaseOrderQuantityUnit poall PurchaseOrderQuantityUnit Order Unit
PurchaseOrderPriceUnit poall PurchaseOrderPriceUnit Order Price Un.
AcctAssignmentCategory poall AcctAssignmentCategory Acct Assgmt Cat
IsDeletedItem poall IsDeletedItem
ManufacturerMaterial poall ManufacturerMaterial MPN: Material
MfrPartNumber poall MfrPartNumber
PurchaseOrderQty poall PurchaseOrderQty Purchase Order Quantity
PurchaseOrderNetPriceQuantity poall PurchaseOrderNetPriceQuantity
PurchaseOrderNetPriceAmount poall PurchaseOrderNetPriceAmount
PurchaseOrderNetAmount poall PurchaseOrderNetAmount Net Value
PurchaseOrderItemCategory poall PurchaseOrderItemCategory Item Category
ItemIsStatistical poall ItemIsStatistical
IsReturnsItem poall IsReturnsItem Returns Item
OrderItemQtyToBaseQtyDnmntr poall OrderItemQtyToBaseQtyDnmntr Denominator
OrderItemQtyToBaseQtyNmrtr poall OrderItemQtyToBaseQtyNmrtr Equal To
IsCompletelyDelivered poall IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced poall IsFinallyInvoiced Final Invoice
GoodsReceiptIsExpected poall GoodsReceiptIsExpected Goods Receipt
InvoiceIsGoodsReceiptBased poall InvoiceIsGoodsReceiptBased GR-Based IV
InvoiceIsExpected poall InvoiceIsExpected Invoice Receipt
ServicePerformer poall ServicePerformer Service Performer
ServicePerformerName _ServicePerformer BusinessPartnerName Extracted Customer Name
WorkItem
WBSElementExternalID
SalesOrder poall SalesOrder SD Document
SalesOrderItem poall SalesOrderItem Sales Order Item
WorkPackageFullName
WBSDescription poall WBSDescription WBS Element Name
CostCenter poall CostCenter Cost Center
CostCenterName _CCText CostCenterName Name
ControllingArea poall ControllingArea Controlling Area
dec95asExchangeRate
PurchasingDocumentCategory
purchasingDocumentType poall purchasingDocumentType RFQ Type
LastChangeDate poall LastChangeDate Time Stamp
CreatedByUser poall CreatedByUser User Name
PaymentTerms poall PaymentTerms Pyt Terms
PurchasingOrganization poall PurchasingOrganization Purchasing Organization
PurchasingGroup poall PurchasingGroup Purchasing Group
Currency poall Currency Valuation Crcy
PurchaseOrderDate poall PurchaseOrderDate PO Date
DeliveryDate poall DeliveryDate Delivery Date
SupplyingPlant poall SupplyingPlant Supplying Plant
SupplyingPlantName _SupplyingPlant PlantName Plant Name
IsDeletedHeader poall IsDeletedHeader
SupplyingVendorName poall SupplyingVendorName Name
PurchasingGroupName poall PurchasingGroupName Purchasing Grp. Name
PurchasingOrganizationName poall PurchasingOrganizationName Purch. Org. Name
CompanyCodeName poall CompanyCodeName Company Name
PlantName poall PlantName Plant Name
GoodsReceiptQuantity poall GoodsReceiptQuantity Delivered
GoodsReceiptValue poall GoodsReceiptValue
InvoiceReceiptQuantity poall InvoiceReceiptQuantity
InvoiceReceiptValue poall InvoiceReceiptValue
DocumentCurrency poall DocumentCurrency Document Currency
qtymismatch poall qtymismatch
confmiss poall confmiss
wesbs poall wesbs GR Bl.St. OUn
postgr poall GoodsReceiptIsExpected Goods Receipt
cntk
cntl
releasevalue
SupplierName poall sosname
IsEndOfPurposeBlocked poall IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
_CountryName _CountryName
_MatText _MatText
_MatGroupText _MatGroupText
_StatusText _StatusText
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_OvdPoAvgRel _OvdPoAvgRel
_ItemCategoryText _ItemCategoryText
_AcctAssignmentCategoryText _AcctAssignmentCategoryText
_HeaderExtension _HeaderExtension
_Extension _Extension

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 C_PurDocListPODtl.
-- 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: CDOCLPODTL

CREATE VIEW C_PurDocListPODtl AS
SELECT
  poall.PurchaseOrderItem AS PurchaseOrderItem,
  poall.AccountAssignmentNumber AS AccountAssignmentNumber,
  _Sup_addr.SupplierAddressCity AS SupplierAddressCity,
  poall.PurchaseOrderItemText AS PurchaseOrderItemText,
  poall.Material AS Material,
  poall.MaterialGroup AS MaterialGroup,
  poall.Plant AS Plant,
  poall.BaseUnit AS BaseUnit,
  poall.StorageLocation AS StorageLocation,
  poall.CompanyCode AS CompanyCode,
  poall.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
  poall.PurchaseOrderPriceUnit AS PurchaseOrderPriceUnit,
  poall.AcctAssignmentCategory AS AcctAssignmentCategory,
  poall.IsDeletedItem AS IsDeletedItem,
  poall.ManufacturerMaterial AS ManufacturerMaterial,
  poall.MfrPartNumber AS MfrPartNumber,
  poall.PurchaseOrderQty AS PurchaseOrderQty,
  poall.PurchaseOrderNetPriceQuantity AS PurchaseOrderNetPriceQuantity,
  poall.PurchaseOrderNetPriceAmount AS PurchaseOrderNetPriceAmount,
  poall.PurchaseOrderNetAmount AS PurchaseOrderNetAmount,
  poall.PurchaseOrderItemCategory AS PurchaseOrderItemCategory,
  poall.ItemIsStatistical AS ItemIsStatistical,
  poall.IsReturnsItem AS IsReturnsItem,
  poall.OrderItemQtyToBaseQtyDnmntr AS OrderItemQtyToBaseQtyDnmntr,
  poall.OrderItemQtyToBaseQtyNmrtr AS OrderItemQtyToBaseQtyNmrtr,
  poall.IsCompletelyDelivered AS IsCompletelyDelivered,
  poall.IsFinallyInvoiced AS IsFinallyInvoiced,
  poall.GoodsReceiptIsExpected AS GoodsReceiptIsExpected,
  poall.InvoiceIsGoodsReceiptBased AS InvoiceIsGoodsReceiptBased,
  poall.InvoiceIsExpected AS InvoiceIsExpected,
  poall.ServicePerformer AS ServicePerformer,
  _ServicePerformer.BusinessPartnerName AS ServicePerformerName,
  cast('' as abap.char(10)) AS WorkItem,
  COALESCE( poall.WBSElementExternalID, '') AS WBSElementExternalID,
  poall.SalesOrder AS SalesOrder,
  poall.SalesOrderItem AS SalesOrderItem,
  COALESCE( poall.WorkPackageFullName, '') AS WorkPackageFullName,
  poall.WBSDescription AS WBSDescription,
  poall.CostCenter AS CostCenter,
  _CCText.CostCenterName AS CostCenterName,
  poall.ControllingArea AS ControllingArea,
  cast ('F' as abap.char( 1 )) AS PurchasingDocumentCategory,
  poall.purchasingDocumentType AS purchasingDocumentType,
  poall.LastChangeDate AS LastChangeDate,
  poall.CreatedByUser AS CreatedByUser,
  poall.PaymentTerms AS PaymentTerms,
  poall.PurchasingOrganization AS PurchasingOrganization,
  poall.PurchasingGroup AS PurchasingGroup,
  poall.Currency AS Currency,
  poall.PurchaseOrderDate AS PurchaseOrderDate,
  poall.DeliveryDate AS DeliveryDate,
  poall.SupplyingPlant AS SupplyingPlant,
  _SupplyingPlant.PlantName AS SupplyingPlantName,
  poall.IsDeletedHeader AS IsDeletedHeader,
  poall.SupplyingVendorName AS SupplyingVendorName,
  poall.PurchasingGroupName AS PurchasingGroupName,
  poall.PurchasingOrganizationName AS PurchasingOrganizationName,
  poall.CompanyCodeName AS CompanyCodeName,
  poall.PlantName AS PlantName,
  poall.GoodsReceiptQuantity AS GoodsReceiptQuantity,
  poall.GoodsReceiptValue AS GoodsReceiptValue,
  poall.InvoiceReceiptQuantity AS InvoiceReceiptQuantity,
  poall.InvoiceReceiptValue AS InvoiceReceiptValue,
  poall.DocumentCurrency AS DocumentCurrency,
  poall.qtymismatch AS qtymismatch,
  poall.confmiss AS confmiss,
  poall.wesbs AS wesbs,
  poall.GoodsReceiptIsExpected AS postgr,
  cast(0 as abap.int4) AS cntk,
  cast(0 as abap.int4) AS cntl,
  cast(0 as abap.curr(19,2)) AS releasevalue,
  poall.sosname AS SupplierName,
  poall.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked
LEFT OUTER JOIN I_CountryText AS _CountryName ON SupplierAddressCountry = _CountryName.Country  -- association [0..*]
LEFT OUTER JOIN C_Purdoclistsuppaddr AS _Sup_addr ON supplier = _Sup_addr.Supplier  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MatText ON Material = _MatText.Material  -- association [0..*]
LEFT OUTER JOIN I_BusinessPartner AS _ServicePerformer ON ServicePerformer = _ServicePerformer.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroupText AS _MatGroupText ON MaterialGroup = _MatGroupText.MaterialGroup  -- association [0..*]
LEFT OUTER JOIN dd07t AS _StatusText ON status = _StatusText.domvalue_l AND _StatusText.domname = 'MMPUR_DOC_STATUS' AND _StatusText.as4local = 'A'  -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocument AS _HeaderExtension ON PurchaseOrder = _HeaderExtension.PurchasingDocument  -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _Extension ON PurchaseOrder = _Extension.PurchasingDocument AND PurchaseOrderItem = _Extension.PurchasingDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItemRelevance AS _OvdPoAvgRel ON PurchaseOrder = _OvdPoAvgRel.PurchaseOrder AND PurchaseOrderItem = _OvdPoAvgRel.PurchaseOrderItem  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_PurgDocumentItemCategoryText AS _ItemCategoryText ON PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory  -- association [0..*]
LEFT OUTER JOIN I_AcctAssignmentCategoryText AS _AcctAssignmentCategoryText ON AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory  -- association [0..*]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON purchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType AND PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory  -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CCText ON _CCText.CostCenter = CostCenter AND _CCText.ControllingArea = ControllingArea AND _CCText.Language = $session.system_language AND _CCText.ValidityStartDate <= $session.system_date AND _CCText.ValidityEndDate >= $session.system_date  -- association [1..1]
;