P_PODelivSchedDteCalWeek

DDL: P_PODELIVSCHEDDTECALWEEK SQL: POCALWEEK Type: view CONSUMPTION

P_PODelivSchedDteCalWeek is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_PODelivSchedDteCalcDays) and exposes 12 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine.

Data Sources (1)

SourceAliasJoin Type
P_PODelivSchedDteCalcDays P_PODelivSchedDteCalcDays from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName POCALWEEK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY ScheduleLine ScheduleLine Schedule Line
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Delivery Date
TodaysDate TodaysDate
DurationToNextStatusInDays
WeekDay WeekDay Weekdays
weekday1
weekday2
weekday3
weekday4
weekday5

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_PODelivSchedDteCalWeek.
-- 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: POCALWEEK

CREATE VIEW P_PODelivSchedDteCalWeek AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  ScheduleLine,
  ScheduleLineDeliveryDate,
  TodaysDate,
  dats_days_between(TodaysDate, ScheduleLineDeliveryDate) AS DurationToNextStatusInDays,
  WeekDay,
  7-WeekDay AS weekday1,
  14-WeekDay AS weekday2,
  21-WeekDay AS weekday3,
  28-WeekDay AS weekday4,
  35-WeekDay AS weekday5
FROM P_PODelivSchedDteCalcDays
;