P_Orderqtyissue
Order Quantity Issue Calculation
P_Orderqtyissue is a Consumption CDS View that provides data about "Order Quantity Issue Calculation" in SAP S/4HANA. It reads from 2 data sources (P_MfgOrderAORList, I_LogisticsOrder) and exposes 3 fields with key field ManufacturingOrder.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgOrderAORList | _AORList | inner |
| I_LogisticsOrder | ord | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Order Quantity Issue Calculation | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ManufacturingOrder | I_LogisticsOrder | OrderID | |
| BaseUnit | I_LogisticsOrder | BaseUnit | ||
| OrderYieldDeviationQty |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Order Quantity Issue Calculation'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view entity P_Orderqtyissue // encapsulate calculation of field OrderYieldDeviationQty
as select from I_LogisticsOrder as ord
inner join P_MfgOrderAORList as _AORList on _AORList.OrderID = ord.OrderID
{
key ord.OrderID as ManufacturingOrder,
ord.BaseUnit,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
ord.OrderConfirmedYieldQty - ord.OrderPlannedTotalQty + ord.OrderPlannedScrapQty as OrderYieldDeviationQty
}
where ord.OrderCategory = '10'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDER",
"P_MFGORDERAORLIST"
],
"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