P_StkOnIntervalBoundaryBasic11
Stock on interval boundry quantity basic view branch 1
P_StkOnIntervalBoundaryBasic11 is a Composite CDS View that provides data about "Stock on interval boundry quantity basic view branch 1" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 22 fields with key fields StockIdentifyingMaterial, Plant, StockIdfgStorageLocation, StockIdentifyingBatch, SpecialStockIdfgSupplier.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_StartDate | sydate |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Stock on interval boundry quantity basic view branch 1 | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StockIdentifyingMaterial | StockIdentifyingMaterial | ||
| KEY | Plant | Plant | ||
| KEY | StockIdfgStorageLocation | StockIdfgStorageLocation | ||
| KEY | StockIdentifyingBatch | StockIdentifyingBatch | ||
| KEY | SpecialStockIdfgSupplier | SpecialStockIdfgSupplier | ||
| KEY | SpecialStockIdfgSalesOrder | SpecialStockIdfgSalesOrder | ||
| KEY | SpecialStockIdfgSalesOrderItem | SpecialStockIdfgSalesOrderItem | ||
| KEY | SpecialStockIdfgWBSElement | SpecialStockIdfgWBSElement | ||
| KEY | SpecialStockIdfgCustomer | SpecialStockIdfgCustomer | ||
| KEY | InventorySpecialStockType | InventorySpecialStockType | ||
| KEY | InventoryStockType | InventoryStockType | ||
| KEY | SpecialStockIdfgStockOwner | SpecialStockIdfgStockOwner | ||
| KEY | ResourceID | ResourceID | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | CostEstimate | CostEstimate | ||
| KEY | InventoryValuationType | InventoryValuationType | ||
| KEY | IsSupplierStockValuation | IsSupplierStockValuation | ||
| KEY | InventorySpecialStockValnType | InventorySpecialStockValnType | ||
| KEY | MaterialBaseUnit | MaterialBaseUnit | ||
| KEY | Currency | CompanyCodeCurrency | ||
| MatlWrhsStkQtyOnStartDate | MatlStkChangeQtyInBaseUnit | |||
| MatlWrhsStkQtyOnEndDate | MatlStkChangeQtyInBaseUnit |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Stock on interval boundry quantity basic view branch 1'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #D,
sizeCategory: #XXL,
dataClass: #MIXED
}
@VDM:
{
viewType: #COMPOSITE,
private: true
}
define view entity P_StkOnIntervalBoundaryBasic11
with parameters
@Environment.systemField: #SYSTEM_DATE
P_StartDate : sydate
as select from I_MaterialDocumentRecord
{
// Stock Identifier
key StockIdentifyingMaterial,
key Plant,
key StockIdfgStorageLocation,
key StockIdentifyingBatch,
key SpecialStockIdfgSupplier,
key SpecialStockIdfgSalesOrder,
key SpecialStockIdfgSalesOrderItem,
key SpecialStockIdfgWBSElement,
key SpecialStockIdfgCustomer,
key InventorySpecialStockType,
key InventoryStockType,
key SpecialStockIdfgStockOwner,
key ResourceID,
// Further Stock Groups
key CompanyCode,
key CostEstimate,
// fields for derivation of stock values
key InventoryValuationType,
key IsSupplierStockValuation,
key InventorySpecialStockValnType,
// unit
key MaterialBaseUnit,
key CompanyCodeCurrency as Currency,
// Quantities
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
MatlStkChangeQtyInBaseUnit as MatlWrhsStkQtyOnStartDate,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
MatlStkChangeQtyInBaseUnit as MatlWrhsStkQtyOnEndDate
}
where
MaterialBaseUnit <> '' // value only material does not have meins
and InventoryStockType <> ''
and PostingDate <= $parameters.P_StartDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALDOCUMENTRECORD"
],
"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