P_POItmSchedLineCalcdFeatures
P_POItmSchedLineCalcdFeatures is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (P_POItmSchedLineRunningAggrgn, P_POItemSchedLineFtreByWeek, P_POItemSchedLineFtreByMonth) and exposes 16 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_POItmSchedLineRunningAggrgn | _POIClosedSLData2a | from |
| P_POItemSchedLineFtreByWeek | _POIClosedSLData2b | left_outer |
| P_POItemSchedLineFtreByMonth | _POIClosedSLData2c | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPOICALCDFT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| Plant | Plant | Valuation Area | ||
| SupplierPlant | P_POItmSchedLineRunningAggrgn | SupplierPlant | Plant | |
| GoodsReceiptMaterialDocYear | P_POItmSchedLineRunningAggrgn | GoodsReceiptMaterialDocYear | ||
| YearWeek | P_POItmSchedLineRunningAggrgn | YearWeek | Year and Calendar Week | |
| YearMonth | P_POItmSchedLineRunningAggrgn | YearMonth | Year Month | |
| PreviousYearWeek | P_POItemSchedLineFtreByWeek | YearWeek | Year and Calendar Week | |
| prev_w_count | P_POItemSchedLineFtreByWeek | running_w_count | ||
| PreviousYearMonth | P_POItemSchedLineFtreByMonth | YearMonth | Year Month | |
| prev_m_count | P_POItemSchedLineFtreByMonth | running_m_count | ||
| diff_w_count | ||||
| diff_m_count |
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_POItmSchedLineCalcdFeatures.
-- 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: PPOICALCDFT
CREATE VIEW P_POItmSchedLineCalcdFeatures AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
ScheduleLine,
PurchaseOrderDate,
Supplier,
Plant,
_POIClosedSLData2a.SupplierPlant AS SupplierPlant,
_POIClosedSLData2a.GoodsReceiptMaterialDocYear AS GoodsReceiptMaterialDocYear,
_POIClosedSLData2a.YearWeek AS YearWeek,
_POIClosedSLData2a.YearMonth AS YearMonth,
_POIClosedSLData2b.YearWeek AS PreviousYearWeek,
_POIClosedSLData2b.running_w_count AS prev_w_count,
_POIClosedSLData2c.YearMonth AS PreviousYearMonth,
_POIClosedSLData2c.running_m_count AS prev_m_count,
_POIClosedSLData2a.running_w_count - _POIClosedSLData2b.running_w_count AS diff_w_count,
_POIClosedSLData2a.running_m_count - _POIClosedSLData2c.running_m_count AS diff_m_count
FROM P_POItmSchedLineRunningAggrgn AS _POIClosedSLData2a
LEFT OUTER JOIN P_POItemSchedLineFtreByWeek AS _POIClosedSLData2b ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_POItemSchedLineFtreByMonth AS _POIClosedSLData2c ON /* join condition not captured in parsed metadata */
;
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