P_EBWIP_OrderCost2
Event-Based Work In Process Order Cost layer 2
P_EBWIP_OrderCost2 is a Composite CDS View that provides data about "Event-Based Work In Process Order Cost layer 2" in SAP S/4HANA. It reads from 2 data sources (P_EBWIP_Order, P_EBWIP_WIP3) and exposes 32 fields with key fields CompanyCode, OrderID. Part of development package ODATA_CO_RT_WIP_REPORTING.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_EBWIP_Order | P_EBWIP_Order | from |
| P_EBWIP_WIP3 | P_EBWIP_WIP3 | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | fins_fperiod_enddate | |
| P_Ledger | fins_ledger | |
| P_CurrencyRole | fac_crcyrole |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBWIPORDCST2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | _OrderHeader | CompanyCode | Receiver Company Code |
| KEY | OrderID | _OrderHeader | OrderID | Order ID |
| ObjectInternalID | _OrderHeader | ObjectInternalID | Object number | |
| OrderDescription | OrderDescription | |||
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| Material | _OrderHeader | Material | Vehicle Model | |
| Plant | _OrderHeader | Plant | Valuation Area | |
| ProfitCenter | ProfitCenter | Profit Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FunctionalArea | _OrderHeader | FunctionalArea | Sendr Fctl Area | |
| StorageLocation | _OrderHeader | StorageLocation | StorageLocation | |
| MRPArea | _OrderHeader | MRPArea | MRP Area | |
| MRPPlant | _OrderHeader | MRPPlant | Plant | |
| MfgOrderHasMultipleItems | MfgOrderHasMultipleItems | |||
| CombnOrdCombinationIdentifier | CombnOrdCombinationIdentifier | |||
| CombinedOrder | CombinedOrder | |||
| RequestOrderType | RequestOrderType | |||
| SuperiorOrder | SuperiorOrder | |||
| DisplayCurrency | _LdgrCompCodeCrcy | Currency | Valuation Crcy | |
| WIPCostInDspCrcy | WIPCostInDspCrcy | |||
| ReservesUnrealizedCostsAmount | ReservesUnrealizedCostsAmount | |||
| ProducedAmountInDspCrcy | ||||
| CompletedQuantityToDate | ||||
| ActualOutputQuantity | ||||
| curr232else0endasPlanCostAmountInDspCrcy | ||||
| UnitOfMeasure | _OrderHeader | UnitOfMeasure | Unit Protected Qty | |
| OrderPlannedTotalQty | _PlanOutPutQuantity | PlanOutputQuantity | ||
| CreatedByUser | _OrderHeader | CreatedByUser | User Name | |
| CreationDate | _OrderHeader | CreationDate | Time Stamp | |
| LastChangedByUser | _OrderHeader | LastChangedByUser | User Name | |
| LastChangeDate | _OrderHeader | 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_OrderCost2.
-- 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: PEBWIPORDCST2
-- Parameters: P_KeyDate : fins_fperiod_enddate, P_Ledger : fins_ledger, P_CurrencyRole : fac_crcyrole
CREATE VIEW P_EBWIP_OrderCost2 AS
SELECT
_OrderHeader.CompanyCode AS CompanyCode,
_OrderHeader.OrderID AS OrderID,
_OrderHeader.ObjectInternalID AS ObjectInternalID,
OrderDescription,
OrderType,
OrderCategory,
_OrderHeader.Material AS Material,
_OrderHeader.Plant AS Plant,
ProfitCenter,
ControllingArea,
_OrderHeader.FunctionalArea AS FunctionalArea,
_OrderHeader.StorageLocation AS StorageLocation,
_OrderHeader.MRPArea AS MRPArea,
_OrderHeader.MRPPlant AS MRPPlant,
MfgOrderHasMultipleItems,
CombnOrdCombinationIdentifier,
CombinedOrder,
RequestOrderType,
SuperiorOrder,
_LdgrCompCodeCrcy.Currency AS DisplayCurrency,
WIPCostInDspCrcy,
ReservesUnrealizedCostsAmount,
coalesce(ProducedAmountInDspCrcy, 0) AS ProducedAmountInDspCrcy,
coalesce(CompletedQuantityToDate, 0) AS CompletedQuantityToDate,
coalesce(ActualOutputQuantity, 0) AS ActualOutputQuantity,
case when CostingLotSize <> 0 and OrderCategory <> '05' then cast( _MaterialCostEstimate.LotSizeIndependentCosts + ( round(cast(division(_PlanOutPutQuantity.PlanOutputQuantity, CostingLotSize, 3) as abap.dec(14, 6)) * _MaterialCostEstimate.PlanCostInDspCrcy, 2) ) as abap.curr( 23, 2 ) ) else 0 end as PlanCostAmountInDspCrcy AS curr232else0endasPlanCostAmountInDspCrcy,
_OrderHeader.UnitOfMeasure AS UnitOfMeasure,
_PlanOutPutQuantity.PlanOutputQuantity AS OrderPlannedTotalQty,
_OrderHeader.CreatedByUser AS CreatedByUser,
_OrderHeader.CreationDate AS CreationDate,
_OrderHeader.LastChangedByUser AS LastChangedByUser,
_OrderHeader.LastChangeDate AS LastChangeDate
FROM P_EBWIP_Order
INNER JOIN P_EBWIP_WIP3 ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA