P_PhysInvtryNotPosted_L2
Not posted master data
P_PhysInvtryNotPosted_L2 is a Composite CDS View that provides data about "Not posted master data" in SAP S/4HANA. It reads from 3 data sources (P_PhysInvtryNotPosted_L1, I_Product, P_ProductPlantBasic) and exposes 19 fields with key fields Material, Plant, StorageLocation, Batch, Supplier. Part of development package ODATA_MM_IM_PI_MASS_CREATE.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_PhysInvtryNotPosted_L1 | NotPosted | from |
| I_Product | Product | inner |
| P_ProductPlantBasic | ProductPlant | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Not posted master data | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | P_PhysInvtryNotPosted_L1 | Material | |
| KEY | Plant | P_PhysInvtryNotPosted_L1 | Plant | |
| KEY | StorageLocation | P_PhysInvtryNotPosted_L1 | StorageLocation | |
| KEY | Batch | P_PhysInvtryNotPosted_L1 | Batch | |
| KEY | Supplier | P_PhysInvtryNotPosted_L1 | Supplier | |
| KEY | SalesOrder | P_PhysInvtryNotPosted_L1 | SalesOrder | |
| KEY | SalesOrderItem | P_PhysInvtryNotPosted_L1 | SalesOrderItem | |
| KEY | WBSElementInternalID | P_PhysInvtryNotPosted_L1 | WBSElementInternalID | |
| KEY | Customer | P_PhysInvtryNotPosted_L1 | Customer | |
| KEY | StockOwner | P_PhysInvtryNotPosted_L1 | StockOwner | |
| KEY | InventoryStockType | P_PhysInvtryNotPosted_L1 | InventoryStockType | |
| KEY | InventorySpecialStockType | |||
| BaseUnit | I_Product | BaseUnit | ||
| ValuationCategory | P_ProductPlantBasic | ValuationCategory | ||
| IsBatchManagementRequired | P_ProductPlantBasic | IsBatchManagementRequired | ||
| InventoryForCycleCountInd | P_ProductPlantBasic | InventoryForCycleCountInd | ||
| SerialNumberProfile | P_ProductPlantBasic | SerialNumberProfile | ||
| InventoryValuationType | BatchPlant | InventoryValuationType | ||
| MatlBatchIsInRstrcdUseStock | BatchPlant | MatlBatchIsInRstrcdUseStock |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Not posted master data'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM:{
private: true,
viewType: #COMPOSITE
}
define view entity P_PhysInvtryNotPosted_L2
as select from P_PhysInvtryNotPosted_L1 as NotPosted
inner join I_Product as Product on Product.Product = NotPosted.Material
inner join P_ProductPlantBasic as ProductPlant on ProductPlant.Product = NotPosted.Material
and ProductPlant.Plant = NotPosted.Plant
left outer to one join I_BatchPlant as BatchPlant on BatchPlant.Material = NotPosted.Material
and BatchPlant.Plant = NotPosted.Plant
and BatchPlant.Batch = NotPosted.Batch
{
key NotPosted.Material,
key NotPosted.Plant,
key NotPosted.StorageLocation,
key NotPosted.Batch,
key NotPosted.Supplier,
key NotPosted.SalesOrder,
key NotPosted.SalesOrderItem,
key NotPosted.WBSElementInternalID,
key NotPosted.Customer,
key NotPosted.StockOwner,
key NotPosted.InventoryStockType,
key cast('' as sobkz) as InventorySpecialStockType,
Product.BaseUnit,
ProductPlant.ValuationCategory,
ProductPlant.IsBatchManagementRequired,
ProductPlant.InventoryForCycleCountInd,
ProductPlant.SerialNumberProfile,
BatchPlant.InventoryValuationType,
BatchPlant.MatlBatchIsInRstrcdUseStock
}
where ( ProductPlant.IsInternalBatchManaged = '' and ( NotPosted.Batch = '' or NotPosted.Batch is null ) )
or ( ProductPlant.IsInternalBatchManaged <> '' and ( NotPosted.Batch <> '' or NotPosted.Batch is not null ) )
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