P_CNTRLPURFUTURESPEND
Central PO Future Spend
P_CNTRLPURFUTURESPEND is a Consumption CDS View that provides data about "Central PO Future Spend" in SAP S/4HANA. It reads from 1 data source (P_CntrlPurchasingSpend) and exposes 32 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine, ProcurementHubSourceSystem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CntrlPurchasingSpend | P_CntrlPurchasingSpend | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCNTRLPOSPND | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Central PO Future Spend | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| KEY | ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | |
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| SchedLineStscDeliveryDate | SchedLineStscDeliveryDate | Stat. Del. Date | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserName | CreatedByUserName | Person Resp. | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| AnalyticalReportingCurrency | AnalyticalReportingCurrency | |||
| AnalyticalReportingCurrency2 | AnalyticalReportingCurrency2 | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| NetAmountInReportingCurrency | NetAmountInReportingCurrency | |||
| NetAmountInReportingCurrency2 | NetAmountInReportingCurrency2 | |||
| NetAmount | NetAmount | Stated Amount | ||
| ScheduleLineOrderQuantity | ScheduleLineOrderQuantity | Scheduled Qty | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| ReturnItems | ||||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit |
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_CNTRLPURFUTURESPEND.
-- 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: PCNTRLPOSPND
-- Parameters: P_StartDate : bedat, P_EndDate : bedat
CREATE VIEW P_CNTRLPURFUTURESPEND AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
ScheduleLine,
ProcurementHubSourceSystem,
Supplier,
PurchasingOrganization,
PurchasingGroup,
CompanyCode,
Material,
MaterialGroup,
Plant,
ScheduleLineDeliveryDate,
SchedLineStscDeliveryDate,
PurchaseOrderDate,
PurchasingDocumentItemCategory,
PurchaseOrderType,
CreatedByUser,
CreatedByUserName,
IsReturnsItem,
AnalyticalReportingCurrency,
AnalyticalReportingCurrency2,
DocumentCurrency,
OrderQuantityUnit,
NetAmountInReportingCurrency,
NetAmountInReportingCurrency2,
NetAmount,
ScheduleLineOrderQuantity,
OrderQuantity,
cast(case when IsReturnsItem = 'X' then -1 else 1 end as abap.dec( 2, 0 ) ) AS ReturnItems,
OrderPriceUnitToOrderUnitNmrtr,
OrdPriceUnitToOrderUnitDnmntr,
NetPriceQuantity
FROM P_CntrlPurchasingSpend
;
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