P_EBPAO_PCCProductionCost
P_EBPAO_PCCProductionCost is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_EBPAO_PCCProductionCost1) and exposes 10 fields with key fields OrderID, CompanyCode, ControllingArea, Plant, ProfitCenter.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LedgerCompanyCodeCrcyRoles | CurrencyRoles | inner |
| P_EBPAO_PCCProductionCost1 | P_EBPAO_PCCProductionCost1 | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_CurrencyRole | fis_curtp |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PEBPAOPCCPRDCST | 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 (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | ProductionCost | OrderID | |
| KEY | CompanyCode | ProductionCost | CompanyCode | |
| KEY | ControllingArea | ProductionCost | ControllingArea | |
| KEY | Plant | ProductionCost | Plant | |
| KEY | ProfitCenter | ProductionCost | ProfitCenter | |
| KEY | OrderCategory | ProductionCost | OrderCategory | |
| KEY | OrderType | ProductionCost | OrderType | |
| KEY | StorageLocation | ProductionCost | StorageLocation | |
| KEY | Product | ProductionCost | Product | |
| KEY | ProductGroup | ProductionCost | ProductGroup |
@AbapCatalog: {
compiler.compareFilter: true,
sqlViewName: 'PEBPAOPCCPRDCST'
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {
serviceQuality: #D,
sizeCategory: #XL,
dataClass: #MIXED
}
@VDM: {
private: true,
viewType: #COMPOSITE
}
define view P_EBPAO_PCCProductionCost
with parameters
P_Ledger : fins_ledger,
P_FromFiscalYearPeriod : fins_fyearperiod,
P_ToFiscalYearPeriod : fins_fyearperiod,
P_CurrencyRole : fis_curtp
as select from P_EBPAO_PCCProductionCost1( P_Ledger : :P_Ledger,
P_FromFiscalYearPeriod : :P_FromFiscalYearPeriod,
P_ToFiscalYearPeriod : :P_ToFiscalYearPeriod ) as ProductionCost
inner join I_LedgerCompanyCodeCrcyRoles as CurrencyRoles on CurrencyRoles.CompanyCode = ProductionCost.CompanyCode
and CurrencyRoles.Ledger = :P_Ledger
{
key ProductionCost.OrderID,
key ProductionCost.CompanyCode,
key ProductionCost.ControllingArea,
key ProductionCost.Plant,
key ProductionCost.ProfitCenter,
key ProductionCost.OrderCategory,
key ProductionCost.OrderType,
key ProductionCost.StorageLocation,
key ProductionCost.Product,
key ProductionCost.ProductGroup,
cast(
case :P_CurrencyRole
when CurrencyRoles.CompanyCodeCurrencyRole then ProductionCost.AmountInCompanyCodeCurrency
when CurrencyRoles.GlobalCurrencyRole then ProductionCost.AmountInGlobalCurrency
when CurrencyRoles.FreeDefinedCurrency1Role then ProductionCost.AmountInFreeDefinedCurrency1
when CurrencyRoles.FreeDefinedCurrency2Role then ProductionCost.AmountInFreeDefinedCurrency2
when CurrencyRoles.FreeDefinedCurrency3Role then ProductionCost.AmountInFreeDefinedCurrency3
when CurrencyRoles.FreeDefinedCurrency4Role then ProductionCost.AmountInFreeDefinedCurrency4
when CurrencyRoles.FreeDefinedCurrency5Role then ProductionCost.AmountInFreeDefinedCurrency5
when CurrencyRoles.FreeDefinedCurrency6Role then ProductionCost.AmountInFreeDefinedCurrency6
when CurrencyRoles.FreeDefinedCurrency7Role then ProductionCost.AmountInFreeDefinedCurrency7
when CurrencyRoles.FreeDefinedCurrency8Role then ProductionCost.AmountInFreeDefinedCurrency8
else 0
end as fis_dr_actlcost_in_dspcrcy preserving type) as AmountInDisplayCurrency
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGERCOMPANYCODECRCYROLES",
"P_EBPAO_PCCPRODUCTIONCOST1"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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