P_DELIVDATECALCU
P View for Calculation of Delivery Date
P_DELIVDATECALCU is a Consumption CDS View that provides data about "P View for Calculation of Delivery Date" in SAP S/4HANA. It reads from 1 data source (P_PurgDocSchedline) and exposes 17 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurgDocSchedline | _PurgDocSchedline | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Date | sydatum |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CalendarDate | _CalendarDate | _CalendarDate.CalendarDate = $parameters.P_Date |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDELIVDATECALCU | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | P View for Calculation of Delivery Date | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | P_Purgdocument | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | P_PurgDocSchedline | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | P_PurgDocSchedline | PurchasingDocumentItem | Purchasing Doc. Item |
| SupplierConfirmationCategory | P_PurgDocSchedline | SupplierConfirmationCategory | Confirm. Cat. | |
| ScheduleLine | P_PurgDocSchedline | ScheduleLine | Schedule Line | |
| ScheduleLineDeliveryDate | P_PurgDocSchedline | ScheduleLineDeliveryDate | Delivery Date | |
| OrderedQuantity | P_PurgDocSchedline | OrderedQuantity | Quantity | |
| BalanceQuantity | P_PurgDocSchedline | BalanceQuantity | Balance Quantity | |
| Supplier | P_PurgDocSchedline | Supplier | Supplier | |
| _Supplier | P_PurgDocSchedline | _Supplier | ||
| DurationToNextStatusInDays | ||||
| weekday1 | ||||
| WeekDay | _CalendarDate | WeekDay | Weekdays | |
| dates | ||||
| _CalendarDate | _CalendarDate | |||
| SupplierAccountGroup | _Supplier | SupplierAccountGroup | Account group | |
| AuthorizationGroup | _Supplier | AuthorizationGroup | AuthorizGroup | |
| Plant | Plant | Valuation 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_DELIVDATECALCU.
-- 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: PDELIVDATECALCU
-- Parameters: P_Date : sydatum
CREATE VIEW P_DELIVDATECALCU AS
SELECT
_PurgDocSchedline.PurchasingDocument AS PurchasingDocument,
_PurgDocSchedline.PurchasingDocumentItem AS PurchasingDocumentItem,
_PurgDocSchedline.SupplierConfirmationCategory AS SupplierConfirmationCategory,
_PurgDocSchedline.ScheduleLine AS ScheduleLine,
_PurgDocSchedline.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
_PurgDocSchedline.OrderedQuantity AS OrderedQuantity,
_PurgDocSchedline.BalanceQuantity AS BalanceQuantity,
_PurgDocSchedline.Supplier AS Supplier,
_PurgDocSchedline._Supplier AS _Supplier,
dats_days_between($parameters.P_Date, _PurgDocSchedline.ScheduleLineDeliveryDate) AS DurationToNextStatusInDays,
7-cast(_CalendarDate.WeekDay as abap.int8) AS weekday1,
_CalendarDate.WeekDay AS WeekDay,
$parameters.P_Date AS dates,
_Supplier.SupplierAccountGroup AS SupplierAccountGroup,
_Supplier.AuthorizationGroup AS AuthorizationGroup,
Plant
FROM P_PurgDocSchedline AS _PurgDocSchedline
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON _CalendarDate.CalendarDate = $parameters.P_Date -- association [1..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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