P_PurDocInfoNtwkGraph
Purchasing Document Information at Network Graph
P_PurDocInfoNtwkGraph is a Consumption CDS View that provides data about "Purchasing Document Information at Network Graph" in SAP S/4HANA. It reads from 2 data sources (I_SchedgAgrmtItm, I_PurchaseOrderItem) and exposes 118 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchasingDocumentItem. It has 3 associations to related views. Part of development package ODATA_MM_PUR_SUBCONTRGORD_MNTR.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SchedgAgrmtItm | _Item | union_all |
| I_PurchaseOrderItem | I_PurchaseOrderItem | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_POItemNextDeliveryCalc | _NextDeliveryCalc | $projection.PurchasingDocument = _NextDeliveryCalc.PurchaseOrder and $projection.PurchasingDocumentItem = _NextDeliveryCalc.PurchaseOrderItem |
| [0..1] | C_POItemQtyAndValueCalc | _QtyAndValueCalc | $projection.PurchasingDocument = _QtyAndValueCalc.PurchaseOrder and $projection.PurchasingDocumentItem = _QtyAndValueCalc.PurchaseOrderItem |
| [0..1] | C_SchedgAgrmtItmDelivCalc | _SchedgAgrmtItmDelivCalc | $projection.PurchasingDocument = _SchedgAgrmtItmDelivCalc.SchedulingAgreement and $projection.PurchasingDocumentItem = _SchedgAgrmtItmDelivCalc.SchedulingAgreementItem |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PURDOCINFONTWK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Purchasing Document Information at Network Graph | view |
Fields (118)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | PurchaseOrder | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchaseOrderItem | Schedule Item Number | |
| FormattedPurchasingDocItem | ||||
| PurchasingDocumentItemText | Short Text | |||
| Assembly | Vehicle Model | |||
| AssemblyName | ||||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| Subcontractor | ||||
| SubcontractorName | ||||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialGroupName | ||||
| AccountAssignmentCategory | Acct Assgmt Cat | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| PurchasingOrganization | ||||
| PurchasingOrganizationName | ||||
| PurchasingGroup | _PurchaseOrder | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | ||||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | ||||
| RequirementTracking | Tracking Number | |||
| PurchasingDocumentCategory | PurchaseOrderCategory | Doc. Category | ||
| PurchasingDocumentCategoryName | ||||
| PurchasingDocumentType | RFQ Type | |||
| PurchasingDocumentTypeName | Description | |||
| SchedAgrmtValidityStatus | ||||
| StatusDescription | ||||
| ValidityStartDate | Validity Start Date | |||
| ValidityEndDate | ValidTo | |||
| PurchaseOrderType | _PurchaseOrder | PurchaseOrderType | PO Type | |
| PurchaseOrderTypeName | ||||
| OrderQuantity | OrderQuantity | Target Quantity | ||
| NetAmount | NetAmount | Stated Amount | ||
| TargetAmount | Target Value | |||
| ReleasedQuantity | ||||
| ReleasedAmount | ||||
| GoodsReceiptQty | ||||
| GoodsReceiptAmountInCoCodeCrcy | ||||
| StillToBeDeliveredQuantity | ||||
| StillToBeDeliveredValue | ||||
| ScheduleLineDeliveryDate | ||||
| OpenPurchaseOrderQuantity | ||||
| DeliveryStatus | ||||
| DeliveryStatusDescription | ||||
| MaterialComponent | ||||
| MaterialName | ||||
| Supplier | ||||
| SupplierName | ||||
| ShippingStatus | ||||
| ShippingStatusText | ||||
| RequirementDate | ||||
| RequiredQuantity | ||||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Sales Unit | ||
| BaseUnit | PurchaseOrderQuantityUnit | Sales Unit | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| SupplierIsSubcontractor | SupplierIsSubcontractor | SC Supplier | ||
| DifferenceInDays | ||||
| KEY | PurchasingDocumentItem | SchedulingAgreementItem | Schedule Item Number | |
| FormattedPurchasingDocItem | ||||
| PurchasingDocumentItemText | Short Text | |||
| Assembly | Vehicle Model | |||
| AssemblyName | ||||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| Subcontractor | ||||
| SubcontractorName | ||||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialGroupName | ||||
| AccountAssignmentCategory | Acct Assgmt Cat | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| PurchasingOrganization | ||||
| PurchasingOrganizationName | ||||
| PurchasingGroup | _Schedgagrmthdr | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | ||||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | ||||
| RequirementTracking | Tracking Number | |||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentCategoryName | ||||
| PurchasingDocumentType | _Schedgagrmthdr | PurchasingDocumentType | RFQ Type | |
| PurchasingDocumentTypeName | _Schedgagrmthdr | PurchasingDocumentTypeName | Description | |
| SchedAgrmtValidityStatus | ||||
| StatusDescription | ||||
| ValidityStartDate | _Schedgagrmthdr | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | _Schedgagrmthdr | ValidityEndDate | ValidTo | |
| PurchaseOrderType | PO Type | |||
| PurchaseOrderTypeName | ||||
| OrderQuantity | TargetQuantity | Target Quantity | ||
| NetAmount | _SchedgAgrmtItmDelivCalc | NetAmount | Stated Amount | |
| TargetAmount | _Schedgagrmthdr | TargetAmount | Target Value | |
| ReleasedQuantity | ||||
| ReleasedAmount | ||||
| GoodsReceiptQty | ||||
| GoodsReceiptAmountInCoCodeCrcy | ||||
| StillToBeDeliveredQuantity | ||||
| StillToBeDeliveredValue | ||||
| ScheduleLineDeliveryDate | ||||
| OpenPurchaseOrderQuantity | ||||
| DeliveryStatus | ||||
| DeliveryStatusDescription | ||||
| MaterialComponent | ||||
| MaterialName | ||||
| Supplier | ||||
| SupplierName | ||||
| ShippingStatus | ||||
| ShippingStatusText | ||||
| RequirementDate | ||||
| RequiredQuantity | ||||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchaseOrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| BaseUnit | OrderQuantityUnit | Sales Unit | ||
| PurchaseOrderItemCategory | Item Category | |||
| SupplierIsSubcontractor | SupplierIsSubcontractor | SC Supplier | ||
| DifferenceInDays | _SchedgAgrmtItmDelivCalc | DifferenceInDays | ||
| MRPArea | MRPArea | MRP Area |
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 P_PurDocInfoNtwkGraph.
-- 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: PURDOCINFONTWK
CREATE VIEW P_PurDocInfoNtwkGraph AS
SELECT
PurchaseOrder AS PurchasingDocument,
PurchaseOrderItem AS PurchasingDocumentItem,
cast(concat(concat(PurchaseOrder, '/'), PurchaseOrderItem) as vdm_formattedpurchasedocitm ) AS FormattedPurchasingDocItem,
cast(PurchaseOrderItemText as farp_pa_sgtxt) AS PurchasingDocumentItemText,
cast(Material as bagrp) AS Assembly,
_Material._Text[1: Language = $session.system_language].MaterialName AS AssemblyName,
Plant,
_Plant.PlantName AS PlantName,
cast(_PurchaseOrder.Supplier as vdm_subcontractor) AS Subcontractor,
_PurchaseOrder._Supplier.SupplierName AS SubcontractorName,
MaterialGroup,
cast( _MaterialGroup._Text[1: Language = $session.system_language ].MaterialGroupName as ps_s4_wgbez ) AS MaterialGroupName,
cast(AccountAssignmentCategory as knttp_ll preserving type) AS AccountAssignmentCategory,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
cast (_PurchaseOrder.PurchasingOrganization as ekorg_ll) AS PurchasingOrganization,
cast ( _PurchaseOrder._PurchasingOrganization.PurchasingOrganizationName as vdm_purchasingorgname) AS PurchasingOrganizationName,
_PurchaseOrder.PurchasingGroup AS PurchasingGroup,
cast (_PurchaseOrder._PurchasingGroup.PurchasingGroupName as vdm_purchasinggroupname) AS PurchasingGroupName,
StorageLocation,
cast (_StorageLocation.StorageLocationName as ps_s4_lgort_name ) AS StorageLocationName,
cast(RequirementTracking as rqmttrckgnmbr_ll) AS RequirementTracking,
PurchaseOrderCategory AS PurchasingDocumentCategory,
_PurgDocumentCategory._Text[1: Language = $session.system_language].PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName,
cast ('' as bsart) AS PurchasingDocumentType,
cast ('' as batxt) AS PurchasingDocumentTypeName,
cast ('' as abap.char(10)) AS SchedAgrmtValidityStatus,
cast ('' as abap.char(10)) AS StatusDescription,
cast ('00000000' as kdatb) AS ValidityStartDate,
cast ('00000000' as kdate) AS ValidityEndDate,
_PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
_PurchaseOrder._PurchaseOrderType._Text[1: Language = $session.system_language].PurchasingDocumentTypeName AS PurchaseOrderTypeName,
OrderQuantity,
NetAmount,
cast(0 as ktwrt) AS TargetAmount,
cast(0 as abap.quan(13,3)) AS ReleasedQuantity,
cast(0 as vdm_releasedvalue) AS ReleasedAmount,
cast(_QtyAndValueCalc.GoodsReceiptQty as mm_a_delivererd_quantity) AS GoodsReceiptQty,
cast(_QtyAndValueCalc.GoodsReceiptAmountInCoCodeCrcy as mm_delivered_value) AS GoodsReceiptAmountInCoCodeCrcy,
cast(_QtyAndValueCalc.StillToBeDeliveredQuantity as vdm_stilltobedeliveredquantity ) AS StillToBeDeliveredQuantity,
cast(_QtyAndValueCalc.StillToBeDeliveredValue as vdm_stilltobedeliveredvalue) AS StillToBeDeliveredValue,
cast(_NextDeliveryCalc.ScheduleLineDeliveryDate as vdm_nextscheddelivdte) AS ScheduleLineDeliveryDate,
cast(_NextDeliveryCalc.ScheduleLineOpenQty as nextscheddelivqty_ll) AS OpenPurchaseOrderQuantity,
cast(_NextDeliveryCalc.DeliveryStatus as vdm_nextscheddelivsts) AS DeliveryStatus,
cast (_NextDeliveryCalc._DeliveryStatusText.DomainText as vdm_nextscheddelivsts) AS DeliveryStatusDescription,
cast(' ' as vdm_component) AS MaterialComponent,
cast(' ' as maktx) AS MaterialName,
cast(' ' as vdm_thirdptysuplr) AS Supplier,
cast(' ' as suppliername) AS SupplierName,
cast(' ' as vdm_nextschedshipgsts) AS ShippingStatus,
cast (' ' as vdm_nextschedshipgsts) AS ShippingStatusText,
cast('00000000' as vdm_nextschedshipgdte) AS RequirementDate,
cast(0 as nextschedshipgqty_ll) AS RequiredQuantity,
DocumentCurrency,
PurchaseOrderQuantityUnit,
PurchaseOrderQuantityUnit AS BaseUnit,
PurchaseOrderItemCategory,
SupplierIsSubcontractor,
cast( 0 as abap.int4) AS DifferenceInDays,
MRPArea
FROM I_PurchaseOrderItem
LEFT OUTER JOIN C_POItemNextDeliveryCalc AS _NextDeliveryCalc ON PurchasingDocument = _NextDeliveryCalc.PurchaseOrder AND PurchasingDocumentItem = _NextDeliveryCalc.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN C_POItemQtyAndValueCalc AS _QtyAndValueCalc ON PurchasingDocument = _QtyAndValueCalc.PurchaseOrder AND PurchasingDocumentItem = _QtyAndValueCalc.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN C_SchedgAgrmtItmDelivCalc AS _SchedgAgrmtItmDelivCalc ON PurchasingDocument = _SchedgAgrmtItmDelivCalc.SchedulingAgreement AND PurchasingDocumentItem = _SchedgAgrmtItmDelivCalc.SchedulingAgreementItem -- association [0..1]
-- UNION ALL with additional select branch(es): I_SchedgAgrmtItm
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA