Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_BR_RptgInvtryBusinessPlace

DDL: P_BR_RPTGINVTRYBUSINESSPLACE SQL: PBRRPTGINVTRY Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_SlowOrNonMovingMatlCube I_SlowOrNonMovingMatlCube inner
I_MaterialStock Mat from
P_BR_ReportingPlant Pla inner

Parameters (2)

NameTypeDefault
P_InventoryDate calendardate
P_NumberOfDays int4

Annotations (13)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;