P_EBWIP_ProductionCost2
Event-Based Work In Process Production Cost layer 2
P_EBWIP_ProductionCost2 is a Composite CDS View that provides data about "Event-Based Work In Process Production Cost layer 2" in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_EBWIP_ProductionCost1) and exposes 5 fields with key fields CompanyCode, OrderID, OrderItem. Part of development package ODATA_CO_RT_WIP_REPORTING.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LedgerCompanyCodeCrcyRoles | _LedgerCompanyCodeCrcyRole | inner |
| P_EBWIP_ProductionCost1 | P_EBWIP_ProductionCost1 | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | datum | |
| P_Ledger | fins_ledger | |
| P_CurrencyRole | fis_curtp |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBWIPPRODC2 | 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 (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | _ProductionCost | CompanyCode | |
| KEY | OrderID | OrderID | ||
| KEY | OrderItem | OrderItem | ||
| ActualOutputQuantity | ActualOutputQuantity | |||
| CompletedQuantityToDate | CompletedQuantityToDate |
@AbapCatalog.sqlViewName: 'PEBWIPPRODC2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_EBWIP_ProductionCost2
with parameters
@Environment.systemField: #SYSTEM_DATE
P_KeyDate : datum,
P_Ledger : fins_ledger,
P_CurrencyRole : fis_curtp
as select from P_EBWIP_ProductionCost1( P_KeyDate : :P_KeyDate,
P_Ledger : :P_Ledger ) as _ProductionCost
inner join I_LedgerCompanyCodeCrcyRoles as _LedgerCompanyCodeCrcyRole on _LedgerCompanyCodeCrcyRole.CompanyCode = _ProductionCost.CompanyCode
and _LedgerCompanyCodeCrcyRole.Ledger = :P_Ledger
{
key _ProductionCost.CompanyCode,
key OrderID,
key OrderItem,
// Produced Amount from ACDOCA by Currency Role
cast(
case :P_CurrencyRole
when CompanyCodeCurrencyRole then AmountInCompanyCodeCurrency
when GlobalCurrencyRole then AmountInGlobalCurrency
when FreeDefinedCurrency1Role then AmountInFreeDefinedCurrency1
when FreeDefinedCurrency2Role then AmountInFreeDefinedCurrency2
when FreeDefinedCurrency3Role then AmountInFreeDefinedCurrency3
when FreeDefinedCurrency4Role then AmountInFreeDefinedCurrency4
when FreeDefinedCurrency5Role then AmountInFreeDefinedCurrency5
when FreeDefinedCurrency6Role then AmountInFreeDefinedCurrency6
when FreeDefinedCurrency7Role then AmountInFreeDefinedCurrency7
when FreeDefinedCurrency8Role then AmountInFreeDefinedCurrency8
else 0
end as farp_amount_display_crcy) as AmountInDisplayCurrency,
ActualOutputQuantity,
CompletedQuantityToDate
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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