P_PurchaseOrderScheduleLine
P_PurchaseOrderScheduleLine
P_PurchaseOrderScheduleLine is a Consumption CDS View that provides data about "P_PurchaseOrderScheduleLine" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderScheduleLine) and exposes 18 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine. It has 1 association to related views. Part of development package ODATA_MM_ANALYTICS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderScheduleLine | ScheduleLine | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchaseOrderItem | _PurOrdItem | $projection.PurchaseOrder = _PurOrdItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurOrdItem.PurchaseOrderItem |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PMMPOSCHELINE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| ScheduleLineOrderQuantity | I_PurchaseOrderScheduleLine | ScheduleLineOrderQuantity | Scheduled Qty | |
| PurchaseOrderQuantityUnit | I_PurchaseOrderScheduleLine | PurchaseOrderQuantityUnit | Order Unit | |
| PurchaseOrderDate | _PurOrd | PurchaseOrderDate | PO Date | |
| NetAmount | _PurOrdItem | NetAmount | Stated Amount | |
| DocumentCurrency | _PurOrdItem | DocumentCurrency | Document Currency | |
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| SchedLineStscDeliveryDate | SchedLineStscDeliveryDate | Stat. Del. Date | ||
| PurchasingOrganization | _PurOrd | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | _PurOrd | PurchasingGroup | Purchasing Group | |
| Supplier | _PurOrd | Supplier | Supplier | |
| CompanyCode | _PurOrd | CompanyCode | Receiver Company Code | |
| Material | _PurOrdItem | Material | Vehicle Model | |
| MaterialGroup | _PurOrdItem | MaterialGroup | Product Group | |
| Plant | _PurOrdItem | Plant | Valuation Area | |
| OrderQuantity | _PurOrdItem | OrderQuantity | Quantity |
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_PurchaseOrderScheduleLine.
-- 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: PMMPOSCHELINE
-- Parameters: P_StartDate : bedat, P_EndDate : bedat
CREATE VIEW P_PurchaseOrderScheduleLine AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
ScheduleLine,
ScheduleLine.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
ScheduleLine.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
_PurOrd.PurchaseOrderDate AS PurchaseOrderDate,
_PurOrdItem.NetAmount AS NetAmount,
_PurOrdItem.DocumentCurrency AS DocumentCurrency,
ScheduleLineDeliveryDate,
SchedLineStscDeliveryDate,
_PurOrd.PurchasingOrganization AS PurchasingOrganization,
_PurOrd.PurchasingGroup AS PurchasingGroup,
_PurOrd.Supplier AS Supplier,
_PurOrd.CompanyCode AS CompanyCode,
_PurOrdItem.Material AS Material,
_PurOrdItem.MaterialGroup AS MaterialGroup,
_PurOrdItem.Plant AS Plant,
_PurOrdItem.OrderQuantity AS OrderQuantity
FROM I_PurchaseOrderScheduleLine AS ScheduleLine
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurOrdItem ON PurchaseOrder = _PurOrdItem.PurchaseOrder AND PurchaseOrderItem = _PurOrdItem.PurchaseOrderItem -- association [1..1]
;
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