P_EBWIP_PlanOutPutQuantity
Order Plan Output Quantity from ACDOCP
P_EBWIP_PlanOutPutQuantity is a Composite CDS View that provides data about "Order Plan Output Quantity from ACDOCP" in SAP S/4HANA. It reads from 2 data sources (I_MfgOrdPlngCat, I_FinancialPlanningEntryItem) and exposes 4 fields with key field OrderID. Part of development package ODATA_CO_RT_WIP_REPORTING.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrdPlngCat | _MfgOrdPlngCat | inner |
| I_FinancialPlanningEntryItem | _PlanItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | I_FinancialPlanningEntryItem | OrderID | |
| CompanyCode | I_FinancialPlanningEntryItem | CompanyCode | ||
| PlanOutputQuantity | ||||
| BaseUnit | I_FinancialPlanningEntryItem | CostSourceUnit |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity P_EBWIP_PlanOutPutQuantity
with parameters
P_Ledger : fins_ledger
as select from I_FinancialPlanningEntryItem as _PlanItem
inner join I_MfgOrdPlngCat as _MfgOrdPlngCat on _MfgOrdPlngCat.PlanningCategory = _PlanItem.PlanningCategory
{
key _PlanItem.OrderID,
_PlanItem.CompanyCode,
@Semantics: { quantity : {unitOfMeasure: 'BaseUnit'} }
sum( - _PlanItem.ValuationQuantity ) as PlanOutputQuantity,
_PlanItem.CostSourceUnit as BaseUnit
}
where
_MfgOrdPlngCat.PlngCatIsForOrdReltdPlnCost = 'X'
and _PlanItem.OrderID is not initial
and _PlanItem.Ledger = $parameters.P_Ledger
and(
_PlanItem.AccountAssignmentType = 'OR'
or _PlanItem.AccountAssignmentType = 'OP'
)
and _PlanItem.ControllingDebitCreditCode = 'L'
and (
_PlanItem.OrderItem = '0000'
or _PlanItem.OrderItem = '0001'
)
group by
_PlanItem.OrderID,
_PlanItem.CompanyCode,
_PlanItem.CostSourceUnit
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