P_EBPAO_WIPOverview

DDL: P_EBPAO_WIPOVERVIEW Type: view COMPOSITE

P_EBPAO_WIPOverview is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_EBPAO_AdjustedOrder4Cost, P_EBPAO_WIPOverview2) and exposes 18 fields with key fields Ledger, CompanyCode, OrderID, OrderItem, OrderType. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_EBPAO_AdjustedOrder4Cost EvtBsdOrderAndItem from
P_EBPAO_WIPOverview2 P_EBPAO_WIPOverview2 inner

Parameters (3)

NameTypeDefault
P_Ledger fins_ledger
P_ToFiscalYearPeriod fins_fyearperiod
P_CurrencyRole fis_curtp

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[0..*] I_ProfitCenterText _ProfitCenterText _ProfitCenterText.ControllingArea = $projection.ControllingArea and _ProfitCenterText.ProfitCenter = $projection.ProfitCenter and _ProfitCenterText.ValidityStartDate <= $session.system_date and _ProfitCenterText.ValidityEndDate >= $session.system_date
[0..*] I_ProductText _ProductText _ProductText.Product = $projection.Product
[0..*] I_ProductGroupText _ProductGroupText _ProductGroupText.MaterialGroup = $projection.ProductGroup
[0..1] I_StorageLocation _StorageLocation _StorageLocation.Plant = $projection.Plant and _StorageLocation.StorageLocation = $projection.StorageLocation

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PEBPAOWIPOVW view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY Ledger _WIPCost Ledger Ledger
KEY CompanyCode P_EBPAO_AdjustedOrder4Cost CompanyCode Receiver Company Code
KEY OrderID P_EBPAO_AdjustedOrder4Cost OrderID Order ID
KEY OrderItem _WIPCost OrderItem
KEY OrderType P_EBPAO_AdjustedOrder4Cost OrderType Order Type
KEY OrderCategory P_EBPAO_AdjustedOrder4Cost OrderCategory Order Category
KEY ControllingArea P_EBPAO_AdjustedOrder4Cost ControllingArea Controlling Area
KEY Plant P_EBPAO_AdjustedOrder4Cost Plant Valuation Area
KEY StorageLocation P_EBPAO_AdjustedOrder4Cost StorageLocation StorageLocation
KEY ProfitCenter P_EBPAO_AdjustedOrder4Cost ProfitCenter Profit Center
KEY Product P_EBPAO_AdjustedOrder4Cost Product Product Sold
KEY ProductGroup P_EBPAO_AdjustedOrder4Cost ProductGroup Product Sold Group
TotalWIPAmountInDspCrcy
_Plant _Plant
_ProfitCenterText _ProfitCenterText
_ProductText _ProductText
_ProductGroupText _ProductGroupText
_StorageLocation _StorageLocation

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_EBPAO_WIPOverview.
-- 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.
-- Parameters: P_Ledger : fins_ledger, P_ToFiscalYearPeriod : fins_fyearperiod, P_CurrencyRole : fis_curtp

CREATE VIEW P_EBPAO_WIPOverview AS
SELECT
  _WIPCost.Ledger AS Ledger,
  EvtBsdOrderAndItem.CompanyCode AS CompanyCode,
  EvtBsdOrderAndItem.OrderID AS OrderID,
  _WIPCost.OrderItem AS OrderItem,
  EvtBsdOrderAndItem.OrderType AS OrderType,
  EvtBsdOrderAndItem.OrderCategory AS OrderCategory,
  EvtBsdOrderAndItem.ControllingArea AS ControllingArea,
  EvtBsdOrderAndItem.Plant AS Plant,
  EvtBsdOrderAndItem.StorageLocation AS StorageLocation,
  EvtBsdOrderAndItem.ProfitCenter AS ProfitCenter,
  EvtBsdOrderAndItem.Product AS Product,
  EvtBsdOrderAndItem.ProductGroup AS ProductGroup,
  cast(_WIPCost.AmountInDisplayCurrency as abgbesges) AS TotalWIPAmountInDspCrcy
FROM P_EBPAO_AdjustedOrder4Cost AS EvtBsdOrderAndItem
INNER JOIN P_EBPAO_WIPOverview2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON _ProfitCenterText.ControllingArea = ControllingArea AND _ProfitCenterText.ProfitCenter = ProfitCenter AND _ProfitCenterText.ValidityStartDate <= $session.system_date AND _ProfitCenterText.ValidityEndDate >= $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _ProductText ON _ProductText.Product = Product  -- association [0..*]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON _ProductGroupText.MaterialGroup = ProductGroup  -- association [0..*]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON _StorageLocation.Plant = Plant AND _StorageLocation.StorageLocation = StorageLocation  -- association [0..1]
;