P_BR_RptgInvtryBusinessPlace
Inventory - Business Place
P_BR_RptgInvtryBusinessPlace is a Consumption CDS View that provides data about "Inventory - Business Place" in SAP S/4HANA. It reads from 3 data sources (I_SlowOrNonMovingMatlCube, I_MaterialStock, P_BR_ReportingPlant) and exposes 34 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_SlowOrNonMovingMatlCube | I_SlowOrNonMovingMatlCube | inner |
| I_MaterialStock | Mat | from |
| P_BR_ReportingPlant | Pla | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_InventoryDate | calendardate | |
| P_NumberOfDays | int4 |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PBRRPTGINVTRY | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Inventory - Business Place | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | I_MaterialStock | CompanyCode | Receiver Company Code | |
| BusinessPlace | P_BR_ReportingPlant | BusinessPlace | Business place | |
| Material | I_MaterialStock | Material | Vehicle Model | |
| Plant | I_MaterialStock | Plant | Valuation Area | |
| StorageLocation | I_MaterialStock | StorageLocation | StorageLocation | |
| Batch | I_MaterialStock | Batch | Lot No. | |
| Supplier | I_MaterialStock | Supplier | Supplier | |
| SDDocument | I_MaterialStock | SDDocument | SD Document | |
| SDDocumentItem | I_MaterialStock | SDDocumentItem | ||
| WBSElementInternalID | I_MaterialStock | WBSElementInternalID | WBS Internal ID | |
| Customer | I_MaterialStock | Customer | Sold-to Party | |
| SpecialStockIdfgStockOwner | I_MaterialStock | SpecialStockIdfgStockOwner | ||
| InventoryStockType | I_MaterialStock | InventoryStockType | Stock Type | |
| InventorySpecialStockType | I_MaterialStock | InventorySpecialStockType | Special Stock Type | |
| MaterialBaseUnit | I_MaterialStock | MaterialBaseUnit | Valuation Unit | |
| CostEstimate | I_MaterialStock | CostEstimate | Cost EstimateNo | |
| InventoryPrice | ||||
| MaterialPriceUnitQty | ||||
| MatlWrhsStkQtyInMatlBaseUnit | Mov | MatlWrhsStkQtyInMatlBaseUnit | Quantity | |
| StockValueInCCCrcy | Mov | StockValueInCCCrcy | Total Value | |
| Currency | Mov | Currency | Valuation Crcy | |
| CnsmpnLatestPostgDate | Mov | CnsmpnLatestPostgDate | ||
| MatlDocLatestPostgDate | Mov | MatlDocLatestPostgDate | ||
| NumberOfDaysSinceLastCnsmpn | Mov | NumberOfDaysSinceLastCnsmpn | ||
| NumberOfDaysSinceLastMovement | Mov | NumberOfDaysSinceLastMovement | ||
| MaterialGroup | Mov | MaterialGroup | Product Group | |
| MaterialGroupName | Mov | MaterialGroupName | prod Grp Desc. | |
| MaterialType | Mov | MaterialType | Material Type | |
| MaterialTypeName | Mov | MaterialTypeName | Mat.Type Desc. | |
| MaterialName | Mov | MaterialName | Material Description | |
| PlantName | Mov | PlantName | Plant Name | |
| ChartOfAccounts | _CompanyCode | ChartOfAccounts | Node Class | |
| ValuationArea | ||||
| _InventoryPriceByPeriodEndDate | _InventoryPriceByPeriodEndDate |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_BR_RptgInvtryBusinessPlace.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PBRRPTGINVTRY
-- Parameters: P_InventoryDate : calendardate, P_NumberOfDays : int4
CREATE VIEW P_BR_RptgInvtryBusinessPlace AS
SELECT
Mat.CompanyCode AS CompanyCode,
Pla.BusinessPlace AS BusinessPlace,
Mat.Material AS Material,
Mat.Plant AS Plant,
Mat.StorageLocation AS StorageLocation,
Mat.Batch AS Batch,
Mat.Supplier AS Supplier,
Mat.SDDocument AS SDDocument,
Mat.SDDocumentItem AS SDDocumentItem,
Mat.WBSElementInternalID AS WBSElementInternalID,
Mat.Customer AS Customer,
Mat.SpecialStockIdfgStockOwner AS SpecialStockIdfgStockOwner,
Mat.InventoryStockType AS InventoryStockType,
Mat.InventorySpecialStockType AS InventorySpecialStockType,
Mat.MaterialBaseUnit AS MaterialBaseUnit,
Mat.CostEstimate AS CostEstimate,
_InventoryPriceByPeriodEndDate(P_CalendarDate: $parameters.P_InventoryDate).InventoryPrice AS InventoryPrice,
_InventoryPriceByPeriodEndDate(P_CalendarDate: $parameters.P_InventoryDate).MaterialPriceUnitQty AS MaterialPriceUnitQty,
Mov.MatlWrhsStkQtyInMatlBaseUnit AS MatlWrhsStkQtyInMatlBaseUnit,
Mov.StockValueInCCCrcy AS StockValueInCCCrcy,
Mov.Currency AS Currency,
Mov.CnsmpnLatestPostgDate AS CnsmpnLatestPostgDate,
Mov.MatlDocLatestPostgDate AS MatlDocLatestPostgDate,
Mov.NumberOfDaysSinceLastCnsmpn AS NumberOfDaysSinceLastCnsmpn,
Mov.NumberOfDaysSinceLastMovement AS NumberOfDaysSinceLastMovement,
Mov.MaterialGroup AS MaterialGroup,
Mov.MaterialGroupName AS MaterialGroupName,
Mov.MaterialType AS MaterialType,
Mov.MaterialTypeName AS MaterialTypeName,
Mov.MaterialName AS MaterialName,
Mov.PlantName AS PlantName,
_CompanyCode.ChartOfAccounts AS ChartOfAccounts,
_InventoryPriceByPeriodEndDate(P_CalendarDate: $parameters.P_InventoryDate).ValuationArea AS ValuationArea
FROM I_MaterialStock AS Mat
INNER JOIN I_SlowOrNonMovingMatlCube ON /* join condition not captured in parsed metadata */
INNER JOIN P_BR_ReportingPlant AS Pla ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA