C_PH_StockQuery

DDL: C_PH_STOCKQUERY SQL: CPHSTOCKQRY Type: view CONSUMPTION Package: GLO_FIN_IS_PH

Ph Stock Query Philippines

C_PH_StockQuery is a Consumption CDS View that provides data about "Ph Stock Query Philippines" in SAP S/4HANA. It reads from 2 data sources (Mbv_Mbew, Mbv_Mbewh) and exposes 20 fields with key fields Plant, Material, ValuationType, FiscalYearCurrentPeriod, IsCurrentFiscalPeriod. Part of development package GLO_FIN_IS_PH.

Data Sources (2)

SourceAliasJoin Type
Mbv_Mbew Mbv_Mbew from
Mbv_Mbewh Mbv_Mbewh union_all

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPHSTOCKQRY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #AUTOMATED view
EndUserText.label Ph Stock Query Philippines view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY Plant bwkey Valuation Area
KEY Material matnr Vehicle Model
KEY ValuationType bwtar Valuation Type
KEY FiscalYearCurrentPeriod lfgja Year Cur.Period
KEY IsCurrentFiscalPeriod lfmon Current Period
TotalValStockQuantity lbkum Valuated stock
TotalValStockValue salk3 Total Value
MovingAveragePrice verpr Moving price
StandardPrice stprs Standard price
ProductPriceControl vprsv Price control
KEY Material matnr Vehicle Model
KEY ValuationType bwtar Valuation Type
KEY FiscalYearCurrentPeriod lfgja Year Cur.Period
KEY IsCurrentFiscalPeriod lfmon Current Period
TotalValStockQuantity lbkum Valuated stock
TotalValStockValue salk3 Total Value
MovingAveragePrice verpr Moving price
StandardPrice stprs Standard price
ProductPriceControl vprsv Price control
ValuationClass bklas Valuation Class

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 C_PH_StockQuery.
-- 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: CPHSTOCKQRY

CREATE VIEW C_PH_StockQuery AS
SELECT
  bwkey AS Plant,
  matnr AS Material,
  bwtar AS ValuationType,
  lfgja AS FiscalYearCurrentPeriod,
  lfmon AS IsCurrentFiscalPeriod,
  lbkum AS TotalValStockQuantity,
  salk3 AS TotalValStockValue,
  verpr AS MovingAveragePrice,
  stprs AS StandardPrice,
  vprsv AS ProductPriceControl,
  bklas AS ValuationClass
FROM Mbv_Mbew
-- UNION ALL with additional select branch(es): Mbv_Mbewh
;