P_OpenDelivery
Open Deliveries
P_OpenDelivery is a Consumption CDS View that provides data about "Open Deliveries" in SAP S/4HANA. It reads from 1 data source (I_OutboundDeliveryItem) and exposes 5 fields with key fields Material, Supplier, Plant. Part of development package ODATA_MM_PUR_SUBCONTRG_COCKPIT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OutboundDeliveryItem | I_OutboundDeliveryItem | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | POPENDELIV | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | Open Deliveries | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | ||
| KEY | Supplier | _OutboundDelivery | Supplier | |
| KEY | Plant | Plant | ||
| MaterialIsIntBatchManaged | MaterialIsIntBatchManaged | |||
| ActualDeliveryQuantity |
@AbapCatalog.sqlViewName: 'POPENDELIV'
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
--@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'Open Deliveries'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@Metadata.ignorePropagatedAnnotations: true
define view P_OpenDelivery
as select from I_OutboundDeliveryItem
{
key Material,
key _OutboundDelivery.Supplier,
key Plant,
MaterialIsIntBatchManaged,
sum(ActualDeliveryQuantity) as ActualDeliveryQuantity
}
where
I_OutboundDeliveryItem.GoodsMovementType = '541' //Subcontracting Type
and ActualDeliveryQuantity > 0
and I_OutboundDeliveryItem.Material <> ''
and _OutboundDelivery.Supplier <> ''
and Plant <> ''
and GoodsMovementStatus = 'A' // A = Not Yet Started
//Flag has not been considered as Materials which are managed by Batch also need to de calculated
// and MaterialIsIntBatchManaged = ''
//and Reservation = '0000000000'
group by
Material,
Plant,
_OutboundDelivery.Supplier,
MaterialIsIntBatchManaged
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