P_EBWIP_OrderCost4

DDL: P_EBWIP_ORDERCOST4 SQL: PEBWIPORDCST4 Type: view COMPOSITE

P_EBWIP_OrderCost4 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_EBWIP_OrderCost3) and exposes 33 fields with key fields CompanyCode, OrderID.

Data Sources (1)

SourceAliasJoin Type
P_EBWIP_OrderCost3 P_EBWIP_OrderCost3 from

Parameters (3)

NameTypeDefault
P_KeyDate fins_fperiod_enddate
P_Ledger fins_ledger
P_CurrencyRole fac_crcyrole

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PEBWIPORDCST4 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY OrderID OrderID Order ID
ObjectInternalID ObjectInternalID Object number
OrderDescription OrderDescription
OrderType OrderType Order Type
OrderCategory OrderCategory Order Category
Material Material Vehicle Model
Plant Plant Valuation Area
ProfitCenter ProfitCenter Profit Center
ControllingArea ControllingArea Controlling Area
FunctionalArea FunctionalArea Sendr Fctl Area
StorageLocation StorageLocation StorageLocation
MRPArea MRPArea MRP Area
MRPPlant MRPPlant Plant
MfgOrderHasMultipleItems MfgOrderHasMultipleItems
WIPCostInDspCrcy WIPCostInDspCrcy
ReservesUnrealizedCostsAmount ReservesUnrealizedCostsAmount
TotalWIPAmountInDspCrcy TotalWIPAmountInDspCrcy
DisplayCurrency DisplayCurrency Display Currency
ProducedAmountInDspCrcy ProducedAmountInDspCrcy
CompletedQuantityToDate CompletedQuantityToDate
ActualOutputQuantity ActualOutputQuantity
PlanCostAmountInDspCrcy PlanCostAmountInDspCrcy
PercentageOfCompletion PercentageOfCompletion
OrderCostsOutstandingInPercent
CostToCompleteAmountInDspCrcy CostToCompleteAmountInDspCrcy
RatioUnit RatioUnit Unit of Measure
UnitOfMeasure UnitOfMeasure Unit Protected Qty
OrderPlannedTotalQty OrderPlannedTotalQty
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
LastChangedByUser LastChangedByUser User Name
LastChangeDate LastChangeDate Time Stamp

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_EBWIP_OrderCost4.
-- 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: PEBWIPORDCST4
-- Parameters: P_KeyDate : fins_fperiod_enddate, P_Ledger : fins_ledger, P_CurrencyRole : fac_crcyrole

CREATE VIEW P_EBWIP_OrderCost4 AS
SELECT
  CompanyCode,
  OrderID,
  ObjectInternalID,
  OrderDescription,
  OrderType,
  OrderCategory,
  Material,
  Plant,
  ProfitCenter,
  ControllingArea,
  FunctionalArea,
  StorageLocation,
  MRPArea,
  MRPPlant,
  MfgOrderHasMultipleItems,
  WIPCostInDspCrcy,
  ReservesUnrealizedCostsAmount,
  TotalWIPAmountInDspCrcy,
  DisplayCurrency,
  ProducedAmountInDspCrcy,
  CompletedQuantityToDate,
  ActualOutputQuantity,
  PlanCostAmountInDspCrcy,
  PercentageOfCompletion,
  (100 - PercentageOfCompletion) AS OrderCostsOutstandingInPercent,
  CostToCompleteAmountInDspCrcy,
  RatioUnit,
  UnitOfMeasure,
  OrderPlannedTotalQty,
  CreatedByUser,
  CreationDate,
  LastChangedByUser,
  LastChangeDate
FROM P_EBWIP_OrderCost3
;