P_POGRSchedLineDetails

DDL: P_POGRSCHEDLINEDETAILS SQL: PPOGRSLDETAIL Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

PO Goods Receipt and Sched Line Details

P_POGRSchedLineDetails is a Consumption CDS View that provides data about "PO Goods Receipt and Sched Line Details" in SAP S/4HANA. It reads from 1 data source (ekbe) and exposes 28 fields with key fields ebeln, ebelp, belnr, buzei, vgabe. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
ekbe History from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPOGRSLDETAIL view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label PO Goods Receipt and Sched Line Details view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY ebeln ekbe ebeln Source PurchDoc
KEY ebelp ekbe ebelp Item pur. doc.
KEY belnr ekbe belnr SD Document
KEY buzei ekbe buzei Posting View Item
KEY vgabe ekbe vgabe Transact. Type
KEY gjahr ekbe gjahr Settlement Year
KEY etenr
IsFinalScheduleLine
HasReversal
bsart
ekorg
ekgrp
werks
matkl
PurchasingCategory
budat budat Posting Date
menge
TotalDeliveredQuantity
LastDeliveredQuantity
GRSatisfyingSchedLine
OutstandingQtyCurrGR
OutstandingQtyLastGR
TimeVariance
TimeVarianceByDelieveryDate
TimeVarianceInPct
TimeVarianceInPctByDelivDate
TimeVarianceInPctWithSign
TimeVarcInPctWithSignByDD

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_POGRSchedLineDetails.
-- 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: PPOGRSLDETAIL

CREATE VIEW P_POGRSchedLineDetails AS
SELECT
  History.ebeln AS ebeln,
  History.ebelp AS ebelp,
  History.belnr AS belnr,
  History.buzei AS buzei,
  History.vgabe AS vgabe,
  History.gjahr AS gjahr,
  cast('' as eeten ) AS etenr,
  cast('' as final_schedule_line ) AS IsFinalScheduleLine,
  cast(1 as abap.int1) AS HasReversal,
  cast('' as esart) AS bsart,
  cast('' as ekorg) AS ekorg,
  cast('' as bkgrp) AS ekgrp,
  cast('' as ewerk) AS werks,
  cast('' as matkl) AS matkl,
  cast('' as /srmsmc/purchasing_category_id) AS PurchasingCategory,
  budat,
  cast(0 as menge_d) AS menge,
  cast(0 as abap.quan( 15, 3 )) AS TotalDeliveredQuantity,
  cast(0 as abap.quan( 15, 3 )) AS LastDeliveredQuantity,
  cast(0 as abap.quan( 15, 3 )) AS GRSatisfyingSchedLine,
  cast(0 as abap.quan( 15, 3 )) AS OutstandingQtyCurrGR,
  cast(0 as abap.quan( 15, 3 )) AS OutstandingQtyLastGR,
  cast(0 as int4 ) AS TimeVariance,
  cast(0 as int4 ) AS TimeVarianceByDelieveryDate,
  cast(0 as abap.dec(4,1)) AS TimeVarianceInPct,
  cast(0 as abap.dec(4,1)) AS TimeVarianceInPctByDelivDate,
  cast(0 as krpac) AS TimeVarianceInPctWithSign,
  cast(0 as krpac) AS TimeVarcInPctWithSignByDD
FROM ekbe AS History
;