P_PL_SAFTMaterialDocumentBasic

DDL: P_PL_SAFTMATERIALDOCUMENTBASIC SQL: PPLSAFTMATDOCBSC Type: view BASIC

P_PL_SAFTMaterialDocumentBasic is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 7 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem.

Data Sources (1)

SourceAliasJoin Type
matdoc a from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPLSAFTMATDOCBSC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear matdoc mblnr Material Doc.
KEY MaterialDocument matdoc mjahr Mat. Doc. Year
KEY MaterialDocumentItem matdoc zeile Mat. Doc.Item
MaterialBaseUnit meins Valuation Unit
TotalValStockQuantity lbkum Valuated stock
CompanyCodeCurrency Transaction Currency
StockValueInCCCrcy salk3 Total Value

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_PL_SAFTMaterialDocumentBasic.
-- 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: PPLSAFTMATDOCBSC

CREATE VIEW P_PL_SAFTMaterialDocumentBasic AS
SELECT
  a.mblnr AS MaterialDocumentYear,
  a.mjahr AS MaterialDocument,
  a.zeile AS MaterialDocumentItem,
  meins AS MaterialBaseUnit,
  lbkum AS TotalValStockQuantity,
  cast(waers as nsdm_comp_code_currency preserving type) AS CompanyCodeCurrency,
  salk3 AS StockValueInCCCrcy
FROM matdoc AS a
;