P_SupDmndOvwSTODateBasic

DDL: P_SUPDMNDOVWSTODATEBASIC Type: view BASIC

P_SupDmndOvwSTODateBasic is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (eket, ekko, ekpo, ekpv) and exposes 18 fields.

Data Sources (4)

SourceAliasJoin Type
eket eket inner
ekko ekko from
ekpo ekpo inner
ekpv ekpv inner

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName PSUPDMNDOVWSTO1 view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (18)

KeyFieldSource TableSource FieldDescription
PurchasingDocument eket ebeln Source PurchDoc
PurchasingDocumentItem ekpo ebelp Item pur. doc.
EarliestRequestedDeliveryDate eket arun_req_dlvdate Date
RequestedDate eket mbdat Mat.Avail.Date
ProductAvailabilityDate eket1 mbdat Mat.Avail.Date
Material ekpo matnr Vehicle Model
MaterialGroup ekpo matkl Product Sold Group
Plant ekko reswk Supplying Plant
PurchasingOrganization ekko ekorg Purchasing Org.
PurchasingGroup ekko ekgrp Sub. purchasing grp
SalesOrganization ekpv vkorg SD Sales Org.
DistributionChannel ekpv vtweg RefDistCh-Cust/Mat.
Division ekpv spart Source supplier
ConfdOrderQtyByMatlAvailCheck eket1 mng02 Scrap
ScheduleLineOrderQuantity eket1 menge WarrCountValue
DeliveredQuantityInBaseUnit
ConfirmedDeliveryDate eket1 eindt Initial Entry
ScheduleLine eket1 etenr Schedule Line

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_SupDmndOvwSTODateBasic.
-- 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.

CREATE VIEW P_SupDmndOvwSTODateBasic AS
SELECT
  eket.ebeln AS PurchasingDocument,
  ekpo.ebelp AS PurchasingDocumentItem,
  eket.arun_req_dlvdate AS EarliestRequestedDeliveryDate,
  eket.mbdat AS RequestedDate,
  eket1.mbdat AS ProductAvailabilityDate,
  ekpo.matnr AS Material,
  ekpo.matkl AS MaterialGroup,
  ekko.reswk AS Plant,
  ekko.ekorg AS PurchasingOrganization,
  ekko.ekgrp AS PurchasingGroup,
  ekpv.vkorg AS SalesOrganization,
  ekpv.vtweg AS DistributionChannel,
  ekpv.spart AS Division,
  eket1.mng02 AS ConfdOrderQtyByMatlAvailCheck,
  eket1.menge AS ScheduleLineOrderQuantity,
  cast( case when eket1.mng02 > 0 then eket1.glmng else 0 end as glmng) AS DeliveredQuantityInBaseUnit,
  eket1.eindt AS ConfirmedDeliveryDate,
  eket1.etenr AS ScheduleLine
FROM ekko
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
INNER JOIN ekpv ON /* join condition not captured in parsed metadata */
INNER JOIN eket ON /* join condition not captured in parsed metadata */
;