P_ProcOrdMgmtGoodsMovement
Process order goods movement
P_ProcOrdMgmtGoodsMovement is a Composite CDS View that provides data about "Process order goods movement" in SAP S/4HANA. It reads from 2 data sources (I_MaterialDocumentRecord, I_LogisticsOrder) and exposes 25 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem. Part of development package VDM_PP_PROC_ORD_MNG.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | _Document | from |
| I_LogisticsOrder | _ManufacturingOrder | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPORGDMVMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocument | I_MaterialDocumentRecord | MaterialDocument | |
| KEY | MaterialDocumentYear | I_MaterialDocumentRecord | MaterialDocumentYear | |
| KEY | MaterialDocumentItem | I_MaterialDocumentRecord | MaterialDocumentItem | |
| ProcessOrder | I_MaterialDocumentRecord | ManufacturingOrder | ||
| ManufacturingOrderCategory | I_LogisticsOrder | OrderCategory | ||
| ManufacturingOrderType | I_LogisticsOrder | OrderType | ||
| ProductionPlant | I_LogisticsOrder | Plant | ||
| ProductionSupervisor | I_LogisticsOrder | ProductionSupervisor | ||
| Plant | I_MaterialDocumentRecord | Plant | ||
| PlantName | ||||
| GoodsMovementType | I_MaterialDocumentRecord | GoodsMovementType | ||
| PostingDate | I_MaterialDocumentRecord | PostingDate | ||
| QuantityInBaseUnit | I_MaterialDocumentRecord | QuantityInBaseUnit | ||
| Batch | I_MaterialDocumentRecord | Batch | ||
| PlantForEdit | I_MaterialDocumentRecord | Plant | ||
| MaterialForEdit | I_MaterialDocumentRecord | Material | ||
| BatchForEdit | I_MaterialDocumentRecord | Batch | ||
| StorageLocation | I_MaterialDocumentRecord | StorageLocation | ||
| StorageLocationName | ||||
| numc15astimestampendasCreationDateTime | ||||
| BaseUnit | I_MaterialDocumentRecord | MaterialBaseUnit | ||
| _OrderCategory | I_LogisticsOrder | _OrderCategory | ||
| _OrderType | I_LogisticsOrder | _OrderType | ||
| _Plant | I_LogisticsOrder | _Plant | ||
| _ProductionSupervisor | I_LogisticsOrder | _ProductionSupervisor |
@AbapCatalog.sqlViewName: 'PPORGDMVMT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Process order goods movement'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_ProcOrdMgmtGoodsMovement
as select from I_MaterialDocumentRecord as _Document
// inner join P_ProcOrdAORListDistinct as _AORList on _Document.ManufacturingOrder = _AORList.OrderID
// inner join I_LogisticsOrder as _ManufacturingOrder on _AORList.OrderID = _ManufacturingOrder.OrderID
inner join I_LogisticsOrder as _ManufacturingOrder on _Document.OrderID = _ManufacturingOrder.OrderID
and _ManufacturingOrder.OrderCategory = '40'
{
key _Document.MaterialDocument,
key _Document.MaterialDocumentYear,
key _Document.MaterialDocumentItem,
_Document.ManufacturingOrder as ProcessOrder,
_ManufacturingOrder.OrderCategory as ManufacturingOrderCategory,
_ManufacturingOrder.OrderType as ManufacturingOrderType,
_ManufacturingOrder.Plant as ProductionPlant,
_ManufacturingOrder.ProductionSupervisor,
_Document.Plant,
_Document._Plant.PlantName,
_Document.GoodsMovementType,
_Document.PostingDate,
_Document.QuantityInBaseUnit,
_Document.Batch,
_Document.Plant as PlantForEdit,
_Document.Material as MaterialForEdit,
_Document.Batch as BatchForEdit,
_Document.StorageLocation,
_Document._StorageLocation.StorageLocationName,
case _Document.CreationTime when '240000' then
cast(cast(concat(_Document.CreationDate,cast('235959' as tims))as abap.numc(15)) as timestamp)
else
cast(cast(concat(_Document.CreationDate , _Document.CreationTime)as abap.numc(15)) as timestamp)
end as CreationDateTime,
_Document.MaterialBaseUnit as BaseUnit,
_ManufacturingOrder._OrderCategory,
_ManufacturingOrder._OrderType,
_ManufacturingOrder._Plant,
_ManufacturingOrder._ProductionSupervisor
}
where
_ManufacturingOrder.OrderCategory = '40'
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