P_ConsuptionAlternative

DDL: P_CONSUPTIONALTERNATIVE SQL: PCNSMPNALTV Type: view BASIC Package: ODATA_ML_MATLVCA_DISP

Material Ledger: Comsumption Alternative

P_ConsuptionAlternative is a Basic CDS View that provides data about "Material Ledger: Comsumption Alternative" in SAP S/4HANA. It reads from 1 data source (ckmlmv005) and exposes 29 fields with key field CostEstimate. Part of development package ODATA_ML_MATLVCA_DISP.

Data Sources (1)

SourceAliasJoin Type
ckmlmv005 ckmlmv005 from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PCNSMPNALTV view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate kalnr ProdCostEst.No.
otyp otyp Object Type
ValuationArea Valuation Area
Plant werks Receiving Plant
Material Vehicle Model
InventoryValuationType bwtar Valuation Type
sobkz sobkz Special Stock
kalnr_mat kalnr_mat ProdCostEst.No.
vtyp vtyp Voucher Type
sort_name sort_name Sort String
nrule nrule Controlling Level
loekz loekz Status
pwerk_nd pwerk_nd Plant
pmatn_nd pmatn_nd Material
kostl_nd kostl_nd Cost Center
kdauf_nd kdauf_nd SD Document
kdpos_nd kdpos_nd Sales Ord. Item
kunde_nd kunde_nd Sold-to Party
pspnr_nd pspnr_nd WBS Element
kstrg_nd kstrg_nd Cost Object
ActiveGLAccount saknr_nd G/L Account
ControllingObject objnr_nd CO acc. ass.
prctr_nd prctr_nd Profit Center
gsber_nd gsber_nd Business Area
bukrs_nd bukrs_nd Company Code
vbund_nd vbund_nd Trading Partner
spez_name_nd spez_name_nd User-Def. Name
ernam ernam User Name
erdat erdat Entered On

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_ConsuptionAlternative.
-- 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: PCNSMPNALTV

CREATE VIEW P_ConsuptionAlternative AS
SELECT
  kalnr AS CostEstimate,
  otyp,
  cast(bwkey as bwkey) AS ValuationArea,
  werks AS Plant,
  cast(matnr as productnumber) AS Material,
  bwtar AS InventoryValuationType,
  sobkz,
  kalnr_mat,
  vtyp,
  sort_name,
  nrule,
  loekz,
  pwerk_nd,
  pmatn_nd,
  kostl_nd,
  kdauf_nd,
  kdpos_nd,
  kunde_nd,
  pspnr_nd,
  kstrg_nd,
  saknr_nd AS ActiveGLAccount,
  objnr_nd AS ControllingObject,
  prctr_nd,
  gsber_nd,
  bukrs_nd,
  vbund_nd,
  spez_name_nd,
  ernam,
  erdat
FROM ckmlmv005
;